last fix won't actually work. it's too early.

This commit is contained in:
danm%netscape.com 1999-07-20 15:38:36 +00:00
Родитель dcb9153588
Коммит 9ffa33e599
1 изменённых файлов: 2 добавлений и 5 удалений

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

@ -282,14 +282,12 @@ void nsAppShellService::CreateHiddenWindow()
nsresult rv; nsresult rv;
nsIURI* url = nsnull; nsIURI* url = nsnull;
#if 0 // temporary until the right NECKO thing is figured out
#ifndef NECKO #ifndef NECKO
rv = NS_NewURL(&url, "chrome://navigator/content/hiddenWindow.xul"); rv = NS_NewURL(&url, "chrome://navigator/content/hiddenWindow.xul");
#else #else
rv = NS_NewURI(&url, "chrome://navigator/content/hiddenWindow.xul"); // rv = NS_NewURI(&url, "chrome://navigator/content/hiddenWindow.xul");
return; // temporary stopgap fix
#endif #endif
#else
rv = NS_ERROR_FAILURE;
if (NS_SUCCEEDED(rv)) { if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIWebShellWindow> newWindow; nsCOMPtr<nsIWebShellWindow> newWindow;
rv = JustCreateTopWindow(nsnull, url, PR_FALSE, getter_AddRefs(newWindow), rv = JustCreateTopWindow(nsnull, url, PR_FALSE, getter_AddRefs(newWindow),
@ -301,7 +299,6 @@ void nsAppShellService::CreateHiddenWindow()
NS_RELEASE(url); NS_RELEASE(url);
} }
NS_ASSERTION(NS_SUCCEEDED(rv), "HiddenWindow not created"); NS_ASSERTION(NS_SUCCEEDED(rv), "HiddenWindow not created");
#endif
} }
// Apply function (Initialize/Shutdown) to each app shell component. // Apply function (Initialize/Shutdown) to each app shell component.