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>
Wed, 05 Sep 2012 11:32:07 -0700
changeset 106393 a0e42f6c2359806d247c4411569053c013a0439e
parent 106392 3ae9e26467f69bd88195d3b28ae7a3632c33e5ae
child 106394 569dc0ef24b20a898102d1212346fc8d6d32709c
push id58
push usershu@rfrn.org
push dateFri, 07 Sep 2012 18:20:16 +0000
reviewersbent
bugs774633
milestone18.0a1
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,