-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Add optional host permissions for Manifest V3
Add the optional_host_permissions field for Manifest V3. Permissions specified here behave the same as host permissions specified in optional_permissions for Manifest V2. Bug: 1265064 Change-Id: I5916382317fd5beda2b6908c3cb45cafdf2be341 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3558980 Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org> Cr-Commit-Position: refs/heads/main@{#988218}
- Loading branch information
1 parent
869c8ce
commit 614b578
Showing
11 changed files
with
140 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...e/test/data/extensions/manifest_tests/init_invalid_optional_host_permissions_invalid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Host permissions not a list", | ||
"version": "0.1", | ||
"manifest_version": 3, | ||
"optional_host_permissions": "Why wont this work?!" | ||
} |
14 changes: 14 additions & 0 deletions
14
chrome/test/data/extensions/manifest_tests/permissions_overlapping_host_permissions_mv3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "Redundant extension with optional google maps host permission", | ||
"version": "0.0.1.33", | ||
"manifest_version": 3, | ||
"description": "Extension with overlapping required and optional host permissions", | ||
"host_permissions": [ | ||
"https://example.com/*", | ||
"https://*.google.com/*" | ||
], | ||
"optional_host_permissions": [ | ||
"https://google.com/maps", | ||
"*://chromium.org/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters