diff --git a/dom/tests/mochitest/localstorage/Makefile.in b/dom/tests/mochitest/localstorage/Makefile.in index be30559acbe0..f7748529bcef 100644 --- a/dom/tests/mochitest/localstorage/Makefile.in +++ b/dom/tests/mochitest/localstorage/Makefile.in @@ -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 diff --git a/dom/tests/mochitest/localstorage/page_blank.html b/dom/tests/mochitest/localstorage/page_blank.html index e4ccdb8743d0..157317d64bf6 100644 --- a/dom/tests/mochitest/localstorage/page_blank.html +++ b/dom/tests/mochitest/localstorage/page_blank.html @@ -1,3 +1,4 @@ + diff --git a/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html index 524a62632253..02a57e7f6a22 100644 --- a/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html +++ b/dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html @@ -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);