Bug 826964 - Attempt to fix the intermittent orange by focusing the current browser; r=ehsan

This commit is contained in:
Raymond Lee 2013-01-14 13:49:58 +08:00
Родитель 3b272eba76
Коммит ecad037cae
3 изменённых файлов: 8 добавлений и 8 удалений

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

@ -60,6 +60,12 @@ MOCHITEST_FILES += \
test_localStorageBasePrivateBrowsing.html \
test_localStorageQuotaPrivateBrowsing.html \
$(NULL)
else
MOCHITEST_CHROME_FILES += \
test_localStorageBasePrivateBrowsing_perwindowpb.html \
page_blank.html \
test_localStorageQuotaPrivateBrowsing_perwindowpb.html \
$(NULL)
endif
MOCHITEST_CHROME_FILES = \
@ -69,12 +75,4 @@ MOCHITEST_CHROME_FILES = \
frame_clear_browser_data.html \
$(NULL)
ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
MOCHITEST_CHROME_FILES += \
test_localStorageBasePrivateBrowsing_perwindowpb.html \
page_blank.html \
test_localStorageQuotaPrivateBrowsing_perwindowpb.html \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk

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

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<body>

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

@ -171,6 +171,7 @@ function testOnWindow(aIsPrivate, aCallback) {
return;
}
win.removeEventListener("DOMContentLoaded", onInnerLoad, true);
win.gBrowser.selectedBrowser.focus();
SimpleTest.executeSoon(function() { aCallback(win); });
}, true);
win.gBrowser.loadURI(CONTENT_PAGE);