bug #37434. Added a call to nsIDocShellLoadInfo::SetStopActiveDocument(...) before calling LoadURI in both SetHRefWithBase() and SetURI(). This causes the active document to be stopped immediately (which prevents further processing of the active document)

This commit is contained in:
rpotts%netscape.com 2000-09-10 06:02:11 +00:00
parent 7215069dbb
commit adeb8b8d11

View File

@ -155,6 +155,8 @@ LocationImpl::SetURL(nsIURI* aURL)
if(NS_FAILED(CheckURL(aURL, getter_AddRefs(loadInfo))))
return NS_ERROR_FAILURE;
loadInfo->SetStopActiveDocument(PR_TRUE);
return mDocShell->LoadURI(aURL, loadInfo);
}
else {
@ -395,6 +397,8 @@ LocationImpl::SetHrefWithBase(const nsAReadableString& aHref,
if (aReplace)
loadInfo->SetLoadType(nsIDocShellLoadInfo::loadNormalReplace);
loadInfo->SetStopActiveDocument(PR_TRUE);
return mDocShell->LoadURI(newUrl, loadInfo);
}