[Pkg-mozext-commits] [tabmixplus] 19/27: Make sure tab exist in tablib._loadURIWithFlags when called from gBrowser.addTab Foolow up bug 1077652 - Link a preloaded <xul:browser> to a newly created tab instead of swapping docShells

David Prévot taffit at moszumanska.debian.org
Fri Dec 26 01:04:31 UTC 2014


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 40aadf7407b66f49836d12a86cae0052d98b2ba6
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Dec 18 18:57:55 2014 +0200

    Make sure tab exist in tablib._loadURIWithFlags when called from gBrowser.addTab
    Foolow up bug 1077652 - Link a preloaded <xul:browser> to a newly created tab instead of swapping docShells
---
 chrome/content/minit/tablib.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index caa9be8..52af308 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -60,6 +60,10 @@ var tablib = {
       } 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