Open
Bug 2022704
Opened 1 month ago
Updated 1 month ago
Cannot revoke host permission that had been removed from manifest.json (and was not cleaned up by migration)
Categories
(WebExtensions :: General, defect, P3)
WebExtensions
General
Tracking
(Not tracked)
NEW
People
(Reporter: robwu, Unassigned)
References
Details
STR:
- Create a MV3 extension whose manifest.json file contains
https://example.com/*(or any other host permission including<all_urls>) inhost_permissions. - Load the extension via
about:debuggingor withweb-ext run - Edit manifest.json and remove that permission.
- Visit
about:addonsand try to uncheck the permission in "Permissions and data".
Expected:
- Permission should be revoked.
Actual:
- Although the checkbox is toggled, the permission is not revoked.
- The Browser Console shows: "Uncaught (in promise) Error: https://example.com/* was not declared in the manifest", thrown from normalizeOptional, called by
setAddonPermissioninaboutaddons.js.
This is one of the consequences of bug 1766915.
I also tried an artificial reproduction with a non-temporary add-on, by installing a MV3 extension, editing extension-preferences.json to manually add a permission, clearing the startup cache and then running the STR from about:addons. The results are still the same. But this may be too artificial, there is clearly logic in the tree to drop obsolete permissions on extension updates (migratePermissions).
| Reporter | ||
Updated•1 month ago
|
Severity: -- → S3
Priority: -- → P3
You need to log in
before you can comment on or make changes to this bug.
Description
•