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

Issue 927213004: Accept options in history APIs to allow scroll restoration to be disabled (Closed)

Created:
5 years, 9 months ago by majidvp
Modified:
5 years, 7 months ago
CC:
blink-reviews, dglazkov+blink, tyoshino+watch_chromium.org, gavinp+loader_chromium.org, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Accept options in history APIs to allow scroll restoration to be disabled The option is a dictionary with a single boolean flag for controlling scroll restoration. It is accepted by both history.[push|replace]State and exposed via history.options as readonly. There is a new boolean field added to |HistoryItem| which identifies whether scroll (and scale) should be restored the entry is navigated to. This is all hidden behind an experimental runtime enabled feature. Intent to implement: https://groups.google.com/a/chromium.org/d/topic/blink-dev/U1e2lmGs4tM/discussion Chromium side CL: https://crrev.com/959783003 BUG=444094 TEST=LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195279

Patch Set 1 #

Patch Set 2 : Improve the test #

Total comments: 1

Patch Set 3 : Address review feedback #

Patch Set 4 : rebase #

Patch Set 5 : Change history API to accept options dictionay and Enable behind an experimental flag #

Patch Set 6 : minor #

Total comments: 7

Patch Set 7 : Change bool to enum #

Total comments: 1

Patch Set 8 : fix layout tests #

Patch Set 9 : fix more layout tests #

Patch Set 10 : Disable scroll position test until Chromium side lands #

Patch Set 11 : Disable testing 'manual' till chromium lands #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -105 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/resources/window-property-collector.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-appendages-cleared.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +76 lines, -0 lines 0 comments Download
A LayoutTests/fast/loader/scroll-position-restoration-for-history-api-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
D LayoutTests/fast/loader/scroll-position-restored-on-back.html View 1 chunk +0 lines, -35 lines 0 comments Download
D LayoutTests/fast/loader/scroll-position-restored-on-back-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
D LayoutTests/fast/loader/scroll-position-restored-on-back-non-cached.html View 1 chunk +0 lines, -35 lines 0 comments Download
D LayoutTests/fast/loader/scroll-position-restored-on-back-non-cached-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/frame/History.h View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M Source/core/frame/History.cpp View 1 2 3 4 5 6 4 chunks +19 lines, -2 lines 0 comments Download
M Source/core/frame/History.idl View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
A Source/core/frame/StateOptions.idl View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +10 lines, -5 lines 0 comments Download
M Source/core/loader/FrameLoaderTypes.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/HistoryItem.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M Source/core/loader/HistoryItem.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/WebHistoryItem.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A + public/platform/WebHistoryScrollRestorationType.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -11 lines 0 comments Download
M public/web/WebHistoryItem.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
majidvp
5 years, 9 months ago (2015-02-26 17:42:44 UTC) #2
tdresser
Aren't the tests you removed still relevant? I think they need to be rewritten to ...
5 years, 9 months ago (2015-02-26 18:04:02 UTC) #3
majidvp
On 2015/02/26 18:04:02, tdresser wrote: > Aren't the tests you removed still relevant? > > ...
5 years, 9 months ago (2015-02-26 18:31:14 UTC) #4
tdresser
Then LGTM!
5 years, 9 months ago (2015-02-26 18:33:51 UTC) #5
majidvp
+ japhet@: for OWNER's review.
5 years, 9 months ago (2015-03-02 14:36:01 UTC) #7
Nate Chapin
On 2015/03/02 14:36:01, majidvp wrote: > + japhet@: for OWNER's review. Mechanically, this is fine. ...
5 years, 9 months ago (2015-03-02 18:45:01 UTC) #8
majidvp
On 2015/03/02 18:45:01, Nate Chapin wrote: > On 2015/03/02 14:36:01, majidvp wrote: > > + ...
5 years, 9 months ago (2015-03-02 23:12:03 UTC) #9
Nate Chapin
On 2015/03/02 23:12:03, majidvp wrote: > On 2015/03/02 18:45:01, Nate Chapin wrote: > > On ...
5 years, 9 months ago (2015-03-05 18:56:52 UTC) #10
majidvp
On 2015/03/05 18:56:52, Nate Chapin wrote: > On 2015/03/02 23:12:03, majidvp wrote: > > On ...
5 years, 9 months ago (2015-03-05 22:51:42 UTC) #11
majidvp
On 2015/03/05 22:51:42, majidvp wrote: > On 2015/03/05 18:56:52, Nate Chapin wrote: > > On ...
5 years, 7 months ago (2015-05-05 18:45:09 UTC) #12
Nate Chapin
Please link to the intent to implement thread in the patch description. https://codereview.chromium.org/927213004/diff/90001/Source/core/frame/History.cpp File Source/core/frame/History.cpp ...
5 years, 7 months ago (2015-05-07 20:26:59 UTC) #13
majidvp
Nate: PTAL. https://codereview.chromium.org/927213004/diff/90001/Source/core/frame/History.cpp File Source/core/frame/History.cpp (right): https://codereview.chromium.org/927213004/diff/90001/Source/core/frame/History.cpp#newcode87 Source/core/frame/History.cpp:87: options.setWillRestoreScroll(!historyItem->shouldRestoreScroll()); On 2015/05/07 20:26:59, Nate Chapin wrote: ...
5 years, 7 months ago (2015-05-08 21:00:47 UTC) #14
Nate Chapin
Seems reasonable, just one nitpick. I'm inclined to wait a couple days before this gets ...
5 years, 7 months ago (2015-05-08 23:19:54 UTC) #15
majidvp
On 2015/05/08 23:19:54, Nate Chapin wrote: > Seems reasonable, just one nitpick. I'm inclined to ...
5 years, 7 months ago (2015-05-11 20:29:43 UTC) #16
majidvp
+vollick@: For Source/platforms/RuntimeEnabledFeatures.in
5 years, 7 months ago (2015-05-11 20:31:15 UTC) #18
Ian Vollick
On 2015/05/11 at 20:31:15, majidvp wrote: > +vollick@: For Source/platforms/RuntimeEnabledFeatures.in Source/platform lgtm
5 years, 7 months ago (2015-05-11 20:58:13 UTC) #19
Nate Chapin
I don't think we need to wait any longer for whatwg, given that this is ...
5 years, 7 months ago (2015-05-12 17:58:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/927213004/210001
5 years, 7 months ago (2015-05-12 23:32:33 UTC) #23
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 23:36:08 UTC) #24
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195279

Powered by Google App Engine
This is Rietveld 408576698