Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay detaching plugin frames to when plugin can be disposed #11172

Closed
wants to merge 1 commit into from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 25, 2018

CL 996314 introduced a new change in behavior of plugin elements and
that is unless in fallback() mode (questionably buggy condition), the
content frame is always cleaned up during DetachLayoutTree. This is fine
and desired given that plugins are design around layout and not removing
the content frame led to various bugs (as explained in more detail in CL
996314).

The new behavior has a small caveat and that is we might end up calling
DetachLayoutTree unexpectedly, i.e., during style recalc. This CL avoid
such problems by trying to detach the content frame both in the call to
DetachLayoutTree and in UpdatePlugin calls. Any remote frame will be
detached in the former call but LocalFrames might not, but will be in
the latter call which is post style recalc.

Bug: 846708
Change-Id: If651a78365f136d36702ebba56e5482154c8cdd1
Reviewed-on: https://chromium-review.googlesource.com/1073204
WPT-Export-Revision: 29d6bac9df05fd256668cdec2575de4fe1af1d07

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Only clean plugin frames if !InStyleRecalc() Delay detaching plugin frames to when plugin can be disposed May 29, 2018
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1073204 branch 6 times, most recently from 68a2ba7 to f351900 Compare May 31, 2018 19:09
CL 996314 introduced a new change in behavior of plugin elements and
that is unless in fallback() mode (questionably buggy condition), the
content frame is always cleaned up during DetachLayoutTree. This is fine
and desired given that plugins are design around layout and not removing
the content frame led to various bugs (as explained in more detail in CL
996314).

The new behavior has a small caveat and that is we might end up calling
DetachLayoutTree unexpectedly, i.e., during style recalc. This CL avoid
such problems by trying to detach the content frame both in the call to
DetachLayoutTree and in UpdatePlugin calls. Any remote frame will be
detached in the former call but LocalFrames might not, but will be in
the latter call which is post style recalc.

Bug: 846708
Change-Id: If651a78365f136d36702ebba56e5482154c8cdd1
@chromium-wpt-export-bot
Copy link
Collaborator Author

Close this PR because the Chromium CL has been abandoned.

@sideshowbarker sideshowbarker deleted the chromium-export-cl-1073204 branch November 22, 2018 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants