[Pkg-mozext-commits] [tabmixplus] 07/73: Follow up bug 1171245 - Include changes attributes in TabAttrModified event

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:49 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit ec1a7b854a1b0902d31f4724a3399dd7f3bfd519
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Mar 22 23:49:25 2016 +0200

    Follow up bug 1171245 - Include changes attributes in TabAttrModified event
---
 chrome/content/extensions/extensions.js | 2 +-
 chrome/content/minit/tablib.js          | 2 +-
 chrome/content/places/places.js         | 2 +-
 modules/MergeWindows.jsm                | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/extensions/extensions.js b/chrome/content/extensions/extensions.js
index 5e94150..8f4aed7 100644
--- a/chrome/content/extensions/extensions.js
+++ b/chrome/content/extensions/extensions.js
@@ -127,7 +127,7 @@ var TMP_extensionsCompatibility = {
             aTab.setAttribute("image", browser.mIconURL);
           else
             aTab.removeAttribute("image");
-          gBrowser._tabAttrModified(aTab);
+          gBrowser._tabAttrModified(aTab, ["image"]);
         }
       }
     }
diff --git a/chrome/content/minit/tablib.js b/chrome/content/minit/tablib.js
index 1d27cb4..2270a32 100644
--- a/chrome/content/minit/tablib.js
+++ b/chrome/content/minit/tablib.js
@@ -1329,7 +1329,7 @@ var tablib = { // eslint-disable-line
         aTab.setAttribute("mergeselected", "true");
         aTab.label = "(*) " + aTab.label;
       }
-      this._tabAttrModified(aTab);
+      this._tabAttrModified(aTab, ["label"]);
       if (TabmixTabbar.widthFitTitle) {
         TabmixTabbar.updateScrollStatus();
         TabmixTabbar.updateBeforeAndAfter();
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index fd19b6a..f137f3b 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -312,7 +312,7 @@ var TMP_Places = {
       aTab.label = title;
       aTab.crop = title != aUrl || aUrl == TabmixSvc.aboutBlank ? "end" : "center";
       aTab.setAttribute("tabmix_changed_label", title);
-      gBrowser._tabAttrModified(aTab);
+      gBrowser._tabAttrModified(aTab, ["label", "crop"]);
       if (aTab.selected)
         gBrowser.updateTitlebar();
       if (!aTab.hasAttribute("faviconized"))
diff --git a/modules/MergeWindows.jsm b/modules/MergeWindows.jsm
index 1b86a58..7a7382a 100644
--- a/modules/MergeWindows.jsm
+++ b/modules/MergeWindows.jsm
@@ -70,7 +70,7 @@ this.MergeWindows = {
           if (tab.hasAttribute("mergeselected")) {
             tab.removeAttribute("mergeselected");
             tab.label = tab.label.substr(4);
-            tabbrowser._tabAttrModified(tab);
+            tabbrowser._tabAttrModified(tab, ["label"]);
           } else if (canClose) {
             tabbrowser.removeTab(tab);
           }

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