зеркало из 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>
|
</getter>
|
||||||
<setter>
|
<setter>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
// Update the tab
|
// Set newly selected tab after quick timeout, otherwise hideous focus problems
|
||||||
this.mTabBox.selectedTab = val;
|
// 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;
|
return val;
|
||||||
]]>
|
]]>
|
||||||
</setter>
|
</setter>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче