Closed Bug 1810718 Opened 2 years ago Closed 3 months ago

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

Categories

(Remote Protocol :: Marionette, enhancement, P3)

Default
enhancement
Points:
2

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

Details

(Whiteboard: [webdriver:m14][webdriver:relnote])

Attachments

(2 files)

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
Depends on: 1806135
Points: --- → 2
Whiteboard: [webdriver:m13]
Blocks: 1926311
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Whiteboard: [webdriver:m13] → [webdriver:m14]
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e79185b638b2 Add support for installing an add-on that is enabled in Private Browsing mode. r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/bb2abec6a56b Add tests for installing an add-on that is enabled in Private Browsing mode. r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Whiteboard: [webdriver:m14] → [webdriver:m14][webdriver:relnote]
See Also: → 1947679
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: