Revert "[DOM] Consistent error messages for scripts which failed to load." which comes from upstream, which has similar changes in custom tree.

This commit is contained in:
roytam1 2022-03-23 00:39:11 +08:00
commit 2684671e2c

View file

@ -2234,10 +2234,6 @@ 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