summaryrefslogtreecommitdiffstats
path: root/browser/modules/ExtensionsUI.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--browser/modules/ExtensionsUI.sys.mjs12
1 files changed, 5 insertions, 7 deletions
diff --git a/browser/modules/ExtensionsUI.sys.mjs b/browser/modules/ExtensionsUI.sys.mjs
index 6b2781670a..f6cbcfcd88 100644
--- a/browser/modules/ExtensionsUI.sys.mjs
+++ b/browser/modules/ExtensionsUI.sys.mjs
@@ -119,12 +119,12 @@ export var ExtensionsUI = {
showAddonsManager(tabbrowser, strings, icon) {
let global = tabbrowser.selectedBrowser.ownerGlobal;
- return global
- .BrowserOpenAddonsMgr("addons://list/extension")
- .then(aomWin => {
+ return global.BrowserAddonUI.openAddonsMgr("addons://list/extension").then(
+ aomWin => {
let aomBrowser = aomWin.docShell.chromeEventHandler;
return this.showPermissionsPrompt(aomBrowser, strings, icon);
- });
+ }
+ );
},
showSideloaded(tabbrowser, addon) {
@@ -134,7 +134,7 @@ export var ExtensionsUI = {
let strings = this._buildStrings({
addon,
- permissions: addon.userPermissions,
+ permissions: addon.installPermissions,
type: "sideload",
});
@@ -339,8 +339,6 @@ export var ExtensionsUI = {
async showPermissionsPrompt(target, strings, icon) {
let { browser, window } = getTabBrowser(target);
- await window.ensureCustomElements("moz-support-link");
-
// Wait for any pending prompts to complete before showing the next one.
let pending;
while ((pending = this.pendingNotifications.get(browser))) {