summaryrefslogtreecommitdiffstats
path: root/application/basilisk/components/webextensions/ext-desktop-runtime.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-13 11:50:04 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-13 11:50:04 +0100
commit6bb02d95f70000b150569089987701c8244d7d5d (patch)
treec7e11508f70ee665c3a3a039f7101fd62ad9e47e /application/basilisk/components/webextensions/ext-desktop-runtime.js
parent71c81eb900ac3b8a770a4b844771faf335999861 (diff)
downloadUXP-6bb02d95f70000b150569089987701c8244d7d5d.tar
UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.gz
UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.lz
UXP-6bb02d95f70000b150569089987701c8244d7d5d.tar.xz
UXP-6bb02d95f70000b150569089987701c8244d7d5d.zip
Remove webextensions conditional code from Basilisk.
Tag issue #936
Diffstat (limited to 'application/basilisk/components/webextensions/ext-desktop-runtime.js')
-rw-r--r--application/basilisk/components/webextensions/ext-desktop-runtime.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/application/basilisk/components/webextensions/ext-desktop-runtime.js b/application/basilisk/components/webextensions/ext-desktop-runtime.js
deleted file mode 100644
index 0fdb45562..000000000
--- a/application/basilisk/components/webextensions/ext-desktop-runtime.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-/* eslint-disable mozilla/balanced-listeners */
-extensions.on("uninstall", (msg, extension) => {
- if (extension.uninstallURL) {
- let browser = WindowManager.topWindow.gBrowser;
- browser.addTab(extension.uninstallURL, {relatedToCurrent: true});
- }
-});
-
-global.openOptionsPage = (extension) => {
- let window = WindowManager.topWindow;
- if (!window) {
- return Promise.reject({message: "No browser window available"});
- }
-
- if (extension.manifest.options_ui.open_in_tab) {
- window.switchToTabHavingURI(extension.manifest.options_ui.page, true);
- return Promise.resolve();
- }
-
- let viewId = `addons://detail/${encodeURIComponent(extension.id)}/preferences`;
-
- return window.BrowserOpenAddonsMgr(viewId);
-};
-