Bug 774633 - Fix TestAppShellSteadyState to load a system principal URI so that we don't discard the inner window. r=bent
authorBobby Holley <bobbyholley@gmail.com>
Thu, 06 Sep 2012 08:46:14 -0700
changeset 106767 7025768c2fb4fb4b5e284e8fa90ee1b2728fa1ae
parent 106766 b538e297cf728b58490144ee825ac26e41e9147a
child 106768 a813b5f7908618de2a3879dbbfca78970e0a9fd7
push id2041
push userbobbyholley@gmail.com
push dateThu, 06 Sep 2012 17:17:44 +0000
treeherdermozilla-aurora@b8ed43695721 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbent
bugs774633
milestone17.0a2
Bug 774633 - Fix TestAppShellSteadyState to load a system principal URI so that we don't discard the inner window. r=bent
widget/tests/TestAppShellSteadyState.cpp
--- a/widget/tests/TestAppShellSteadyState.cpp
+++ b/widget/tests/TestAppShellSteadyState.cpp
@@ -394,17 +394,17 @@ Test4Internal(nsIAppShell* aAppShell)
   nsCOMPtr<nsIAppShellService> appService =
     do_GetService(NS_APPSHELLSERVICE_CONTRACTID);
   if (!appService) {
     fail("Failed to get appshell service!");
     return false;
   }
 
   nsCOMPtr<nsIURI> uri;
-  if (NS_FAILED(NS_NewURI(getter_AddRefs(uri), "about:blank", NULL))) {
+  if (NS_FAILED(NS_NewURI(getter_AddRefs(uri), "about:", NULL))) {
     fail("Failed to create new uri");
     return false;
   }
 
   uint32_t flags = nsIWebBrowserChrome::CHROME_DEFAULT;
 
   nsCOMPtr<nsIXULWindow> xulWindow;
   if (NS_FAILED(appService->CreateTopLevelWindow(NULL, uri, flags, 100, 100,