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

Issue 10828067: Extension resources should only load in contexts the extension has permission to access. (Closed)

Created:
8 years, 4 months ago by Mike West
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, brettw-cc_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Extension resources should only load in contexts the extension has permission to access. See http://codereview.chromium.org/10792008/ for background. BUG=139592 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149610

Patch Set 1 #

Total comments: 9

Patch Set 2 : Aaron's feedback, Part 1/2. #

Total comments: 3

Patch Set 3 : NaCl #

Total comments: 2

Patch Set 4 : Patch for landing. #

Patch Set 5 : Rebased onto ToT. #

Patch Set 6 : Line endings. How I hate them. #

Messages

Total messages: 24 (0 generated)
Mike West
Hello Aaron and Matt! Since you two were involved in the original pass at this ...
8 years, 4 months ago (2012-07-30 14:03:38 UTC) #1
Aaron Boodman
https://chromiumcodereview.appspot.com/10828067/diff/1/chrome/renderer/extensions/extension_resource_request_policy.cc File chrome/renderer/extensions/extension_resource_request_policy.cc (right): https://chromiumcodereview.appspot.com/10828067/diff/1/chrome/renderer/extensions/extension_resource_request_policy.cc#newcode60 chrome/renderer/extensions/extension_resource_request_policy.cc:60: extension->IsResourceWebAccessible(resource_url.path()) || The parenthetical comment about manifest v2+ is ...
8 years, 4 months ago (2012-07-30 14:28:26 UTC) #2
Mike West
Running the `about:blank` workaround through the trybots while I fiddle with content_script tests. http://codereview.chromium.org/10828067/diff/1/chrome/renderer/extensions/extension_resource_request_policy.cc File ...
8 years, 4 months ago (2012-07-31 09:25:06 UTC) #3
Aaron Boodman
cool http://codereview.chromium.org/10828067/diff/4001/chrome/renderer/extensions/extension_resource_request_policy.cc File chrome/renderer/extensions/extension_resource_request_policy.cc (right): http://codereview.chromium.org/10828067/diff/4001/chrome/renderer/extensions/extension_resource_request_policy.cc#newcode52 chrome/renderer/extensions/extension_resource_request_policy.cc:52: // Loading a resource into an empty iframe ...
8 years, 4 months ago (2012-07-31 09:50:10 UTC) #4
Matt Perry
I'll defer to Aaron here.
8 years, 4 months ago (2012-07-31 12:11:35 UTC) #5
Mike West
On 2012/07/31 09:50:10, Aaron Boodman wrote: > cool I've made these changes, and filed crbug.com/139788 ...
8 years, 4 months ago (2012-07-31 14:04:02 UTC) #6
Aaron Boodman
If you can't get it today, I'll take over.
8 years, 4 months ago (2012-07-31 14:31:01 UTC) #7
Mike West
On 2012/07/31 14:31:01, Aaron Boodman wrote: > If you can't get it today, I'll take ...
8 years, 4 months ago (2012-07-31 14:35:17 UTC) #8
Aaron Boodman
On 2012/07/31 14:35:17, Mike West (chromium) wrote: > On 2012/07/31 14:31:01, Aaron Boodman wrote: > ...
8 years, 4 months ago (2012-07-31 14:56:27 UTC) #9
Mike West
On 2012/07/31 14:56:27, Aaron Boodman wrote: > On 2012/07/31 14:35:17, Mike West (chromium) wrote: > ...
8 years, 4 months ago (2012-08-01 08:09:28 UTC) #10
Mike West
On 2012/08/01 08:09:28, Mike West (chromium) wrote: > On 2012/07/31 14:56:27, Aaron Boodman wrote: > ...
8 years, 4 months ago (2012-08-01 10:54:45 UTC) #11
Aaron Boodman
LGTM woo http://codereview.chromium.org/10828067/diff/12003/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): http://codereview.chromium.org/10828067/diff/12003/chrome/common/extensions/extension.h#newcode358 chrome/common/extensions/extension.h:358: bool IsResourceNaClModule(const std::string& resource) const; IsResourceNaclManifest()? To ...
8 years, 4 months ago (2012-08-01 21:56:54 UTC) #12
Mike West
On 2012/08/01 21:56:54, Aaron Boodman wrote: > LGTM > > woo Woo, indeed. :) Try ...
8 years, 4 months ago (2012-08-02 09:09:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10828067/16003
8 years, 4 months ago (2012-08-02 09:10:28 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json: While running patch -p1 --forward --force; patching file chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json ...
8 years, 4 months ago (2012-08-02 09:10:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10828067/7005
8 years, 4 months ago (2012-08-02 09:23:04 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json: While running patch -p1 --forward --force; patching file chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json ...
8 years, 4 months ago (2012-08-02 09:23:11 UTC) #17
Mike West
On 2012/08/02 09:23:11, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
8 years, 4 months ago (2012-08-02 09:25:09 UTC) #18
Mike West
On 2012/08/02 09:25:09, Mike West (chromium) wrote: > On 2012/08/02 09:23:11, I haz the power ...
8 years, 4 months ago (2012-08-02 11:04:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10828067/7005
8 years, 4 months ago (2012-08-02 11:04:15 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json: While running patch -p1 --forward --force; patching file chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json ...
8 years, 4 months ago (2012-08-02 11:04:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/10828067/7006
8 years, 4 months ago (2012-08-02 11:09:57 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json: While running patch -p1 --forward --force; patching file chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json ...
8 years, 4 months ago (2012-08-02 11:10:00 UTC) #23
Mike West
8 years, 4 months ago (2012-08-02 11:11:03 UTC) #24
On 2012/08/02 11:10:00, I haz the power (commit-bot) wrote:
> Failed to apply patch for
>
chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json:
> While running patch -p1 --forward --force;
> patching file
>
chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json
> Hunk #1 FAILED at 1.
> 1 out of 1 hunk FAILED -- saving rejects to file
>
chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/manifest.json.rej

I hate it. Landing.

Powered by Google App Engine
This is Rietveld 408576698