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(state) |
+ { |
+ let event = new Event("Event"); |
+ event.initEvent("popstate", true, false); |
+ event.state = state; |
+ browser._contentWindow.dispatchEvent(event); |
+ }, this, {id: require("info").addonID}); |
Wladimir Palant
2014/05/02 16:36:47
Passing in this and the state parameter is unneces
saroyanm
2014/05/03 08:02:06
My bad that I didn't left comment on this.
When I
Wladimir Palant
2014/05/03 17:54:18
That's indeed an issue. The list of add-ons is bei
saroyanm
2014/05/04 14:05:08
Thanks for descriptive answer Wladimir,
I also ha
|
+ }, true); |
+ }; |
break; |
} |