[Pkg-mozext-commits] [tabmixplus] 07/51: Don't call updateScrollStatus from onTabAttrModified when browser.tabs.animate is true and a new tab is still opening
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:45 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 761496b8ba803a2ed399d79429d65fbae9a3e007
Author: onemen <tabmix.onemen at gmail.com>
Date: Fri Jan 2 16:00:20 2015 +0200
Don't call updateScrollStatus from onTabAttrModified when browser.tabs.animate is true and a new tab is still opening
---
chrome/content/tabmix.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 8058982..67bbec1 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -637,6 +637,13 @@ var TMP_eventListener = {
if (!TabmixTabbar.widthFitTitle)
return;
+ // when browser.tabs.animate is true and a new tab is still opening we wait
+ // until onTabOpen_delayUpdateTabBar call updateScrollStatus
+ let lastTab = Services.prefs.getBoolPref("browser.tabs.animate") &&
+ gBrowser.getTabForLastPanel();
+ if (lastTab && !lastTab._fullyOpen)
+ return;
+
// catch tab width changed when label attribute changed
// or when busy attribute changed hide/show image
var tab = aEvent.target;
--
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