[Pkg-mozext-commits] [tabmixplus] 34/61: workaround the regression from bug 1187219, missing visuallyselected, bug 1187219 - Remove _visuallySelected, _logicallySelected from tabbox.xml
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:20 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 dc86360bc10a0371cc85c5c5021e62e2c5cf7e16
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Aug 2 17:30:25 2015 +0300
workaround the regression from bug 1187219, missing visuallyselected, bug 1187219 - Remove _visuallySelected, _logicallySelected from tabbox.xml
---
chrome/content/preferences/preferences.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index ea8e0ef..7dd485c 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -230,6 +230,17 @@ var gPrefWindow = { // jshint ignore:line
}
else if (preference.value != tabs.selectedIndex)
preference.valueFromPreferences = tabs.selectedIndex;
+
+ // workaround the regression from bug 1187219, missing visuallyselected
+ if (Tabmix.isVersion(420)) {
+ for (let tab of tabs.childNodes) {
+ if (!tab.selected && tab.hasAttribute("visuallyselected")) {
+ tab.removeAttribute("visuallyselected");
+ break;
+ }
+ }
+ tabs.selectedItem.setAttribute("visuallyselected", true);
+ }
},
afterShortcutsChanged: function() {
--
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