mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 249136. Focus lost when key pressed in newly loading foreground tab. r=mconnor, a=mconnor
This commit is contained in:
parent
6d5f20ef17
commit
521bc862a8
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user