Bug 1504953 - SecurityError for unsupported scheme in Workers and SharedWorkers, r=smaug

This commit is contained in:
Andrea Marchesini 2018-11-06 13:36:13 +01:00
Родитель 1861753b93
Коммит cdc6f5845f
3 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -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