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

Issue 1036003: Add chromium-side support for history.{push,replace}State. (Closed)

Created:
10 years, 9 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
brettw, brettw
CC:
chromium-reviews, jam+cc_chromium.org, brettw+cc_chromium.org, dpranke+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org
Visibility:
Public.

Description

Add chromium-side support for history.{push,replace}State. Enables the feature so that all but 2 of the related layout tests pass. Modifies TestShell to correctly update its location bar as navigations occur. It was incorrectly showing firstPartyForCookies for some crazy reason. Modifies glue_serialize.cc to store the state object associated with a session history entry. Modifies navigation_controller.cc to always replace the current navigation entry when observing an in-page navigation. This is required since the page ID isn't changing for an in-page navigation. BUG=29393 R=brettw TEST=covered by layout tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41850

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -25 lines) Patch
M chrome/browser/tab_contents/navigation_controller.h View 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller_unittest.cc View 3 4 5 4 chunks +36 lines, -5 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/glue_serialize.cc View 1 2 3 4 5 5 chunks +17 lines, -1 line 0 comments Download
M webkit/tools/layout_tests/test_expectations.txt View 1 2 3 4 5 2 chunks +2 lines, -7 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_webview_delegate.cc View 1 2 3 4 5 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
darin (slow to review)
10 years, 9 months ago (2010-03-16 23:05:35 UTC) #1
brettw
http://codereview.chromium.org/1036003/diff/10001/11006 File chrome/browser/tab_contents/navigation_controller.cc (right): http://codereview.chromium.org/1036003/diff/10001/11006#newcode782 chrome/browser/tab_contents/navigation_controller.cc:782: const ViewHostMsg_FrameNavigate_Params& params, bool* did_replace_entry) { This parameter is ...
10 years, 9 months ago (2010-03-16 23:25:25 UTC) #2
darin (slow to review)
good catch. yeah, i should add a unit test. i think some ui tests would ...
10 years, 9 months ago (2010-03-16 23:52:30 UTC) #3
darin (slow to review)
OK, now featuring a NavigationControllerTest. I decided against UI tests. I may come back to ...
10 years, 9 months ago (2010-03-17 07:00:53 UTC) #4
brettw_gmail.com
10 years, 9 months ago (2010-03-17 16:18:19 UTC) #5
LGTM

http://codereview.chromium.org/1036003/diff/29001/16011
File chrome/browser/tab_contents/navigation_controller_unittest.cc (right):

http://codereview.chromium.org/1036003/diff/29001/16011#newcode1127
chrome/browser/tab_contents/navigation_controller_unittest.cc:1127: // Main
page. Note that we need "://" so this URL is treated as "standard"
This "note" is wrong in this case (I guess you copied it from above). I'd just
remove it in both cases. Also, what's with the 4 slashes?

Powered by Google App Engine
This is Rietveld 408576698