Backout 17b390f86130 (bug 823325) for failures in test_bug590573.html

This commit is contained in:
Ed Morley 2013-01-03 10:03:29 +00:00
Родитель aa62aecf12
Коммит 063cb6cecf
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -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;