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

Issue 2383773002: Prevent RFH from attempting to transfer after it's been swapped out (Closed)

Created:
4 years, 2 months ago by clamy
Modified:
4 years, 2 months ago
Reviewers:
Charlie Reis, nasko
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

Prevent RFH from attempting to transfer after it's been swapped out This CL fixes a race condition in which we will attempt to transfer a navigation in an RFH that has just been swapped out by the commit of another navigation. BUG=651503 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/152381c57c5c04d07b9ebb2496e369ba239a98f7 Cr-Commit-Position: refs/heads/master@{#422972}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Total comments: 6

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -14 lines) Patch
M chrome/test/data/extensions/api_test/webnavigation/crossProcessAbort/test_crossProcessAbort.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.h View 2 chunks +11 lines, -1 line 0 comments Download
M content/public/test/browser_test_utils.cc View 8 chunks +62 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (19 generated)
clamy
@nasko, creis: PTAL https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode673 content/browser/frame_host/navigation_handle_impl.cc:673: return false; This will just suspend ...
4 years, 2 months ago (2016-09-30 14:06:16 UTC) #6
Charlie Reis
Thanks! Mostly looks good, but I want to be sure we cancel the navigation. Also ...
4 years, 2 months ago (2016-09-30 20:25:26 UTC) #9
nasko
Great job on tracking this down! https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode673 content/browser/frame_host/navigation_handle_impl.cc:673: return false; On ...
4 years, 2 months ago (2016-09-30 23:21:33 UTC) #10
clamy
Thanks! https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2383773002/diff/1/content/browser/frame_host/navigation_handle_impl.cc#newcode671 content/browser/frame_host/navigation_handle_impl.cc:671: if (render_frame_host_ != manager->current_frame_host() && On 2016/09/30 20:25:26, ...
4 years, 2 months ago (2016-10-04 11:54:41 UTC) #13
clamy
Nasko: there seems to be an issue with the WebNavigation API tests. We expect the ...
4 years, 2 months ago (2016-10-04 12:45:49 UTC) #16
nasko
On 2016/10/04 12:45:49, clamy wrote: > Nasko: there seems to be an issue with the ...
4 years, 2 months ago (2016-10-04 14:15:24 UTC) #17
nasko
Thanks for the quick fix! LGTM https://codereview.chromium.org/2383773002/diff/40001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2383773002/diff/40001/content/browser/frame_host/navigation_handle_impl.cc#newcode648 content/browser/frame_host/navigation_handle_impl.cc:648: // A navigation ...
4 years, 2 months ago (2016-10-04 16:07:39 UTC) #18
clamy
Thanks! https://codereview.chromium.org/2383773002/diff/40001/content/browser/frame_host/navigation_handle_impl.cc File content/browser/frame_host/navigation_handle_impl.cc (right): https://codereview.chromium.org/2383773002/diff/40001/content/browser/frame_host/navigation_handle_impl.cc#newcode648 content/browser/frame_host/navigation_handle_impl.cc:648: // A navigation form a renderer that is ...
4 years, 2 months ago (2016-10-04 16:12:54 UTC) #20
Charlie Reis
Thanks! LGTM, too.
4 years, 2 months ago (2016-10-04 16:19:43 UTC) #22
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/2383773002/60001
4 years, 2 months ago (2016-10-04 22:35:01 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-04 22:41:13 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 22:42:42 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/152381c57c5c04d07b9ebb2496e369ba239a98f7
Cr-Commit-Position: refs/heads/master@{#422972}

Powered by Google App Engine
This is Rietveld 408576698