зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1740985 - Consistent error messages for scripts which failed to load. r=dom-storage-reviewers,edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D133515
This commit is contained in:
Родитель
59cac0e2a0
Коммит
9b755d54c9
|
@ -2437,6 +2437,10 @@ void ReportLoadError(ErrorResult& aRv, nsresult aLoadResult,
|
|||
aRv.ThrowSecurityError(err);
|
||||
break;
|
||||
|
||||
case NS_ERROR_CORRUPTED_CONTENT:
|
||||
aRv.Throw(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
|
||||
|
|
Загрузка…
Ссылка в новой задаче