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

Issue 1063573002: history.pushState() should take care of scrolling state (Closed)

Created:
5 years, 8 months ago by Abhijeet Kandalkar Slow
Modified:
5 years, 8 months ago
Reviewers:
vivekg, Nate Chapin
CC:
blink-reviews, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

history.pushState() should take care of scrolling state. Current implementation don't save scrolling state while calling history pushState() therefore history entries doesn't have information about scrolloffset of page. While calling history.back(), wrong values of scroll offset are considered and page jump to top. The patch adds an implementation to save scrolling state while calling history.pushState(). BUG=472023 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193603

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Patch for landing #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
A LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate-expected.txt View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (5 generated)
Abhijeet Kandalkar Slow
Please review patch.
5 years, 8 months ago (2015-04-04 16:50:10 UTC) #2
Nate Chapin
https://codereview.chromium.org/1063573002/diff/1/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/1/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode26 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:26: }, 10); Is the 10ms delay required here? Could ...
5 years, 8 months ago (2015-04-06 17:17:15 UTC) #3
Abhijeet Kandalkar Slow
Updated patch as per review comments. Please review it. https://codereview.chromium.org/1063573002/diff/1/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/1/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode26 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:26: ...
5 years, 8 months ago (2015-04-07 08:14:49 UTC) #4
Nate Chapin
Code change looks good, just a few nitpicks on the test. https://codereview.chromium.org/1063573002/diff/20001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): ...
5 years, 8 months ago (2015-04-07 18:17:09 UTC) #5
Abhijeet Kandalkar Slow
Please review latest patch https://codereview.chromium.org/1063573002/diff/20001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/20001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode6 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:6: <button id="b">Back</button> On 2015/04/07 18:17:09, ...
5 years, 8 months ago (2015-04-10 06:49:22 UTC) #6
vivekg
https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode20 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:20: document.getElementById('log').innerHTML = 'scrollY should be ' + scrollOffsetY + ...
5 years, 8 months ago (2015-04-10 09:00:52 UTC) #7
Nate Chapin
https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode22 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:22: }, 100); 100ms is way too long. Ideally this ...
5 years, 8 months ago (2015-04-10 17:32:31 UTC) #8
Abhijeet Kandalkar Slow
Please review latest patch. https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/40001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode20 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:20: document.getElementById('log').innerHTML = 'scrollY should be ...
5 years, 8 months ago (2015-04-10 18:22:17 UTC) #11
Nate Chapin
LGTM with a couple nits before landing https://codereview.chromium.org/1063573002/diff/100001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/100001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode5 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:5: <button id="a">Push ...
5 years, 8 months ago (2015-04-10 19:57:03 UTC) #12
Abhijeet Kandalkar Slow
Patch is updated as per review comments. https://codereview.chromium.org/1063573002/diff/100001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html File LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html (right): https://codereview.chromium.org/1063573002/diff/100001/LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html#newcode5 LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html:5: <button id="a">Push ...
5 years, 8 months ago (2015-04-12 17:54:34 UTC) #13
Abhijeet Kandalkar Slow
Patch is updated as per review comments.
5 years, 8 months ago (2015-04-12 17:54:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1063573002/120001
5 years, 8 months ago (2015-04-12 17:55:39 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193603
5 years, 8 months ago (2015-04-12 20:38:57 UTC) #18
Abhijeet Kandalkar Slow
5 years, 5 months ago (2015-07-07 10:32:10 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:120001) has been created in
https://codereview.chromium.org/1219923007/ by abhijeet.k@samsung.com.

The reason for reverting is: Reason for revert:
Reverting because of regression on Windows 8. Refer bug url
https://code.google.com/p/chromium/issues/detail?id=500453.

Powered by Google App Engine
This is Rietveld 408576698