mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-27 17:58:38 +09:00
[DOM] Consistent error messages for scripts which failed to load.
This commit is contained in:
parent
bc2aa1f05c
commit
a63ec9a479
1 changed files with 4 additions and 0 deletions
|
|
@ -2233,6 +2233,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue