[Pkg-mozext-commits] [tabmixplus] 35/48: No need to collect scroll position from pending tabs content, prevents lazy browser prematurely inserted via 'messageManager' property access

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:37 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit e8de57a5a7d022dba9365b1020a2e1e844e3d040
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Aug 15 09:45:38 2017 +0300

    No need to collect scroll position from pending tabs content, prevents lazy browser prematurely inserted via 'messageManager' property access
---
 chrome/content/session/session.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index ea23926..ec75435 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -2851,7 +2851,9 @@ TabmixSessionManager = {
         aTab.hasAttribute("inrestore") || this.isTabPrivate(aTab))
       return;
     var aBrowser = gBrowser.getBrowserForTab(aTab);
-    if (gBrowser.isBlankBrowser(aBrowser)) return;
+    if (aTab.hasAttribute("pending") || gBrowser.isBlankBrowser(aBrowser)) {
+      return;
+    }
     if (Tabmix.isVersion(320))
       aBrowser.messageManager.sendAsyncMessage("Tabmix:collectScrollPosition");
     else

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