Infocatcher / Download_Panel_Tweaker

Some tweaks for built-in download panel, restartless extension for Firefox
https://addons.mozilla.org/addon/download-panel-tweaker/
Other
9 stars 2 forks source link

[e10s] Downloads button on about:home page isn't supported with enabled Electrolysis (multi-process mode) #33

Open Infocatcher opened 9 years ago

Infocatcher commented 9 years ago

Separated from https://github.com/Infocatcher/Download_Panel_Tweaker/issues/32#issuecomment-66886405 And bug 1051238 – frame scripts are cached forever & thus can't be updated restartless. :(

Infocatcher commented 9 years ago

D'oh, how to detect browser with about:home without global content script:

var mm = Components.classes["@mozilla.org/globalmessagemanager;1"]
    .getService(Components.interfaces.nsIMessageListenerManager);
var listener = {
    receiveMessage: function(msg) {
        mm.removeMessageListener("AboutHome:RequestUpdate", this);
        var browser = msg.target;
        alert(browser.currentURI.spec);
    }
};
mm.addMessageListener("AboutHome:RequestUpdate", listener);

gBrowser.addTab("about:home");