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

Issue 143183009: When cross-site navigations are cancelled, delete the request being transferred (Closed)

Created:
6 years, 10 months ago by mmenke
Modified:
6 years, 10 months ago
Reviewers:
Charlie Reis, davidben
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, tburkard+watch_chromium.org, jam, penghuang+watch_chromium.org, yukishiino+watch_chromium.org, joi+watch-content_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

When cross-site navigations are cancelled, delete the ResourceLoader that would have been trasferred to the new renderer. These were being leaked, and would keep a lock on disk cache entries, making a page impossible to visit after a cancelled cross site navigation to it. BUG=341134 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251561

Patch Set 1 #

Patch Set 2 : Fix include #

Patch Set 3 : reupload, undo unneeded change #

Total comments: 31

Patch Set 4 : Response to david's comment #

Patch Set 5 : response to creis's comments #

Total comments: 2

Patch Set 6 : Remove AbortTransfer #

Patch Set 7 : *Really* remove AbortTransfer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -69 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 3 chunks +27 lines, -24 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 7 chunks +20 lines, -12 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 chunks +9 lines, -8 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 5 5 chunks +30 lines, -11 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 5 chunks +17 lines, -0 lines 0 comments Download
A content/browser/renderer_host/cross_site_transferring_request.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A content/browser/renderer_host/cross_site_transferring_request.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 14 chunks +262 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mmenke
creis: Please review everything but the prerendering change. davidben: Please review the prerendering change. Gone ...
6 years, 10 months ago (2014-02-13 14:33:43 UTC) #1
davidben
chrome/browser/prerender LGTM. Also adding creis@chromium.org instead of creis@google.com. :-) https://codereview.chromium.org/143183009/diff/640001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/143183009/diff/640001/chrome/browser/prerender/prerender_browsertest.cc#newcode3638 chrome/browser/prerender/prerender_browsertest.cc:3638: ...
6 years, 10 months ago (2014-02-13 21:08:46 UTC) #2
mmenke
https://codereview.chromium.org/143183009/diff/640001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/143183009/diff/640001/chrome/browser/prerender/prerender_browsertest.cc#newcode3638 chrome/browser/prerender/prerender_browsertest.cc:3638: content::SetBrowserClientForTesting(original_browser_client); On 2014/02/13 21:08:47, David Benjamin wrote: > Is ...
6 years, 10 months ago (2014-02-13 21:13:56 UTC) #3
Charlie Reis
Thanks a ton for working out a solution! I see that this handles the case ...
6 years, 10 months ago (2014-02-13 22:12:18 UTC) #4
mmenke
On 2014/02/13 22:12:18, Charlie Reis wrote: > Thanks a ton for working out a solution! ...
6 years, 10 months ago (2014-02-14 16:30:01 UTC) #5
mmenke
https://codereview.chromium.org/143183009/diff/640001/content/browser/renderer_host/cross_site_request_transfer.h File content/browser/renderer_host/cross_site_request_transfer.h (right): https://codereview.chromium.org/143183009/diff/640001/content/browser/renderer_host/cross_site_request_transfer.h#newcode6 content/browser/renderer_host/cross_site_request_transfer.h:6: #define CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_REQUEST_TRANSFER_H_ On 2014/02/14 16:30:02, mmenke wrote: > On ...
6 years, 10 months ago (2014-02-14 17:10:20 UTC) #6
Charlie Reis
Apologies for the delay! I got hit with a Stable blocker bug that needed to ...
6 years, 10 months ago (2014-02-15 01:25:44 UTC) #7
mmenke
Thanks for speedy review, and all the feedback! And there's nothing to apologize for - ...
6 years, 10 months ago (2014-02-15 02:15:13 UTC) #8
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 10 months ago (2014-02-15 02:16:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/143183009/1050002
6 years, 10 months ago (2014-02-15 02:18:02 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-15 04:17:26 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264978
6 years, 10 months ago (2014-02-15 04:17:26 UTC) #12
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 10 months ago (2014-02-15 04:30:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/143183009/1050002
6 years, 10 months ago (2014-02-15 04:30:19 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 08:29:56 UTC) #15
Message was sent while issue was closed.
Change committed as 251561

Powered by Google App Engine
This is Rietveld 408576698