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

Issue 161003002: Do not trigger CrossSiteResourceHandler for streams or user certs. (Closed)

Created:
6 years, 10 months ago by davidben
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Visibility:
Public.

Description

Do not trigger CrossSiteResourceHandler for streams or user certs. When a resource request gets pre-empted in favor of either a stream or user certificate installation, do not trigger CrossSiteResourceHandler behavior. Add a regression test to ensure the DCHECK does not fire. BUG=342999 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251132

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add a TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -4 lines) Patch
M chrome/browser/extensions/api/streams_private/streams_private_apitest.cc View 6 chunks +60 lines, -2 lines 0 comments Download
M content/browser/loader/buffered_resource_handler.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
davidben
creis: Main review. kalman: chrome/browser/extensions/ creis, do you think we'll want to merge this? The ...
6 years, 10 months ago (2014-02-12 19:57:56 UTC) #1
davidben
https://codereview.chromium.org/161003002/diff/1/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (left): https://codereview.chromium.org/161003002/diff/1/content/browser/loader/buffered_resource_handler.cc#oldcode375 content/browser/loader/buffered_resource_handler.cc:375: // TODO(davidben): These DCHECKs do actually trigger. (Removed this ...
6 years, 10 months ago (2014-02-12 19:58:56 UTC) #2
not at google - send to devlin
could you make zork@ the reviewer for the extensions portion of this? I don't know ...
6 years, 10 months ago (2014-02-12 20:47:42 UTC) #3
davidben
On 2014/02/12 20:47:42, kalman wrote: > could you make zork@ the reviewer for the extensions ...
6 years, 10 months ago (2014-02-12 20:54:31 UTC) #4
Zachary Kuznia
lgtm https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc File content/browser/loader/cross_site_resource_handler.cc (right): https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc#newcode164 content/browser/loader/cross_site_resource_handler.cc:164: if (!swap_needed || info->IsDownload() || info->is_stream() || On ...
6 years, 10 months ago (2014-02-12 22:04:48 UTC) #5
davidben
https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc File content/browser/loader/cross_site_resource_handler.cc (right): https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc#newcode164 content/browser/loader/cross_site_resource_handler.cc:164: if (!swap_needed || info->IsDownload() || info->is_stream() || On 2014/02/12 ...
6 years, 10 months ago (2014-02-12 22:18:55 UTC) #6
Charlie Reis
Nice find! LGTM, though I'd like to find a way to unify is_stream() and IsDownload ...
6 years, 10 months ago (2014-02-13 01:45:07 UTC) #7
not at google - send to devlin
rubberstamp lgtm for extensions zork could you add yourself as an OWNER in the streams ...
6 years, 10 months ago (2014-02-13 02:48:46 UTC) #8
davidben
https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc File content/browser/loader/cross_site_resource_handler.cc (right): https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc#newcode164 content/browser/loader/cross_site_resource_handler.cc:164: if (!swap_needed || info->IsDownload() || info->is_stream() || On 2014/02/13 ...
6 years, 10 months ago (2014-02-13 03:48:27 UTC) #9
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-13 18:08:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/161003002/190001
6 years, 10 months ago (2014-02-13 18:09:17 UTC) #11
Charlie Reis
https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc File content/browser/loader/cross_site_resource_handler.cc (right): https://codereview.chromium.org/161003002/diff/1/content/browser/loader/cross_site_resource_handler.cc#newcode164 content/browser/loader/cross_site_resource_handler.cc:164: if (!swap_needed || info->IsDownload() || info->is_stream() || On 2014/02/13 ...
6 years, 10 months ago (2014-02-13 19:33:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/161003002/190001
6 years, 10 months ago (2014-02-13 19:55:59 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 21:38:09 UTC) #14
Message was sent while issue was closed.
Change committed as 251132

Powered by Google App Engine
This is Rietveld 408576698