[Pkg-mozext-commits] [tabmixplus] 16/32: When tab restoring by SessionStore remove its visited attribute. visited attribute exist on pending tab when SessionStroe overwrite tabs change the selected tab

David Prévot taffit at moszumanska.debian.org
Sun Feb 7 19:23:13 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 8188cee85de649d3173e8fed44a10fa08c77f385
Author: onemen <tabmix.onemen at gmail.com>
Date:   Sun Jan 3 14:57:37 2016 +0200

    When tab restoring by SessionStore remove its visited attribute. visited attribute exist on pending tab when SessionStroe overwrite tabs change the selected tab
---
 chrome/content/links/userInterface.js | 7 +++++--
 chrome/content/tabmix.js              | 1 +
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/chrome/content/links/userInterface.js b/chrome/content/links/userInterface.js
index 21aca0d..e326f9b 100644
--- a/chrome/content/links/userInterface.js
+++ b/chrome/content/links/userInterface.js
@@ -370,9 +370,12 @@ Tabmix.restoreTabState = function TMP_restoreTabState(aTab) {
   }
 
   let tabTitleChanged, boldChanged = {value: false};
-  Tabmix.setTabStyle(aTab, boldChanged);
-  if (pending)
+  if (pending) {
     tabTitleChanged = TMP_Places.setTabTitle(aTab);
+    aTab.removeAttribute("visited");
+    aTab.removeAttribute("tabmix_selectedID");
+  }
+  Tabmix.setTabStyle(aTab, boldChanged);
   if (tabTitleChanged || boldChanged.value) {
     TabmixTabbar.updateScrollStatus();
     TabmixTabbar.updateBeforeAndAfter();
diff --git a/chrome/content/tabmix.js b/chrome/content/tabmix.js
index 6c460f6..1ce70a1 100644
--- a/chrome/content/tabmix.js
+++ b/chrome/content/tabmix.js
@@ -90,6 +90,7 @@ Tabmix.sessionInitialized = function() {
   if (!tab.selected) {
     tab.removeAttribute("visited");
     tab.removeAttribute("tabmix_selectedID");
+    Tabmix.setTabStyle(tab);
   }
 
   TMP_SessionStore.persistTabAttribute();

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