summaryrefslogtreecommitdiff
path: root/dom/workers
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-02-09 18:52:31 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-30 08:25:20 +0000
commit07a26bff1794bd2a5d220e23200894cdb41d08b8 (patch)
tree3dc9721f28d9596e1ddae25af8f5719193220b9a /dom/workers
parent0d8cddaa733b1cb1616ecd6014e1f44de07ae8f4 (diff)
downloaduxp-07a26bff1794bd2a5d220e23200894cdb41d08b8.tar.gz
[DOM] Consistent error messages for scripts which failed to load.
Diffstat (limited to 'dom/workers')
-rw-r--r--dom/workers/ScriptLoader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp
index 56381a0c8d..5aaac7cfae 100644
--- a/dom/workers/ScriptLoader.cpp
+++ b/dom/workers/ScriptLoader.cpp
@@ -2232,6 +2232,10 @@ void ReportLoadError(ErrorResult& aRv, nsresult aLoadResult,
aLoadResult = NS_ERROR_DOM_SECURITY_ERR;
break;
+ case NS_ERROR_CORRUPTED_CONTENT:
+ aLoadResult = NS_ERROR_DOM_NETWORK_ERR;
+ break;
+
default:
// For lack of anything better, go ahead and throw a NetworkError here.
// We don't want to throw a JS exception, because for toplevel script