зеркало из https://github.com/mozilla/gecko-dev.git
Backout 17b390f86130 (bug 823325) for failures in test_bug590573.html
This commit is contained in:
Родитель
aa62aecf12
Коммит
063cb6cecf
|
@ -2808,13 +2808,8 @@ Tab.prototype = {
|
|||
|
||||
if (aActive) {
|
||||
this.browser.setAttribute("type", "content-primary");
|
||||
this.browser.focus();
|
||||
this.browser.docShellIsActive = true;
|
||||
|
||||
// setTimeout() is needed to make sure the browser is visible before it
|
||||
// is focused (see bug 823325).
|
||||
setTimeout(function () {
|
||||
this.browser.focus();
|
||||
}.bind(this), 0);
|
||||
} else {
|
||||
this.browser.setAttribute("type", "content-targetable");
|
||||
this.browser.docShellIsActive = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче