diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp index 70fe4aabbfcc..49a928275f2f 100644 --- a/dom/workers/ScriptLoader.cpp +++ b/dom/workers/ScriptLoader.cpp @@ -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 loadInfo = channel->GetLoadInfo(); diff --git a/testing/web-platform/meta/workers/constructors/SharedWorker/same-origin.html.ini b/testing/web-platform/meta/workers/constructors/SharedWorker/same-origin.html.ini deleted file mode 100644 index b1f323dfe77f..000000000000 --- a/testing/web-platform/meta/workers/constructors/SharedWorker/same-origin.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[same-origin.html] - [unsupported_scheme] - expected: FAIL - diff --git a/testing/web-platform/meta/workers/constructors/Worker/same-origin.html.ini b/testing/web-platform/meta/workers/constructors/Worker/same-origin.html.ini deleted file mode 100644 index b1f323dfe77f..000000000000 --- a/testing/web-platform/meta/workers/constructors/Worker/same-origin.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[same-origin.html] - [unsupported_scheme] - expected: FAIL -