Bug 451958. Add more CheckLoadURIs (part 4). r+sr=roc

--HG--
extra : rebase_source : de1defd553b7f14cd5a5c1f04ccd0821b4422e4d
This commit is contained in:
Chris Pearce 2009-01-25 21:08:06 +13:00
parent 389d3c06a1
commit 241aa1c5b2

View File

@ -518,8 +518,14 @@ nsresult nsHttpStreamStrategy::OpenInternal(nsIStreamListener **aStreamListener,
&rv);
NS_ENSURE_TRUE(listener, NS_ERROR_OUT_OF_MEMORY);
NS_ENSURE_SUCCESS(rv, rv);
}
} else {
rv = nsContentUtils::GetSecurityManager()->
CheckLoadURIWithPrincipal(element->NodePrincipal(),
mURI,
nsIScriptSecurityManager::STANDARD);
NS_ENSURE_SUCCESS(rv, rv);
}
// Use a byte range request from the start of the resource.
// This enables us to detect if the stream supports byte range
// requests, and therefore seeking, early.