You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing PR #36069 I realized that my feedback was focused on how match patterns are used for (optional) host permissions declarations in the extension manifest. Unfortunately, that's just one of several ways that match patterns are used in extensions.
This is a non-exhaustive list of WebExtensions API surfaces that use match patterns. At the moment the exact differences between how these various surfaces use match patterns is unclear.
host permissions declared in the host_permissions and optional_host_permissions manifest fields.
same usage pattern should apply to the origins field of the object passed to permissions.request()
Derived from a comment by @dotproto in #36069 (review)
While reviewing PR #36069 I realized that my feedback was focused on how match patterns are used for (optional) host permissions declarations in the extension manifest. Unfortunately, that's just one of several ways that match patterns are used in extensions.
This is a non-exhaustive list of WebExtensions API surfaces that use match patterns. At the moment the exact differences between how these various surfaces use match patterns is unclear.
host permissions declared in the
host_permissions
andoptional_host_permissions
manifest fields.origins
field of the object passed topermissions.request()
the
matches
field of content script declarationsmatches
field in the object passed toscripting.registerContentScripts()
matches
field in the object passed touserScripts.register()
the
matches
as used in entries of theweb_accessible_resources
manifest field (MV3 only).In the
hide_matches
andshow_matches
fields of thepage_action
manifest field.the
url
field of thewebRequest.RequestFilter
object.the
url
field of the filter object passed totabs.onUpdated()
.the
url
field of the options argument passed totabs.query()
the
matches
field of the genericUrlFilter
object.This list is non-exhaustive. I should go through searchfox.org and cs.chromium.org to look for additional uses I may have missed.
The text was updated successfully, but these errors were encountered: