зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1712930 - Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116078
This commit is contained in:
Родитель
79a3f4a3a1
Коммит
2f19ad2de5
|
@ -301,7 +301,6 @@ const ErrorCodes = {
|
|||
NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED: 0x805303fb,
|
||||
NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING: 0x805303fc,
|
||||
NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE: 0x805303fd,
|
||||
NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE: 0x8053040d,
|
||||
NS_ERROR_DOM_JS_DECODING_ERROR: 0x80530402,
|
||||
NS_ERROR_DOM_IMAGE_INACTIVE_DOCUMENT: 0x80530403,
|
||||
NS_ERROR_DOM_IMAGE_INVALID_REQUEST: 0x80530404,
|
||||
|
|
|
@ -141,7 +141,6 @@ DOM4_MSG_DEF(InvalidStateError, "XMLHttpRequest has an invalid context.", NS_ERR
|
|||
DOM4_MSG_DEF(InvalidStateError, "XMLHttpRequest state must be OPENED.", NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED)
|
||||
DOM4_MSG_DEF(InvalidStateError, "XMLHttpRequest must not be sending.", NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING)
|
||||
DOM4_MSG_DEF(InvalidStateError, "Cannot set 'responseType' property on XMLHttpRequest after 'send()' (when its state is LOADING or DONE).", NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE)
|
||||
DOM4_MSG_DEF(InvalidStateError, "Cannot call 'overrideMimeType()' on XMLHttpRequest after 'send()' (when its state is LOADING or DONE).", NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE)
|
||||
|
||||
/* Image decode errors. */
|
||||
DOM4_MSG_DEF(EncodingError, "Node bound to inactive document.", NS_ERROR_DOM_IMAGE_INACTIVE_DOCUMENT)
|
||||
|
|
|
@ -3211,8 +3211,9 @@ void XMLHttpRequestMainThread::OverrideMimeType(const nsAString& aMimeType,
|
|||
|
||||
if (mState == XMLHttpRequest_Binding::LOADING ||
|
||||
mState == XMLHttpRequest_Binding::DONE) {
|
||||
aRv.Throw(
|
||||
NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE);
|
||||
aRv.ThrowInvalidStateError(
|
||||
"Cannot call 'overrideMimeType()' on XMLHttpRequest after 'send()' "
|
||||
"(when its state is LOADING or DONE).");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -721,11 +721,6 @@ with modules["DOM"]:
|
|||
] = FAILURE(
|
||||
1021
|
||||
) # NOQA: E501
|
||||
errors[
|
||||
"NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE"
|
||||
] = FAILURE(
|
||||
1037
|
||||
) # NOQA: E501
|
||||
|
||||
# When manipulating the bytecode cache with the JS API, some transcoding
|
||||
# errors, such as a different bytecode format can cause failures of the
|
||||
|
|
Загрузка…
Ссылка в новой задаче