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

Issue 2720823002: Fix crash in FrameView::updateLayersAndCompositingAfterScrollIfNeeded (Closed)

Created:
3 years, 9 months ago by smcgruer
Modified:
3 years, 9 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-frames_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in FrameView::updateLayersAndCompositingAfterScrollIfNeeded The code was incorrectly assuming that the ancestor overflow layer would always be non-null. However this method can be called during layout before compositing inputs update, at which point the ancestor overflow layer may not yet be set. The correct approach is to just skip the sticky update in that case. This still produces the correct behavior as the method will be called again later during compositing inputs update. BUG=696173 Review-Url: https://codereview.chromium.org/2720823002 Cr-Commit-Position: refs/heads/master@{#453612} Committed: https://chromium.googlesource.com/chromium/src/+/33278697a0fa078a892468e69a90c6563d3ec137

Patch Set 1 #

Patch Set 2 : Slight comment change #

Total comments: 4

Patch Set 3 : Run unittest under RLS as well #

Patch Set 4 : Revert "Run unittest under RLS as well" #

Patch Set 5 : Re-enabled RLS in test, use layoutViewportScrollableArea #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameViewTest.cpp View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
smcgruer
3 years, 9 months ago (2017-02-27 16:22:59 UTC) #3
flackr
https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode150 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:150: if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) Don't we run into the same problem ...
3 years, 9 months ago (2017-02-27 16:42:09 UTC) #7
flackr
lgtm https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode150 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:150: if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) On 2017/02/27 16:42:09, flackr wrote: > ...
3 years, 9 months ago (2017-02-27 16:43:14 UTC) #8
bokan
lgtm % root-layer-scrolling bit in testing https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode150 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:150: if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) I'm ...
3 years, 9 months ago (2017-02-28 13:07:44 UTC) #14
smcgruer
https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp File third_party/WebKit/Source/core/frame/FrameViewTest.cpp (right): https://codereview.chromium.org/2720823002/diff/20001/third_party/WebKit/Source/core/frame/FrameViewTest.cpp#newcode150 third_party/WebKit/Source/core/frame/FrameViewTest.cpp:150: if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) On 2017/02/28 13:07:44, bokan wrote: > I'm ...
3 years, 9 months ago (2017-02-28 13:13:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720823002/40001
3 years, 9 months ago (2017-02-28 13:14:04 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/399216)
3 years, 9 months ago (2017-02-28 14:18:37 UTC) #20
smcgruer
Haha, apparently I should have defended my position more (and tried running the test under ...
3 years, 9 months ago (2017-02-28 14:23:58 UTC) #21
bokan
On 2017/02/28 14:23:58, smcgruer wrote: > Haha, apparently I should have defended my position more ...
3 years, 9 months ago (2017-02-28 14:29:14 UTC) #22
smcgruer
On 2017/02/28 14:29:14, bokan wrote: > On 2017/02/28 14:23:58, smcgruer wrote: > > Haha, apparently ...
3 years, 9 months ago (2017-02-28 14:31:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720823002/80001
3 years, 9 months ago (2017-02-28 14:40:00 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 16:21:42 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/33278697a0fa078a892468e69a90...

Powered by Google App Engine
This is Rietveld 408576698