summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-13 19:07:44 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-13 19:07:44 +0200
commit70a08bf916232fdc4ba960c24ebcc62084a33c3b (patch)
tree2c4f642cf042cd446d51dc1b7ad700d922641e74 /application/palemoon/base/content/browser.js
parentc17c14ce6afc026e8b918b8bf48fba7515bebac3 (diff)
downloadUXP-70a08bf916232fdc4ba960c24ebcc62084a33c3b.tar
UXP-70a08bf916232fdc4ba960c24ebcc62084a33c3b.tar.gz
UXP-70a08bf916232fdc4ba960c24ebcc62084a33c3b.tar.lz
UXP-70a08bf916232fdc4ba960c24ebcc62084a33c3b.tar.xz
UXP-70a08bf916232fdc4ba960c24ebcc62084a33c3b.zip
Fix: Developer Toolbar (the command: `cookie`; themes)
Issue #102
Diffstat (limited to 'application/palemoon/base/content/browser.js')
-rw-r--r--application/palemoon/base/content/browser.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index cdf139bbb..6af11af3d 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -722,6 +722,14 @@ var gBrowserInit = {
window.addEventListener("AppCommand", HandleAppCommandEvent, true);
+ // These routines add message listeners. They must run before
+ // loading the frame script to ensure that we don't miss any
+ // message sent between when the frame script is loaded and when
+ // the listener is registered.
+#ifdef MOZ_DEVTOOLS
+ DevToolsTheme.init();
+#endif
+
messageManager.loadFrameScript("chrome://browser/content/content.js", true);
messageManager.loadFrameScript("chrome://browser/content/content-sessionStore.js", true);
@@ -1281,6 +1289,10 @@ var gBrowserInit = {
ToolbarIconColor.uninit();
+#ifdef MOZ_DEVTOOLS
+ DevToolsTheme.uninit();
+#endif
+
var enumerator = Services.wm.getEnumerator(null);
enumerator.getNext();
if (!enumerator.hasMoreElements()) {