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

Issue 1384113002: CrossSiteResourceHandler: cancel request if the RFH is gone (Closed)

Created:
5 years, 2 months ago by ncarter (slow)
Modified:
5 years, 2 months ago
Reviewers:
nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@no_isolate_apps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CrossSiteResourceHandler: cancel request if there's no RFH to do a policy check against. Also included is a new test which demonstrates the issue. This was based on CrossSiteTransferTest, which I did some cleanup on. BUG=538784, 268640 TEST=content_browsertests, with and without --enable-browser-side-navigation Committed: https://crrev.com/dc67237b8beb43a3389c38861c9c153cbb374a91 Cr-Commit-Position: refs/heads/master@{#352413}

Patch Set 1 #

Patch Set 2 : Narrow scope of patch #

Patch Set 3 : Self-review fixes. #

Patch Set 4 : Fix comment. #

Total comments: 10

Patch Set 5 : Fix clang compile & add test comment. #

Patch Set 6 : fixes from nasko #

Total comments: 2

Patch Set 7 : Add EXPECT_TRUE's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -46 lines) Patch
M content/browser/cross_site_transfer_browsertest.cc View 1 2 3 4 5 6 17 chunks +27 lines, -28 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.h View 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 4 chunks +45 lines, -17 lines 0 comments Download
A content/browser/loader/cross_site_resource_handler_browsertest.cc View 1 2 3 4 5 6 1 chunk +277 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (5 generated)
ncarter (slow)
Nasko, please review.
5 years, 2 months ago (2015-10-02 22:20:59 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384113002/60001
5 years, 2 months ago (2015-10-02 22:21:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/61875) cast_shell_linux on ...
5 years, 2 months ago (2015-10-02 22:37:47 UTC) #6
nasko
Looks good, just some nits. https://codereview.chromium.org/1384113002/diff/60001/content/browser/loader/cross_site_resource_handler_browsertest.cc File content/browser/loader/cross_site_resource_handler_browsertest.cc (right): https://codereview.chromium.org/1384113002/diff/60001/content/browser/loader/cross_site_resource_handler_browsertest.cc#newcode49 content/browser/loader/cross_site_resource_handler_browsertest.cc:49: // Expect only a ...
5 years, 2 months ago (2015-10-05 18:01:55 UTC) #7
ncarter (slow)
https://codereview.chromium.org/1384113002/diff/60001/content/browser/loader/cross_site_resource_handler_browsertest.cc File content/browser/loader/cross_site_resource_handler_browsertest.cc (right): https://codereview.chromium.org/1384113002/diff/60001/content/browser/loader/cross_site_resource_handler_browsertest.cc#newcode49 content/browser/loader/cross_site_resource_handler_browsertest.cc:49: // Expect only a single request for the tracked ...
5 years, 2 months ago (2015-10-05 18:31:37 UTC) #8
nasko
LGTM with one last comment. https://codereview.chromium.org/1384113002/diff/100001/content/browser/loader/cross_site_resource_handler_browsertest.cc File content/browser/loader/cross_site_resource_handler_browsertest.cc (right): https://codereview.chromium.org/1384113002/diff/100001/content/browser/loader/cross_site_resource_handler_browsertest.cc#newcode246 content/browser/loader/cross_site_resource_handler_browsertest.cc:246: NavigateToURL(shell(), attacker_page); Oh, missed ...
5 years, 2 months ago (2015-10-05 18:38:33 UTC) #9
ncarter (slow)
https://codereview.chromium.org/1384113002/diff/100001/content/browser/loader/cross_site_resource_handler_browsertest.cc File content/browser/loader/cross_site_resource_handler_browsertest.cc (right): https://codereview.chromium.org/1384113002/diff/100001/content/browser/loader/cross_site_resource_handler_browsertest.cc#newcode246 content/browser/loader/cross_site_resource_handler_browsertest.cc:246: NavigateToURL(shell(), attacker_page); On 2015/10/05 18:38:33, nasko (slow to review) ...
5 years, 2 months ago (2015-10-05 18:59:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1384113002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1384113002/120001
5 years, 2 months ago (2015-10-05 19:00:47 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-05 20:38:54 UTC) #14
commit-bot: I haz the power
5 years, 2 months ago (2015-10-05 20:40:20 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dc67237b8beb43a3389c38861c9c153cbb374a91
Cr-Commit-Position: refs/heads/master@{#352413}

Powered by Google App Engine
This is Rietveld 408576698