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

Issue 8669014: Fix a bug where redirect chain gets lost on process swap. (Closed)

Created:
9 years, 1 month ago by Matt Perry
Modified:
9 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix a bug where redirect chain gets lost on process swap. BUG=79520 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112847

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixed plumbing issues from battre's #

Patch Set 3 : latest #

Total comments: 19

Patch Set 4 : review comments #

Total comments: 2

Patch Set 5 : conditional disabling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+587 lines, -68 lines) Patch
M chrome/browser/extensions/app_process_apitest.cc View 1 2 3 4 2 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_url_request_user_data.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_url_request_user_data.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/transfer_navigation_resource_handler.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/transfer_navigation_resource_handler.cc View 1 2 3 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_navigator.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 3 chunks +22 lines, -14 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/framework.js View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/test_blocking.js View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M content/browser/renderer_host/global_request_id.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 11 chunks +76 lines, -16 lines 0 comments Download
M content/browser/tab_contents/navigation_controller.h View 1 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_controller.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_entry.h View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
M content/browser/tab_contents/page_navigator.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 3 chunks +24 lines, -5 lines 0 comments Download
M content/common/request_extra_data.h View 1 3 chunks +11 lines, -1 line 0 comments Download
M content/common/request_extra_data.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/resource_messages.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/renderer/navigation_state.h View 1 2 chunks +19 lines, -0 lines 0 comments Download
M content/public/renderer/navigation_state.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 3 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Matt Perry
creis: just FYI, this is the approach I'm planning on attempting. It "works", but contains ...
9 years, 1 month ago (2011-11-23 02:51:17 UTC) #1
Matt Perry
jam, ben: OWNERS approval creis: please review I'm hoping to check this in today to ...
9 years ago (2011-12-02 21:40:03 UTC) #2
Charlie Reis
I feel like this is a complex enough change that we really need tests for ...
9 years ago (2011-12-02 22:38:11 UTC) #3
Matt Perry
still no tests. I'll work on that as it runs through the trybots http://codereview.chromium.org/8669014/diff/8001/chrome/browser/renderer_host/transfer_navigation_resource_handler.h File ...
9 years ago (2011-12-03 00:14:24 UTC) #4
jam
I looked at content files to make sure the are no violations to content module, ...
9 years ago (2011-12-03 00:15:30 UTC) #5
Matt Perry
http://codereview.chromium.org/8669014/diff/13003/chrome/test/data/extensions/api_test/webrequest/test_blocking.js File chrome/test/data/extensions/api_test/webrequest/test_blocking.js (left): http://codereview.chromium.org/8669014/diff/13003/chrome/test/data/extensions/api_test/webrequest/test_blocking.js#oldcode131 chrome/test/data/extensions/api_test/webrequest/test_blocking.js:131: // starts a new one instead. See http://crbug.com/79520. Regarding ...
9 years ago (2011-12-03 00:30:22 UTC) #6
Ben Goodger (Google)
lgtm
9 years ago (2011-12-03 00:32:25 UTC) #7
Charlie Reis
I would still like to see the two comments below addressed, but since the feature's ...
9 years ago (2011-12-03 01:39:56 UTC) #8
Matt Perry
9 years ago (2011-12-03 01:46:31 UTC) #9
http://codereview.chromium.org/8669014/diff/8001/chrome/browser/renderer_host...
File chrome/browser/renderer_host/transfer_navigation_resource_handler.cc
(right):

http://codereview.chromium.org/8669014/diff/8001/chrome/browser/renderer_host...
chrome/browser/renderer_host/transfer_navigation_resource_handler.cc:18: // the
logic used by the renderer.
On 2011/12/03 01:39:56, creis wrote:
> On 2011/12/02 22:38:11, creis wrote:
> > Please do not duplicate this code, especially if it has temporary
workarounds
> in
> > it.  I'm afraid it will get stale and lead to bugs.
> > 
> > Can we move it to common?
> 
> This still concerns me.  You can file a bug and add a TODO if we're short on
> time.

Doh, sorry, I forgot about this. I'll add a TODO for now.

Powered by Google App Engine
This is Rietveld 408576698