зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504953 - SecurityError for unsupported scheme in Workers and SharedWorkers, r=smaug
This commit is contained in:
Родитель
1861753b93
Коммит
cdc6f5845f
|
@ -222,7 +222,7 @@ ChannelFromScriptURL(nsIPrincipal* principal,
|
|||
nullptr, // aCallbacks
|
||||
aLoadFlags,
|
||||
ios);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SECURITY_ERR);
|
||||
} else {
|
||||
// We must have a loadGroup with a load context for the principal to
|
||||
// traverse the channel correctly.
|
||||
|
@ -262,7 +262,7 @@ ChannelFromScriptURL(nsIPrincipal* principal,
|
|||
ios);
|
||||
}
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_DOM_SECURITY_ERR);
|
||||
|
||||
if (cspEventListener) {
|
||||
nsCOMPtr<nsILoadInfo> loadInfo = channel->GetLoadInfo();
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[same-origin.html]
|
||||
[unsupported_scheme]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[same-origin.html]
|
||||
[unsupported_scheme]
|
||||
expected: FAIL
|
||||
|
Загрузка…
Ссылка в новой задаче