Skip to content
Commit 3aff9ad2 authored by mihaip@chromium.org's avatar mihaip@chromium.org
Browse files

Make <all_urls> and file:///* in permissions trigger "Allow file access"

Move ExtensionWantsFileAccess static functions to Extension::wants_file_access
which is set as part of the Extension initialization process.

When file:/// access is granted/revoked, instead of storing that in a bit on the
UserScript (which didn't help with extension host permissions), we use that
to filter down the list of valid schemes for permissions/content script match
matterns. That way we don't have to manually exclude file:///* patterns at
various call sites (e.g. in UserScriptSlave).

BUG=76705
TEST=unit_tests
R=aa@chromium.org

Review URL: http://codereview.chromium.org/6772022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80213 0039d316-1c4b-4281-b951-d872f2087c98
parent bcb2c77e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment