mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 16:54:08 +00:00
I added logic to the viewers browser window to disable javascript initiated popups during web crawling
This commit is contained in:
parent
a4cb24fb47
commit
2a1378d3ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user