I added logic to the viewers browser window to disable javascript initiated popups during web crawling

git-svn-id: svn://10.0.0.236/trunk@52166 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1999-10-29 02:05:16 +00:00
parent 213f166414
commit 20e3748d92

View File

@ -1911,6 +1911,14 @@ nsBrowserWindow::NewWebShell(PRUint32 aChromeMask,
{
nsresult rv = NS_OK;
if (mWebCrawler) {
if (mWebCrawler->Crawling() || mWebCrawler->LoadingURLList()) {
// Do not fly javascript popups when we are crawling
aNewWebShell = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
}
// Create new window. By default, the refcnt will be 1 because of
// the registration of the browser window in gBrowsers.
nsNativeBrowserWindow* browser;