зеркало из https://github.com/mozilla/pjs.git
Bug 249136. Focus lost when key pressed in newly loading foreground tab. r=mconnor, a=mconnor
This commit is contained in:
Родитель
422cc56da5
Коммит
00f6b0b461
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче