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

Issue 2808051: Refactored extension privilege enumeration and implemented URLPattern compari... (Closed)

Created:
10 years, 5 months ago by Cris Neckar
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, jschuh
Visibility:
Public.

Description

Refactored extension privilege enumeration and implemented URLPattern comparisons. This will allow checks on per origin extension resource access. Added origin check when loading extension resources. BUG=45876 TEST=ExtensionTest.IsPrivilegeIncrease TEST=ExtensionTest.EffectiveHostPermissions TEST=ExtensionBrowserTest.OriginPrivileges Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55103

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -59 lines) Patch
M chrome/browser/extensions/extension_browsertests_misc.cc View 2 3 4 5 3 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui.cc View 1 2 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_protocols.cc View 1 1 chunk +16 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 chunks +14 lines, -13 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 chunks +30 lines, -28 lines 0 comments Download
M chrome/common/extensions/url_pattern.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/origin_privileges/extension/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/origin_privileges/extension/test.png View Binary file 0 comments Download
A chrome/test/data/extensions/origin_privileges/index.html View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
A test would also be good. Take a look at the api tests in chrome/test/data/extensions/api_tests. ...
10 years, 4 months ago (2010-08-02 21:31:11 UTC) #1
Cris Neckar
http://codereview.chromium.org/2808051/diff/1/3 File chrome/browser/extensions/extension_protocols.cc (right): http://codereview.chromium.org/2808051/diff/1/3#newcode83 chrome/browser/extensions/extension_protocols.cc:83: if (info->frame_origin().empty() && On 2010/08/02 21:31:11, Aaron Boodman wrote: ...
10 years, 4 months ago (2010-08-04 19:34:50 UTC) #2
Aaron Boodman
Please unpack the crx and use LoadExtension() instead of InstallExtension(). The packed crx files are ...
10 years, 4 months ago (2010-08-04 20:32:04 UTC) #3
Cris Neckar
On 2010/08/04 20:32:04, Aaron Boodman wrote: > Please unpack the crx and use LoadExtension() instead ...
10 years, 4 months ago (2010-08-04 21:28:06 UTC) #4
Aaron Boodman
10 years, 4 months ago (2010-08-04 22:52:24 UTC) #5
LGTM w/ one last change below. Thanks for your patience. You can just submit
with the change without waiting for me to review.

http://codereview.chromium.org/2808051/diff/39001/17013
File chrome/test/data/extensions/origin_privileges.html (right):

http://codereview.chromium.org/2808051/diff/39001/17013#newcode1
chrome/test/data/extensions/origin_privileges.html:1: <title>Unmodified</title>
You should move this into origin_privileges folder just for code organization
purposes.

Powered by Google App Engine
This is Rietveld 408576698