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 666223005: Don't block shared_module extensions by the policy blacklist. (Closed)

Created:
6 years, 2 months ago by Joao da Silva
Modified:
6 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Don't block shared_module extensions by the policy blacklist. Extensions may import resources from other extensions. Extensions that export resources to other extensions are known as shared_modules. Chrome is currently applying the blacklist to all kinds of extensions; this means that whitelisting (or force-installing) an extension that requires shared_modules will fail unless the modules are whitelisted too. This CL bypasses the policy blacklist checks for shared_modules. Also fixed a bug in the CrxInstaller, which prevented extensions loaded via external providers (such as policy) from getting their dependencies installed. BUG=424377 Committed: https://crrev.com/30c8be95aea94a91aa5772e6b070fb9243eaf10d Cr-Commit-Position: refs/heads/master@{#300984}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : override channel #

Patch Set 5 : fixed FilePath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -15 lines) Patch
M chrome/browser/extensions/crx_installer.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/extensions/standard_management_policy_provider.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 4 chunks +77 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/policy_shared_module/importer.crx View Binary file 0 comments Download
A chrome/test/data/extensions/policy_shared_module/importer.pem View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/policy_shared_module/importer/main.html View 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/policy_shared_module/importer/manifest.json View 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/policy_shared_module/shared_module.crx View Binary file 0 comments Download
A chrome/test/data/extensions/policy_shared_module/shared_module.pem View 1 chunk +28 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/policy_shared_module/shared_module/manifest.json View 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/policy_shared_module/shared_module/pass.js View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/policy_shared_module/update.xml View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Joao da Silva
I'm not sure about the CrxInstaller changes, but without some fix there then extensions installed ...
6 years, 2 months ago (2014-10-22 12:28:08 UTC) #2
not at google - send to devlin
Removing myself as reviewer, Antony is more appropriate.
6 years, 2 months ago (2014-10-22 15:29:15 UTC) #4
elijahtaylor1
https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc#newcode489 chrome/browser/extensions/crx_installer.cc:489: if (imported_module && As I stated in the other ...
6 years, 2 months ago (2014-10-22 16:40:02 UTC) #5
elijahtaylor1
https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (left): https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc#oldcode501 chrome/browser/extensions/crx_installer.cc:501: } else if (imported_module && (version_required.IsValid() && one rare-ish ...
6 years, 2 months ago (2014-10-22 16:45:17 UTC) #6
Joao da Silva
Thanks for the hints. I'll update this CL tomorrow; just a couple more questions inline. ...
6 years, 2 months ago (2014-10-22 18:31:05 UTC) #7
elijahtaylor1
https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc#newcode489 chrome/browser/extensions/crx_installer.cc:489: if (imported_module && On 2014/10/22 18:31:05, Joao da Silva ...
6 years, 2 months ago (2014-10-22 19:57:49 UTC) #8
Joao da Silva
Ready to land. Please have a look, thanks! https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc File chrome/browser/extensions/crx_installer.cc (right): https://codereview.chromium.org/666223005/diff/40001/chrome/browser/extensions/crx_installer.cc#newcode489 chrome/browser/extensions/crx_installer.cc:489: if ...
6 years, 2 months ago (2014-10-23 09:15:02 UTC) #9
asargent_no_longer_on_chrome
lgtm, apologies for delay
6 years, 2 months ago (2014-10-23 20:56:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666223005/80001
6 years, 2 months ago (2014-10-23 20:59:45 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-23 23:40:52 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 23:41:30 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/30c8be95aea94a91aa5772e6b070fb9243eaf10d
Cr-Commit-Position: refs/heads/master@{#300984}

Powered by Google App Engine
This is Rietveld 408576698