[Pkg-mozext-commits] [tabmixplus] 06/23: First tab is busy when browser window starts on Firefox 51

David Prévot taffit at moszumanska.debian.org
Fri Sep 23 03:31:03 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 8d4a5cd32c00c7283dea0b994c8e4e68134c9117
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Aug 2 14:41:19 2016 +0300

    First tab is busy when browser window starts on Firefox 51
---
 chrome/content/minit/tablib.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 4e17e7e..4188969 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -91,7 +91,15 @@ var tablib = { // eslint-disable-line
         allowLoad = browser.currentURI.equalsExceptRef(newURI);
       } catch (ex) {}
     }
-    var isBlankTab = gBrowser.isBlankNotBusyTab(tab);
+    let isBlankTab = (function() {
+      // first tab is busy when browser window starts on Firefox 51
+      let checkIfBusy = gBrowserInit.delayedStartupFinished || tab._tPos > 0;
+      if (checkIfBusy && tab.hasAttribute("busy") || tab.hasAttribute("pending")) {
+        return false;
+      }
+
+      return gBrowser.isBlankBrowser(browser);
+    }());
     var isLockedTab = tab.hasAttribute("locked");
     if (!allowLoad && !isBlankTab && isLockedTab) {
       let isFlagged = flag => Boolean(flags & Ci.nsIWebNavigation[flag]);

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