Open Bug 1810718 Opened 2 years ago Updated 1 year ago

"Addon:Install" should support installing an add-on that is enabled in Private Browsing mode

Categories

(Remote Protocol :: Marionette, enhancement, P3)

Default
enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

Right now the Addon:Install command only supports a single flag which is for a temporary installation. It would be helpful to also have an eg. allowPrivateBrowsing flag which would set the right permissions to let the add-on also run in private browsing windows.

Therefore some additional permissions have to be set after the addon has been installed and it's id is known. This could look like:

+    const perms = {
+      permissions: ["internal:privateBrowsingAllowed"],
+      origins: [],
+    };
+    await lazy.ExtensionPermissions.add(id, perms);
+    let addon = await lazy.AddonManager.getAddonByID(id)
+    await addon.reload();
Priority: -- → P3
Product: Testing → Remote Protocol

The product has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.