Bug 'All Tabs' menu does not flash during 'Open in Tabs'. patch from Simon Bnzli <zeniko@gmail.com>, r=me.

This commit is contained in:
mozilla.mano%sent.com 2007-08-22 05:05:06 +00:00
Родитель a8b348e772
Коммит f1e5616adb
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -27,6 +27,7 @@
- Giorgio Maone <g.maone@informaction.com> - Giorgio Maone <g.maone@informaction.com>
- Asaf Romano <mozilla.mano@sent.com> - Asaf Romano <mozilla.mano@sent.com>
- Seth Spitzer <sspitzer@mozilla.org> - Seth Spitzer <sspitzer@mozilla.org>
- Simon Bünzli <zeniko@gmail.com>
- -
- Alternatively, the contents of this file may be used under the terms of - Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or - either the GNU General Public License Version 2 or later (the "GPL"), or
@ -1034,8 +1035,6 @@
} }
if (!bgLoad) if (!bgLoad)
this.selectedTab = tab; this.selectedTab = tab;
else
this.mTabContainer._notifyBackgroundTab(tab);
return tab; return tab;
]]> ]]>
@ -1219,6 +1218,9 @@
var _delayedUpdate = function(aTabContainer) { var _delayedUpdate = function(aTabContainer) {
aTabContainer.adjustTabstrip(false); aTabContainer.adjustTabstrip(false);
if (aTabContainer.selectedItem != t)
aTabContainer._notifyBackgroundTab(t);
// XXXmano: this is a temporary workaround to bug 343585 // XXXmano: this is a temporary workaround to bug 343585
// We need to manually update the scroll buttons disabled state // We need to manually update the scroll buttons disabled state
// if a tab was inserted to the overflow area or removed from it // if a tab was inserted to the overflow area or removed from it
@ -1234,6 +1236,7 @@
var evt = document.createEvent("Events"); var evt = document.createEvent("Events");
evt.initEvent("TabOpen", true, false); evt.initEvent("TabOpen", true, false);
t.dispatchEvent(evt); t.dispatchEvent(evt);
return t; return t;
]]> ]]>
</body> </body>