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

Issue 1461473002: Ensure that the auto scroll state in the AutoscrollController is cleared if the scroll operation cl… (Closed)

Created:
5 years, 1 month ago by ananta
Modified:
5 years, 1 month ago
Reviewers:
skobes, wkorman, Rick Byers
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 that the auto scroll state in the AutoscrollController is cleared if the scroll operation clears out the m_autoscrollLayoutObject member. This typically happens when we scroll a div inside an iframe which uses overflow:auto and during the scroll the cursor leaves the bounds of the div. If we don't reset the state then the page gets stuck in the autoscroll state causing it to be unresponsive to clicks etc. BUG=336373 Committed: https://crrev.com/a12dafbe77137b234cf65cd5031fd7db2d1ba6fc Cr-Commit-Position: refs/heads/master@{#360997}

Patch Set 1 #

Patch Set 2 : Add layouttests #

Total comments: 6

Patch Set 3 : Remove usage of setTimeout from the layout test #

Total comments: 15

Patch Set 4 : Address review comments #

Patch Set 5 : Attempt to fix layout test failures by delaying the autoscroll to after the layout happens #

Patch Set 6 : Another attempt to fix layout test redness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div-expected.txt View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/resources/iframe-with-overflow-scrollable-div.html View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 28 (12 generated)
ananta
5 years, 1 month ago (2015-11-18 01:59:32 UTC) #2
wkorman
Thanks for looking at this! Please add a test, it should be possible to create ...
5 years, 1 month ago (2015-11-18 18:55:55 UTC) #4
ananta
On 2015/11/18 18:55:55, wkorman wrote: > Thanks for looking at this! Please add a test, ...
5 years, 1 month ago (2015-11-19 02:08:04 UTC) #5
wkorman
https://codereview.chromium.org/1461473002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode25 third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html:25: setTimeout(autoscrollTestPart2, 100); Did you try doing another layoutAndPaintAsyncThen() here, ...
5 years, 1 month ago (2015-11-19 19:06:44 UTC) #6
ananta
https://codereview.chromium.org/1461473002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/20001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode25 third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html:25: setTimeout(autoscrollTestPart2, 100); On 2015/11/19 19:06:44, wkorman wrote: > Did ...
5 years, 1 month ago (2015-11-19 20:30:31 UTC) #7
wkorman
https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode66 third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html:66: <iframe id="ScrollIFrame" src="resources/iframe-with-overflow-scrollable-div.html" style="height: 100px; width: 100px"> A meta ...
5 years, 1 month ago (2015-11-19 22:13:55 UTC) #8
ananta
https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode66 third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html:66: <iframe id="ScrollIFrame" src="resources/iframe-with-overflow-scrollable-div.html" style="height: 100px; width: 100px"> On 2015/11/19 ...
5 years, 1 month ago (2015-11-19 22:32:01 UTC) #9
wkorman
lgtm OK, LGTM but let's also see what skobes@ and/or rbyers@ think as I am ...
5 years, 1 month ago (2015-11-19 22:53:23 UTC) #10
skobes
FYI commit messages are typically wrapped at ~ 80 cols. https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode4 ...
5 years, 1 month ago (2015-11-20 00:10:17 UTC) #11
ananta
https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html File third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html (right): https://codereview.chromium.org/1461473002/diff/40001/third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html#newcode4 third_party/WebKit/LayoutTests/fast/events/autoscroll-scrollable-iframe-div.html:4: document.getElementById('console').appendChild(document.createTextNode(msg + '\n')); On 2015/11/20 00:10:17, skobes wrote: > ...
5 years, 1 month ago (2015-11-20 01:17:34 UTC) #17
skobes
lgtm
5 years, 1 month ago (2015-11-20 01:32:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461473002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461473002/60001
5 years, 1 month ago (2015-11-20 01:43:22 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on ...
5 years, 1 month ago (2015-11-20 03:46:48 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461473002/100001
5 years, 1 month ago (2015-11-21 01:21:46 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-21 03:51:19 UTC) #27
commit-bot: I haz the power
5 years, 1 month ago (2015-11-21 03:52:17 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a12dafbe77137b234cf65cd5031fd7db2d1ba6fc
Cr-Commit-Position: refs/heads/master@{#360997}

Powered by Google App Engine
This is Rietveld 408576698