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

Issue 694773003: Allow URL requests for object/embed tags to be intercepted as streams. (Closed)

Created:
6 years, 1 month ago by raymes
Modified:
6 years, 1 month ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, Zachary Kuznia
Base URL:
https://chromium.googlesource.com/chromium/src.git@refactor-guest-view-container-3
Project:
chromium
Visibility:
Public.

Description

Allow URL requests for object/embed tags to be intercepted as streams. BrowserPlugins make URL requests on behalf of object tags. Requests on behalf of object tags should be treated in a similar way to requests in behalf of frames in that they are allowed to be intercepted as a stream request, however unlike frames they should never be downloaded. This CL allows these requests to be intercepted in that way. BUG=416310 TBR=mkosiba@chromium.org,benwells@chromium.org Committed: https://crrev.com/9325d7ca3d712a1fcc58d4066984206da6b9e612 Cr-Commit-Position: refs/heads/master@{#305130}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 20

Patch Set 5 : #

Patch Set 6 : #

Total comments: 20

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 8

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -10 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_permissions_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_protocols_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/search/iframe_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/buffered_resource_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/loader/buffered_resource_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A content/browser/loader/buffered_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +289 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/mime_handler_view/mime_handler_view_container.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
raymes
mmenke: I was able to greatly simplify this and hopefully it makes much more sense. ...
6 years, 1 month ago (2014-11-06 00:00:01 UTC) #2
raymes
6 years, 1 month ago (2014-11-06 00:11:17 UTC) #3
mmenke
I still have no idea what this is doing. Object? Stream? Should we be bypassing ...
6 years, 1 month ago (2014-11-06 15:08:17 UTC) #4
raymes
Hi mmenke, Thanks for taking a look. Sorry for the delay. Please see below. On ...
6 years, 1 month ago (2014-11-12 05:44:17 UTC) #5
mmenke
On 2014/11/12 05:44:17, raymes wrote: > Hi mmenke, > > Thanks for taking a look. ...
6 years, 1 month ago (2014-11-12 12:03:33 UTC) #6
raymes
Thanks mmenke. Yes the other reviewer was zork@ (he was on the cc line here). ...
6 years, 1 month ago (2014-11-12 22:50:47 UTC) #8
Zachary Kuznia
https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc#newcode316 content/browser/loader/buffered_resource_handler.cc:316: if (info->GetResourceType() == content::RESOURCE_TYPE_OBJECT) { Why isn't this caught ...
6 years, 1 month ago (2014-11-13 23:18:08 UTC) #9
raymes
Thanks for taking a look! https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc#newcode316 content/browser/loader/buffered_resource_handler.cc:316: if (info->GetResourceType() == content::RESOURCE_TYPE_OBJECT) ...
6 years, 1 month ago (2014-11-13 23:42:10 UTC) #10
Zachary Kuznia
https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc#newcode316 content/browser/loader/buffered_resource_handler.cc:316: if (info->GetResourceType() == content::RESOURCE_TYPE_OBJECT) { On 2014/11/13 23:42:10, raymes ...
6 years, 1 month ago (2014-11-13 23:48:42 UTC) #11
raymes
Thanks Zach! PTAL https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc#newcode316 content/browser/loader/buffered_resource_handler.cc:316: if (info->GetResourceType() == content::RESOURCE_TYPE_OBJECT) { I ...
6 years, 1 month ago (2014-11-14 20:55:29 UTC) #12
Zachary Kuznia
LGTM https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/40001/content/browser/loader/buffered_resource_handler.cc#newcode316 content/browser/loader/buffered_resource_handler.cc:316: if (info->GetResourceType() == content::RESOURCE_TYPE_OBJECT) { On 2014/11/14 20:55:29, ...
6 years, 1 month ago (2014-11-14 22:01:45 UTC) #13
raymes
+OWNERS mmenke: could you please take a look at content/browser/loader/* jochen for: content/public/browser/resource_request_info.h
6 years, 1 month ago (2014-11-17 00:58:54 UTC) #14
raymes
+OWNERS mmenke: could you please take a look at content/browser/loader/* jochen for: content/public/browser/resource_request_info.h
6 years, 1 month ago (2014-11-17 00:59:07 UTC) #16
mmenke
https://codereview.chromium.org/694773003/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode320 content/browser/loader/buffered_resource_handler.cc:320: host_->MaybeInterceptAsStream(request(), response_.get(), &payload)); The other call to this is ...
6 years, 1 month ago (2014-11-17 18:57:08 UTC) #17
raymes
Thanks, ptal! https://codereview.chromium.org/694773003/diff/60001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/60001/content/browser/loader/buffered_resource_handler.cc#newcode320 content/browser/loader/buffered_resource_handler.cc:320: host_->MaybeInterceptAsStream(request(), response_.get(), &payload)); Requests for those types ...
6 years, 1 month ago (2014-11-17 23:44:25 UTC) #18
jochen (gone - plz use gerrit)
content/public lgtm
6 years, 1 month ago (2014-11-18 13:40:38 UTC) #19
mmenke
LGTM https://codereview.chromium.org/694773003/diff/100001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/100001/content/browser/loader/buffered_resource_handler.cc#newcode320 content/browser/loader/buffered_resource_handler.cc:320: info->GetResourceType() == RESOURCE_TYPE_SUB_FRAME); Can move this down below ...
6 years, 1 month ago (2014-11-18 16:32:17 UTC) #20
raymes
https://codereview.chromium.org/694773003/diff/100001/content/browser/loader/buffered_resource_handler.cc File content/browser/loader/buffered_resource_handler.cc (right): https://codereview.chromium.org/694773003/diff/100001/content/browser/loader/buffered_resource_handler.cc#newcode320 content/browser/loader/buffered_resource_handler.cc:320: info->GetResourceType() == RESOURCE_TYPE_SUB_FRAME); On 2014/11/18 16:32:17, mmenke wrote: > ...
6 years, 1 month ago (2014-11-19 04:08:37 UTC) #21
mmenke
A couple more comments. Feel free to land when you've addressed them. https://codereview.chromium.org/694773003/diff/180001/content/browser/loader/buffered_resource_handler_unittest.cc File content/browser/loader/buffered_resource_handler_unittest.cc ...
6 years, 1 month ago (2014-11-19 16:44:59 UTC) #22
raymes
https://codereview.chromium.org/694773003/diff/180001/content/browser/loader/buffered_resource_handler_unittest.cc File content/browser/loader/buffered_resource_handler_unittest.cc (right): https://codereview.chromium.org/694773003/diff/180001/content/browser/loader/buffered_resource_handler_unittest.cc#newcode21 content/browser/loader/buffered_resource_handler_unittest.cc:21: class BufferedResourceHandlerTest : public testing::Test { On 2014/11/19 16:44:59, ...
6 years, 1 month ago (2014-11-19 23:34:34 UTC) #23
raymes
There were a bunch of unittests that had to be updated as a result of ...
6 years, 1 month ago (2014-11-19 23:45:12 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694773003/280001
6 years, 1 month ago (2014-11-20 03:03:46 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694773003/300001
6 years, 1 month ago (2014-11-20 03:06:33 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/7397)
6 years, 1 month ago (2014-11-20 03:59:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694773003/320001
6 years, 1 month ago (2014-11-20 04:16:12 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/7336)
6 years, 1 month ago (2014-11-20 13:58:05 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694773003/360001
6 years, 1 month ago (2014-11-20 23:34:41 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694773003/360001
6 years, 1 month ago (2014-11-21 00:38:39 UTC) #44
commit-bot: I haz the power
Committed patchset #18 (id:360001)
6 years, 1 month ago (2014-11-21 01:03:00 UTC) #45
commit-bot: I haz the power
6 years, 1 month ago (2014-11-21 01:03:43 UTC) #46
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/9325d7ca3d712a1fcc58d4066984206da6b9e612
Cr-Commit-Position: refs/heads/master@{#305130}

Powered by Google App Engine
This is Rietveld 408576698