Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Issue 1708923002: Ensure WebView plugins run their lifecycle even absent main frame Layout (Closed)

Created:
4 years, 10 months ago by leviw_travelin_and_unemployed
Modified:
4 years, 10 months ago
Reviewers:
chrishtr, esprehn, eae
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure WebView plugins run their lifecycle even absent main frame Layout The PluginView method layoutIfNeeded causes WebView plugins to update their entire lifecycle, but we only call that if their layout is dirtied. In the presence of some style changes, they can need invalidation or compositing updates without layout, and our recursive lifecycle update missed WebView plugins as it only recurses through the Frame tree. This change always updates child plugins when FrameView::updateStyleAndLayoutIfNeededRecursive is called. BUG=545039 Committed: https://crrev.com/eec0a93f429b9797678ca67f8359ea65a6496ca3 Cr-Commit-Position: refs/heads/master@{#376114}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added comments #

Total comments: 1

Patch Set 3 : Revert to disabling stylesheet #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html View 1 2 1 chunk +19 lines, -0 lines 1 comment Download
A third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
leviw_travelin_and_unemployed
4 years, 10 months ago (2016-02-17 23:28:28 UTC) #2
eae
LGTM w/comment https://codereview.chromium.org/1708923002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1708923002/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2629 third_party/WebKit/Source/core/frame/FrameView.cpp:2629: for (const RefPtrWillBeMember<Widget>& child : *viewChildren) { ...
4 years, 10 months ago (2016-02-17 23:48:04 UTC) #3
chrishtr
https://codereview.chromium.org/1708923002/diff/1/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html File third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html (right): https://codereview.chromium.org/1708923002/diff/1/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html#newcode10 third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html:10: document.getElementsByTagName("style")[0].disabled = true; Change to appending a style sheet? ...
4 years, 10 months ago (2016-02-17 23:49:18 UTC) #4
leviw_travelin_and_unemployed
PTAL. I added comments and was able to take a little bit of crazy out ...
4 years, 10 months ago (2016-02-17 23:59:15 UTC) #5
chrishtr
lgtm
4 years, 10 months ago (2016-02-18 00:01:45 UTC) #6
eae
Thanks, LGTM
4 years, 10 months ago (2016-02-18 00:01:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708923002/20001
4 years, 10 months ago (2016-02-18 00:04:11 UTC) #9
esprehn
https://codereview.chromium.org/1708923002/diff/20001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html File third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html (right): https://codereview.chromium.org/1708923002/diff/20001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html#newcode11 third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html:11: document.appendChild(document.createElement("style")); does this actually trigger a full recalc? I ...
4 years, 10 months ago (2016-02-18 00:19:39 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/181558)
4 years, 10 months ago (2016-02-18 01:06:41 UTC) #13
leviw_travelin_and_unemployed
On 2016/02/18 at 00:19:39, esprehn wrote: > https://codereview.chromium.org/1708923002/diff/20001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html > File third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html (right): > > https://codereview.chromium.org/1708923002/diff/20001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html#newcode11 ...
4 years, 10 months ago (2016-02-18 03:16:22 UTC) #14
esprehn
On 2016/02/18 at 03:16:22, leviw wrote: > On 2016/02/18 at 00:19:39, esprehn wrote: > > ...
4 years, 10 months ago (2016-02-18 03:27:09 UTC) #15
esprehn
https://codereview.chromium.org/1708923002/diff/40001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html File third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html (right): https://codereview.chromium.org/1708923002/diff/40001/third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html#newcode3 third_party/WebKit/LayoutTests/fast/plugins/webview-plugin-updates-without-layout.html:3: html:first-letter { color: papayawhip; } why does the first ...
4 years, 10 months ago (2016-02-18 03:27:43 UTC) #16
leviw_travelin_and_unemployed
On 2016/02/18 at 03:27:09, esprehn wrote: > On 2016/02/18 at 03:16:22, leviw wrote: > > ...
4 years, 10 months ago (2016-02-18 03:31:15 UTC) #17
esprehn
On 2016/02/18 at 03:31:15, leviw wrote: > On 2016/02/18 at 03:27:09, esprehn wrote: > > ...
4 years, 10 months ago (2016-02-18 03:40:00 UTC) #18
leviw_travelin_and_unemployed
> Hmm I think all you're doing is removing the generated PseudoElement when you disable ...
4 years, 10 months ago (2016-02-18 05:15:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708923002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708923002/40001
4 years, 10 months ago (2016-02-18 05:15:50 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-18 07:34:58 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 07:35:51 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eec0a93f429b9797678ca67f8359ea65a6496ca3
Cr-Commit-Position: refs/heads/master@{#376114}

Powered by Google App Engine
This is Rietveld 408576698