|
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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80213
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+226 lines, -88 lines) |
Patch |
 |
M |
chrome/browser/extensions/extension_prefs.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_prefs.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+23 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extensions_ui.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+1 line, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/user_script_master.cc
|
View
|
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/extension_settings_handler.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+1 line, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension.h
|
View
|
1
2
3
4
5
6
|
6 chunks |
+20 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+27 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension_unittest.cc
|
View
|
|
3 chunks |
+73 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/url_pattern.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/user_script.h
|
View
|
|
4 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/user_script.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/user_script_slave.cc
|
View
|
|
3 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/content_script_all_urls.json
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/content_script_file_scheme.json
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/content_script_http_scheme.json
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/permissions_all_urls.json
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/permissions_file_scheme.json
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/permissions/permissions_http_scheme.json
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|