[Pkg-mozext-commits] [tabmixplus] 41/73: TypeError: box is null at preferences/overlay/preferencesOverlay.js line 12, we can't call incontentInit for browser versions that don't implement in-content-option (changeset b7e8947f39a5)

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 51e664508415d3d89968f674a184d450a071cede
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Apr 9 13:41:45 2016 +0300

    TypeError: box is null at preferences/overlay/preferencesOverlay.js line 12, we can't call incontentInit for browser versions that don't implement in-content-option (changeset b7e8947f39a5)
---
 chrome/content/preferences/overlay/incontentPreferences.xul | 6 ++++++
 chrome/content/preferences/overlay/preferencesOverlay.js    | 6 +-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/chrome/content/preferences/overlay/incontentPreferences.xul b/chrome/content/preferences/overlay/incontentPreferences.xul
index f397600..76d797c 100644
--- a/chrome/content/preferences/overlay/incontentPreferences.xul
+++ b/chrome/content/preferences/overlay/incontentPreferences.xul
@@ -13,6 +13,12 @@
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
   <script type="application/javascript" src="preferencesOverlay.js"/>
+  <script type="application/javascript">
+    window.addEventListener("load", function TMP_onLoad_preverenceOverlay(aEvent) {
+      aEvent.currentTarget.removeEventListener("load", TMP_onLoad_preverenceOverlay, true);
+      gTabMix_preferencesOverlay.incontentInit();
+    }, true);
+  </script>
 
   <prefpane id="mainPrefPane">
     <preferences id="tabsPreferences" hidden="true">
diff --git a/chrome/content/preferences/overlay/preferencesOverlay.js b/chrome/content/preferences/overlay/preferencesOverlay.js
index 31e1332..28d06c5 100644
--- a/chrome/content/preferences/overlay/preferencesOverlay.js
+++ b/chrome/content/preferences/overlay/preferencesOverlay.js
@@ -1,3 +1,4 @@
+/* exported gTabMix_preferencesOverlay */
 "use strict";
 
 Components.utils.import("resource://tabmixplus/Services.jsm");
@@ -94,8 +95,3 @@ var gTabMix_preferencesOverlay = {
   }
 
 };
-
-window.addEventListener("load", function TMP_onLoad_preverenceOverlay(aEvent) {
-  aEvent.currentTarget.removeEventListener("load", TMP_onLoad_preverenceOverlay, true);
-  gTabMix_preferencesOverlay.incontentInit();
-}, true);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list