gecko-dev/dom/xhr
Thomas Wisniewski 2956d278f7 Bug 1400748 - Correct our handling of XHR.abort edge-cases; r=baku
1. Handle the "terminate the ongoing fetch" cases in the spec-text
   - do not CloseRequest in Abort/Open if the state is UNSENT or DONE).
   - ensure we don't fire extra events after terminating this way
     if a stray OnDataAvailable happens afterward.
2. Ensure that status/statusText correctly return 0/"" to mimic the
   spec's "set response to a network error" steps (requires special
   handling in the worker XHR code).

MozReview-Commit-ID: 5kMyGgD7uUU

--HG--
extra : rebase_source : ba8b6e85fb922869bbba749b4948bb4489878f22
2017-09-25 12:58:23 -04:00
..
tests Bug 1397151 - Remove the support for moz-chunk-text type in XHR, r=smaug 2017-09-22 07:18:49 +02:00
moz.build Bug 1337016 - XHR should create a Blob in the parent process when run from a file:// URL, r=smaug 2017-02-08 14:34:42 +01:00
nsIXMLHttpRequest.idl Bug 1401848. Remove NS_IMPL_EVENT_HANDLER and its consumers. r=smaug 2017-09-22 18:07:05 -04:00
XMLHttpRequest.cpp
XMLHttpRequest.h Bug 1392358 - Introduce XHR.sendInputStream(nsIInputStream) chrome-only, r=smaug 2017-08-25 15:31:15 +02:00
XMLHttpRequestEventTarget.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
XMLHttpRequestEventTarget.h
XMLHttpRequestMainThread.cpp Bug 1400748 - Correct our handling of XHR.abort edge-cases; r=baku 2017-09-25 12:58:23 -04:00
XMLHttpRequestMainThread.h Bug 1400748 - Correct our handling of XHR.abort edge-cases; r=baku 2017-09-25 12:58:23 -04:00
XMLHttpRequestString.cpp Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
XMLHttpRequestString.h Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
XMLHttpRequestUpload.cpp
XMLHttpRequestUpload.h
XMLHttpRequestWorker.cpp Bug 1400748 - Correct our handling of XHR.abort edge-cases; r=baku 2017-09-25 12:58:23 -04:00
XMLHttpRequestWorker.h Bug 1392358 - Introduce XHR.sendInputStream(nsIInputStream) chrome-only, r=smaug 2017-08-25 15:31:15 +02:00