Closed Bug 1712930 Opened 3 years ago Closed 3 years ago

Get rid of most of NS_ERROR_DOM_INVALID_STATE_XHR_*

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(7 files)

Except NS_ERROR_DOM_INVALID_STATE_XHR_HAS_INVALID_CONTEXT which is returned by OnStartRequest in https://searchfox.org/mozilla-central/rev/202250ee5931648185c8abb3061d738b15b64067/dom/xhr/XMLHttpRequestMainThread.cpp#2015, not sure if we could replace it by other generic error.

Pushed by echen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6f842a2bf026
Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
https://hg.mozilla.org/integration/autoland/rev/78e1d6847f0a
Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
https://hg.mozilla.org/integration/autoland/rev/d2eb6df1ec5f
Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
https://hg.mozilla.org/integration/autoland/rev/b2da173c9337
Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/36e48f6e43ae
Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/f1cb609c78a0
Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
https://hg.mozilla.org/integration/autoland/rev/4b93e808e72f
Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug
Pushed by echen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ec01575cb276
Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
https://hg.mozilla.org/integration/autoland/rev/ab9bb2ee0c98
Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
https://hg.mozilla.org/integration/autoland/rev/dd0ab5fc70a0
Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
https://hg.mozilla.org/integration/autoland/rev/b117c37b1e7e
Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/c42f2270b5f8
Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/311ccf17a01d
Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
https://hg.mozilla.org/integration/autoland/rev/4a03c8b2aa1a
Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug
Pushed by echen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0c02937c3f06
Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
https://hg.mozilla.org/integration/autoland/rev/c752980af6a5
Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
https://hg.mozilla.org/integration/autoland/rev/ea09ede6ea97
Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
https://hg.mozilla.org/integration/autoland/rev/738fa39cb56c
Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/56a24b0ce175
Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
https://hg.mozilla.org/integration/autoland/rev/9ccb11577a00
Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
https://hg.mozilla.org/integration/autoland/rev/133d2832d07c
Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug,perftest-reviewers,sparky

Fwiw this caused a build failure (probably only on platforms without profiler), for missing definition of MakeScopeExit, cf https://bugzilla.mozilla.org/show_bug.cgi?id=1713564#c7

adding the missing ScopeExit.h header inclusion as done in https://hg.mozilla.org/integration/autoland/rev/1c110c9d06c3 seem to help.

Regressions: 1714022
Regressions: 1714224
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: