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

Issue 10704048: [RDS] Reloads a page using the original request URL (Closed)

Created:
8 years, 5 months ago by gone
Modified:
8 years, 4 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[RDS] Reloads a page using the original request URL When toggling between different versions of a website by changing user agents, we often need to reload using an earlier URL in a redirect chain to avoid redirects caused by user-agent detection. * Adds a new type of reload that hooks into WebFrame::reloadWithOverrideURL, added in https://bugs.webkit.org/show_bug.cgi?id=89788 * Changes the original request URL we were saving before to be the URL sent back as part of WebKit's original request. This URL often differs from the URL stored at the beginning at the redirect chain. It's sent back as a new field when the renderer navigates. Part of upstreaming Chrome for Android. Internal BUG=6272286 BUG=112923 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150003

Patch Set 1 #

Total comments: 7

Patch Set 2 : Adding unit test & removing public function #

Total comments: 8

Patch Set 3 : Changing test, addressing comments #

Patch Set 4 : Rebasing #

Patch Set 5 : Rebase fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -11 lines) Patch
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 2 chunks +78 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 3 chunks +13 lines, -1 line 0 comments Download
M content/common/view_message_enums.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
gone
Hey guys, Can you have a look at this when you get a chance? It's ...
8 years, 5 months ago (2012-06-29 20:25:38 UTC) #1
Charlie Reis
Can you add a unit test to navigation_controller_impl_unittest.cc? https://chromiumcodereview.appspot.com/10704048/diff/1/content/common/view_message_enums.h File content/common/view_message_enums.h (right): https://chromiumcodereview.appspot.com/10704048/diff/1/content/common/view_message_enums.h#newcode39 content/common/view_message_enums.h:39: RELOAD_ORIGINAL_REQUEST_URL, ...
8 years, 5 months ago (2012-06-29 21:43:25 UTC) #2
jam
http://codereview.chromium.org/10704048/diff/1/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): http://codereview.chromium.org/10704048/diff/1/content/public/browser/navigation_controller.h#newcode226 content/public/browser/navigation_controller.h:226: virtual void ReloadOriginalRequestURL() = 0; is this being called ...
8 years, 5 months ago (2012-06-29 21:46:17 UTC) #3
gone
Working on adding a unit test, now. http://codereview.chromium.org/10704048/diff/1/content/common/view_message_enums.h File content/common/view_message_enums.h (right): http://codereview.chromium.org/10704048/diff/1/content/common/view_message_enums.h#newcode39 content/common/view_message_enums.h:39: RELOAD_ORIGINAL_REQUEST_URL, On ...
8 years, 5 months ago (2012-06-29 21:59:10 UTC) #4
jam
http://codereview.chromium.org/10704048/diff/1/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): http://codereview.chromium.org/10704048/diff/1/content/public/browser/navigation_controller.h#newcode226 content/public/browser/navigation_controller.h:226: virtual void ReloadOriginalRequestURL() = 0; On 2012/06/29 21:59:10, dfalcantara ...
8 years, 5 months ago (2012-06-29 22:58:58 UTC) #5
gone
Addressed the comments and added a unit test that checks to see if the original ...
8 years, 5 months ago (2012-07-03 00:07:47 UTC) #6
jam
http://codereview.chromium.org/10704048/diff/8001/content/browser/renderer_host/test_render_view_host.cc File content/browser/renderer_host/test_render_view_host.cc (right): http://codereview.chromium.org/10704048/diff/8001/content/browser/renderer_host/test_render_view_host.cc#newcode258 content/browser/renderer_host/test_render_view_host.cc:258: *last_params_ = params; i think there's a simpler way ...
8 years, 5 months ago (2012-07-03 05:50:12 UTC) #7
Charlie Reis
https://chromiumcodereview.appspot.com/10704048/diff/8001/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/10704048/diff/8001/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode640 content/browser/web_contents/navigation_controller_impl_unittest.cc:640: // save both the original URL and the final ...
8 years, 5 months ago (2012-07-03 17:22:26 UTC) #8
gone
Retooled the test. https://chromiumcodereview.appspot.com/10704048/diff/8001/content/browser/renderer_host/test_render_view_host.cc File content/browser/renderer_host/test_render_view_host.cc (right): https://chromiumcodereview.appspot.com/10704048/diff/8001/content/browser/renderer_host/test_render_view_host.cc#newcode258 content/browser/renderer_host/test_render_view_host.cc:258: *last_params_ = params; On 2012/07/03 05:50:12, ...
8 years, 5 months ago (2012-07-03 18:24:39 UTC) #9
Charlie Reis
Thanks, LGTM.
8 years, 5 months ago (2012-07-03 19:01:32 UTC) #10
jam
lgtm, thanks
8 years, 5 months ago (2012-07-04 04:27:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dfalcantara@chromium.org/10704048/22001
8 years, 4 months ago (2012-08-04 00:58:56 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-04 02:38:24 UTC) #13
Change committed as 150003

Powered by Google App Engine
This is Rietveld 408576698