mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 19:10:36 +00:00
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:
parent
7215069dbb
commit
adeb8b8d11
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user