Closed
Bug 1251627
Opened 9 years ago
Closed 9 years ago
Fix the exceptions XMLHttpRequest (XHR) send() throws to follow the spec more
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Keywords: dev-doc-needed, Whiteboard: btpp-active)
Attachments
(1 file)
We should not be throwing NS_ERROR_FAILURE from DOM APIs. Really, we should not.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8724139 -
Flags: review?(khuey)
Comment on attachment 8724139 [details] [diff] [review] Fix XMLHttpRequest.send() to follow the spec better in terms of the exceptions it throws Review of attachment 8724139 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/workers/XMLHttpRequest.cpp @@ +2282,5 @@ > > + if (mStateData.mReadyState == 4) { > + // No one did anything to us while we fired abort events, so reset our state > + // to "unsent" > + mStateData.mReadyState = 0; https://xhr.spec.whatwg.org/#the-abort%28%29-method says to do this unconditionally, no?
Attachment #8724139 -
Flags: review?(khuey) → review+
Updated•9 years ago
|
Whiteboard: btpp-active
Assignee | ||
Comment 3•9 years ago
|
||
> https://xhr.spec.whatwg.org/#the-abort%28%29-method says to do this unconditionally, no? It does, but I think it's bogus. I filed https://github.com/whatwg/xhr/issues/54 earlier today, with a testcase and an explanation of why I think the spec behavior in that testcase is bogus...
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 5•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/100ad61e04dc
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•