зеркало из https://github.com/mozilla/pjs.git
Bug 451958. Add more CheckLoadURIs (part 4). r+sr=roc
--HG-- extra : rebase_source : de1defd553b7f14cd5a5c1f04ccd0821b4422e4d
This commit is contained in:
Родитель
94c30b7a97
Коммит
17966fae9d
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче