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

Issue 2508973006: Kill vestigial transfer requests (Closed)

Created:
4 years, 1 month ago by Charlie Harrison
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Kill vestigial transfer requests When requests are marked as transferring, we mark them as protected in the ResourceDispatcherHostImpl, so when their RFH goes away we won't lose the request. However, there are cases where the transfer can fail, and the navigation abandoned, while the request on the IO thread is still marked as protected. This patch catches that case by checking for transferring navigation handles in ~RFH, and cancelling them there. Browser test written by lukasza@chromium.org BUG=657195 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/f2466b80b0cd892d31fdf69a397905eaacbfb3b5 Cr-Commit-Position: refs/heads/master@{#433430}

Patch Set 1 #

Total comments: 1

Patch Set 2 : PostTask in ~NavigationHandle #

Patch Set 3 : make is_transfering_ consistent #

Patch Set 4 : test from lukasza #

Total comments: 10

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -1 line) Patch
M content/browser/frame_host/navigation_handle_impl.cc View 1 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 3 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (29 generated)
Charlie Harrison
Hey Charlie, Here is a provisional solution for the thumbs up extensions problem. I'm struggling ...
4 years, 1 month ago (2016-11-18 03:55:19 UTC) #7
Charlie Reis
[+lukasza] Many thanks for looking into this! This seems plausible to me. There's probably other ...
4 years, 1 month ago (2016-11-18 04:52:24 UTC) #9
Charlie Harrison
On 2016/11/18 04:52:24, Charlie Reis (away) wrote: > [+lukasza] > > Many thanks for looking ...
4 years, 1 month ago (2016-11-18 14:54:26 UTC) #10
Łukasz Anforowicz
Thank you very much for digging into this! On 2016/11/18 14:54:26, Charlie Harrison wrote: > ...
4 years, 1 month ago (2016-11-18 18:42:16 UTC) #15
Charlie Harrison
Thanks! I don't have too much time to work on the test today (I am ...
4 years, 1 month ago (2016-11-18 18:46:17 UTC) #16
Charlie Harrison
Looks like bots are reasonably happy. lukasza@, I'll wait for your l-g-t-m before shipping.
4 years, 1 month ago (2016-11-18 23:41:04 UTC) #22
Charlie Reis
For the record, updated fix still LGTM. Thanks for the test, Łukasz! One question about ...
4 years, 1 month ago (2016-11-19 00:03:14 UTC) #23
nasko
A couple of drive-by comments on the test. https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc#newcode8571 content/browser/site_per_process_browsertest.cc:8571: FrameTreeDestroyedInMiddleOfTransfer) ...
4 years, 1 month ago (2016-11-19 00:16:21 UTC) #25
Łukasz Anforowicz
LGTM It took me a while to understand why the calls to set_is_transferring(false) are needed ...
4 years, 1 month ago (2016-11-19 00:16:38 UTC) #27
Łukasz Anforowicz
https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc#newcode8571 content/browser/site_per_process_browsertest.cc:8571: FrameTreeDestroyedInMiddleOfTransfer) { On 2016/11/19 00:16:21, nasko wrote: > Since ...
4 years, 1 month ago (2016-11-19 00:24:59 UTC) #28
Charlie Harrison
Thanks all https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2508973006/diff/60001/content/browser/site_per_process_browsertest.cc#newcode8571 content/browser/site_per_process_browsertest.cc:8571: FrameTreeDestroyedInMiddleOfTransfer) { On 2016/11/19 00:24:59, Łukasz Anforowicz ...
4 years, 1 month ago (2016-11-19 03:32:39 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2508973006/80001
4 years, 1 month ago (2016-11-19 18:49:25 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-19 23:57:43 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-20 00:01:08 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f2466b80b0cd892d31fdf69a397905eaacbfb3b5
Cr-Commit-Position: refs/heads/master@{#433430}

Powered by Google App Engine
This is Rietveld 408576698