diff --git a/xpfe/components/prefwindow/src/nsPrefWindow.cpp b/xpfe/components/prefwindow/src/nsPrefWindow.cpp index f54532f81d1..8238f1acca1 100644 --- a/xpfe/components/prefwindow/src/nsPrefWindow.cpp +++ b/xpfe/components/prefwindow/src/nsPrefWindow.cpp @@ -209,9 +209,19 @@ NS_IMETHODIMP nsPrefWindow::ShowWindow( nsIXULWindowCallbacks *cb = nsnull; nsCOMPtr parent; DOMWindowToWebShellWindow(currentFrontWin, &parent); + + +#if defined(MODELESS_PREF_DIALOG)||defined(DEBUG_mcafee)||defined(DEBUG_akkana) + // testing modeless pref window. -mcafee + nsIWebShellWindow *foo = nsnull; + rv = appShell->CreateTopLevelWindow(parent, urlObj, PR_TRUE, PR_TRUE, + NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG, + cb, 504, 436, &foo); +#else rv = appShell->RunModalDialog(nsnull, parent, urlObj, NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG, cb, 504, 436); +#endif return rv; } // nsPrefWindow::ShowWindow()