[Pkg-mozext-commits] [tabmixplus] 47/107: Fix gBrowser.getTabForLastPanel for the case mPanelContainer.lastChild is preloadedBrowser
David Prévot
taffit at moszumanska.debian.org
Tue Dec 29 19:02:49 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 15c79162394877610656763292573718a1ab351b
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Nov 3 15:32:34 2015 +0200
Fix gBrowser.getTabForLastPanel for the case mPanelContainer.lastChild is preloadedBrowser
---
chrome/content/links/setup.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/chrome/content/links/setup.js b/chrome/content/links/setup.js
index e15e57b..801112e 100644
--- a/chrome/content/links/setup.js
+++ b/chrome/content/links/setup.js
@@ -296,10 +296,17 @@ Tabmix.beforeStartup = function TMP_beforeStartup(tabBrowser, aTabContainer) {
};
}
+ tabBrowser.getBrowserForTabPanel = function(notificationbox) {
+ let attrName = Tabmix.isVersion(180) ? "class" : "anonid"; // changed by Bug 768442
+ return document.getAnonymousElementByAttribute(notificationbox, attrName, "browserStack").firstChild;
+ };
+
tabBrowser.getTabForLastPanel = function() {
let notificationbox = this.mPanelContainer.lastChild;
- let attrName = Tabmix.isVersion(180) ? "class" : "anonid"; // changed by Bug 768442
- let browser = document.getAnonymousElementByAttribute(notificationbox, attrName, "browserStack").firstChild;
+ let browser = this.getBrowserForTabPanel(notificationbox);
+ if (browser == gBrowser._preloadedBrowser) {
+ browser = this.getBrowserForTabPanel(notificationbox.previousSibling);
+ }
return this.getTabForBrowser(browser);
};
--
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