Bug 249136. Focus lost when key pressed in newly loading foreground tab. r=mconnor, a=mconnor

This commit is contained in:
aaronleventhal@moonset.net 2007-08-21 22:00:25 -07:00
parent 6d5f20ef17
commit 521bc862a8

View File

@ -1352,8 +1352,12 @@
</getter>
<setter>
<![CDATA[
// Update the tab
this.mTabBox.selectedTab = val;
// Set newly selected tab after quick timeout, otherwise hideous focus problems
// can occur when "browser.tabs.loadInBackground" is false and presshell is not ready
function setTab(tabBox, tab) {
tabBox.selectedTab = tab;
}
setTimeout(setTab, 0, this.mTabBox, val);
return val;
]]>
</setter>