[Pkg-mozext-commits] [tabmixplus] 06/30: Fix referenceError: reference to undefined property browser.tabmix_allowLoad

David Prévot taffit at moszumanska.debian.org
Sun Jun 14 22:15:35 UTC 2015


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 2207b5f57f5bb617437ae32b92cc4ab152510bf0
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Mar 25 22:37:23 2015 +0200

    Fix referenceError: reference to undefined property browser.tabmix_allowLoad
---
 chrome/content/minit/tablib.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 921536e..7659996 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -64,6 +64,11 @@ var tablib = {
     else
       flags = params.flags;
 
+    var tab = gBrowser.getTabForBrowser(browser);
+    if (!tab) {
+      browser.tabmix_allowLoad = true;
+      return null;
+    }
     var allowLoad = tablib.isException(browser.tabmix_allowLoad !== false ||
                                        uri.match(/^javascript:/));
     if (!allowLoad) {
@@ -72,11 +77,6 @@ var tablib = {
         allowLoad = browser.currentURI.equalsExceptRef(newURI);
       } catch (ex) {}
     }
-    var tab = gBrowser.getTabForBrowser(browser);
-    if (!tab) {
-      browser.tabmix_allowLoad = true;
-      return null;
-    }
     var isBlankTab = gBrowser.isBlankNotBusyTab(tab);
     var isLockedTab = tab.hasAttribute("locked");
     if (!allowLoad && !isBlankTab && isLockedTab) {

-- 
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