Bug 249136. Focus lost when key pressed in newly loading foreground tab. r=mconnor, a=mconnor
git-svn-id: svn://10.0.0.236/trunk@232677 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2299f10fee
commit
4eec19a2a6
@ -1352,9 +1352,13 @@
|
||||
</getter>
|
||||
<setter>
|
||||
<![CDATA[
|
||||
// Update the tab
|
||||
this.mTabBox.selectedTab = val;
|
||||
return 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>
|
||||
</property>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user