Index: lib/appSupport.js |
=================================================================== |
--- a/lib/appSupport.js |
+++ b/lib/appSupport.js |
@@ -916,6 +916,26 @@ |
if (Utils.confirm(window, dialogMessage, dialogTitle)) |
this.setSubscription(url, title); |
}; |
+ |
+ UI.openFiltersDialog = function() |
+ { |
+ let window = UI.currentWindow; |
+ if (!window) |
+ return |
+ |
+ let browser = exports.addTab(window, "about:addons").browser; |
+ browser.addEventListener("load", function openAddonPrefs(event) |
+ { |
+ browser.removeEventListener("load", openAddonPrefs, true); |
+ Utils.runAsync(function() |
+ { |
+ let event = new Event("Event"); |
+ event.initEvent("popstate", true, false); |
+ event.state = {id: require("info").addonID}; |
+ browser._contentWindow.dispatchEvent(event); |
+ }); |
+ }, true); |
+ }; |
break; |
} |