MV3: Origin controls displays "Always allow on [site]" instead of "On All Sites" when http(s) host permission is requested
Categories
(WebExtensions :: General, defect, P3)
Tracking
(firefox130 fixed)
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: robwu, Assigned: rpl)
References
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
With a Manifest Version 3 extension, Origin controls displays "Always allow on [site]" instead of "On All Sites" when the requested host permission is http://*/*
or https://*/*
(separately from *//*/*
or <all_urls>
). This is because the implementation relies on matchpatternset.subsumes(allDomains)
with allDomains = new MatchPattern("*://*/*")
: https://searchfox.org/mozilla-central/rev/95787423bc1c7ba895ef9c6918feb054866d9f41/toolkit/components/extensions/ExtensionPermissions.sys.mjs#560-562
And that in turns does not work due to bug 1856380.
Either bug 1856380 needs to be fixed, or the implementation linked above should use matchesAllWebUrls
from part 1 of bug 1853409.
Minimal test case:
- Load extension with following manifest.json:
{
"name": "http-https-perm",
"manfest_version": 3,
"version": "1",
"host_permissions": [ "http://*/*", "https://*/*" ]
}
- Visit about:addons and grant the permission to all websites via the Permissions tab of the add-on ("Access your data for all websites").
- Visit example.com
- Click on the Extension Button.
- Click on the cog next to the add-on and look at the menu item.
Expected (this can be seen if you use "host_permissions": ["*://*/*"]
instead):
- "On All Sites"
Actual:
- "Always allow on example.com"
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Assignee | ||
Comment 1•2 months ago
|
||
Depends on D215147
Updated•2 months ago
|
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/6e449c45ed4f origin control message should show on all sites on http(s) host permissions. r=robwu,zombie
Comment 3•2 months ago
|
||
bugherder |
Description
•