mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Actually address the review comment too. Bug 324601.
This commit is contained in:
parent
c45f92a162
commit
383de920a1
@ -1241,7 +1241,11 @@ nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
|
||||
// is sane, I guess.
|
||||
nsCOMPtr<nsIDocument> doc = GetDocumentFromScriptContext(mScriptContext);
|
||||
nsIURI* uri = GetBaseURI();
|
||||
privImpl->Init(uri, uri, doc->GetNodePrincipal());
|
||||
nsIPrincipal* principal = nsnull;
|
||||
if (doc) {
|
||||
principal = doc->GetNodePrincipal();
|
||||
}
|
||||
privImpl->Init(uri, uri, principal);
|
||||
}
|
||||
|
||||
// Create an empty document from it (resets current document as well)
|
||||
|
Loading…
Reference in New Issue
Block a user