[Pkg-mozext-commits] [tabmixplus] 116/147: Follw up bug 1342849 - Don't do any notifications for newly added background tabs when restoring session

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:43 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 d930c2480a724a8ffaa2f3bfc2dae7fedbad2867
Author: onemen <tabmix.onemen at gmail.com>
Date:   Fri Mar 24 16:00:29 2017 +0300

    Follw up bug 1342849 - Don't do any notifications for newly added background tabs when restoring session
---
 chrome/content/session/session.js   | 8 +++++++-
 chrome/content/tab/tabbrowser_4.xml | 9 ++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index 7d8d60a..b97fdbb 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -3234,7 +3234,12 @@ TabmixSessionManager = {
 
     let pending = Services.prefs.getBoolPref("browser.sessionstore.restore_on_demand");
     function TMP_addTab() {
-      let newTab = gBrowser.addTab("about:blank", {skipAnimation: true, dontMove: true, isPending: pending});
+      let newTab = gBrowser.addTab("about:blank", {
+        skipAnimation: true,
+        skipBackgroundNotify: true,
+        dontMove: true,
+        isPending: pending
+      });
       // flag. dont save tab that are in restore phase
       newTab.setAttribute("inrestore", "true");
 
@@ -3396,6 +3401,7 @@ TabmixSessionManager = {
           skipAnimation: true,
           forceNotRemote,
           userContextId,
+          skipBackgroundNotify: true,
         });
         gBrowser.removeTab(tabToRemove);
         gBrowser.moveTabTo(tab, newIndex + t);
diff --git a/chrome/content/tab/tabbrowser_4.xml b/chrome/content/tab/tabbrowser_4.xml
index 57449b6..ca0911d 100644
--- a/chrome/content/tab/tabbrowser_4.xml
+++ b/chrome/content/tab/tabbrowser_4.xml
@@ -419,7 +419,14 @@
                                                  selected.left - scrollRect.left);
           }
 
-          if (!this._animateElement.hasAttribute("notifybgtab")) {
+          if (Tabmix.isVersion(540)) {
+            if (!this._animateElement.hasAttribute("highlight")) {
+              this._animateElement.setAttribute("highlight", "true");
+              setTimeout(ele => {
+                ele.removeAttribute("highlight");
+              }, 150, this._animateElement);
+            }
+          } else if (!this._animateElement.hasAttribute("notifybgtab")) {
             this._animateElement.setAttribute("notifybgtab", "true");
             setTimeout(ele => {
               ele.removeAttribute("notifybgtab");

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