summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/content/aboutaddonsCommon.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/content/aboutaddonsCommon.js')
-rw-r--r--toolkit/mozapps/extensions/content/aboutaddonsCommon.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/toolkit/mozapps/extensions/content/aboutaddonsCommon.js b/toolkit/mozapps/extensions/content/aboutaddonsCommon.js
index 9315e35861..fd91ba58be 100644
--- a/toolkit/mozapps/extensions/content/aboutaddonsCommon.js
+++ b/toolkit/mozapps/extensions/content/aboutaddonsCommon.js
@@ -5,7 +5,7 @@
"use strict";
-/* exported attachUpdateHandler, detachUpdateHandler, gBrowser,
+/* exported attachUpdateHandler, detachUpdateHandler,
* getBrowserElement, installAddonsFromFilePicker,
* isCorrectlySigned, isDisabledUnsigned, isDiscoverEnabled,
* isPending, loadReleaseNotes, openOptionsInTab, promiseEvent,
@@ -196,21 +196,6 @@ function showPermissionsPrompt(addon) {
});
}
-// Stub tabbrowser implementation for use by the tab-modal alert code
-// when an alert/prompt/confirm method is called in a WebExtensions options_ui
-// page (See Bug 1385548 for rationale).
-var gBrowser = {
- getTabModalPromptBox(browser) {
- const parentWindow = window.docShell.chromeEventHandler.ownerGlobal;
-
- if (parentWindow.gBrowser) {
- return parentWindow.gBrowser.getTabModalPromptBox(browser);
- }
-
- return null;
- },
-};
-
function isCorrectlySigned(addon) {
// Add-ons without an "isCorrectlySigned" property are correctly signed as
// they aren't the correct type for signing.