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

Issue 1561573004: Fix bug where scroll position was being restored after navigation completes (Closed)

Created:
4 years, 11 months ago by majidvp
Modified:
4 years, 11 months ago
Reviewers:
Nate Chapin
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly update frame load type after same-doc (history) navigation completion For same document navigation the |FrameLoader::m_loadType| is set temporarily which means it gets reset once load completes. This ensures we do not incorrectly attempt to restore scroll position on content/frame size change once navigation is finished. BUG=574487 TEST=fast/loader/scroll-restore-should-happen-during-load.html Committed: https://crrev.com/91e6e97ccdc0d6cdd4e3543102ccc0f90a6da004 Cr-Commit-Position: refs/heads/master@{#369169}

Patch Set 1 #

Patch Set 2 : Add fix #

Patch Set 3 : Restore to previous type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -14 lines) Patch
A third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load.html View 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/loader/scroll-restore-should-happen-during-load-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
majidvp
4 years, 11 months ago (2016-01-05 20:26:52 UTC) #3
Nate Chapin
How does this work if the original navigation was, e.g., a reload? Won't this mean ...
4 years, 11 months ago (2016-01-05 21:58:32 UTC) #4
majidvp
On 2016/01/05 21:58:32, Nate Chapin wrote: > How does this work if the original navigation ...
4 years, 11 months ago (2016-01-08 15:19:21 UTC) #5
Nate Chapin
If it were possible to get to the point that we didn't have to set ...
4 years, 11 months ago (2016-01-13 00:54:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1561573004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1561573004/40001
4 years, 11 months ago (2016-01-13 13:40:51 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-13 15:05:56 UTC) #11
commit-bot: I haz the power
4 years, 11 months ago (2016-01-13 15:07:32 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/91e6e97ccdc0d6cdd4e3543102ccc0f90a6da004
Cr-Commit-Position: refs/heads/master@{#369169}

Powered by Google App Engine
This is Rietveld 408576698