[Pkg-mozext-commits] [tabmixplus] 09/22: Don’t count removing tabs when checking tabs count before 'Warn you when closing window with multiple tabs' when Firefox giving up waiting for the tab closing animation to finish (bug 608589) tab count can contain removing tabs

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:28:34 UTC 2017


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

taffit pushed a commit to tag 0.5.0.4pre.170625a1
in repository tabmixplus.

commit 01373bb226964e4d5a252ea00ede691b94ef7c37
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sat Jun 17 16:49:54 2017 +0300

    Don’t count removing tabs when checking tabs count before 'Warn you when closing window with multiple tabs' when Firefox giving up waiting for the tab closing animation to finish (bug 608589) tab count can contain removing tabs
---
 chrome/content/minit/tablib.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 6561dbd..80969d5 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -1590,7 +1590,8 @@ Tabmix.tablib = {
         "extensions.tabmix.protectedtabs.warnOnClose",
         "browser.tabs.warnOnClose"];
       if (onExit) {
-        if (numTabs > 1 && Services.prefs.getBoolPref(prefs[2]))
+        let openTabs = numTabs - this._removingTabs.length;
+        if (openTabs > 1 && Services.prefs.getBoolPref(prefs[2]))
           shouldPrompt = 3;
         else if (numProtected > 0 && Services.prefs.getBoolPref(prefs[1]))
           shouldPrompt = 2;

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