gecko-dev/dom/xhr
Henri Sivonen 7753be203b Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku
The old code assumes that it's OK to use nsAString::BeginWriting() to write
past the string's logical length if the string has enough capacity. This is
bogus, because the string doesn't know of data written past its logical
length.

The BulkWrite API has been created precisely for this purpose and allows
orderly capacity-aware low-level writes to the string.

MozReview-Commit-ID: BYQHl8Z9Fbd

Differential Revision: https://phabricator.services.mozilla.com/D3886

--HG--
extra : moz-landing-system : lando
2018-08-30 14:24:58 +00:00
..
tests Bug 1070763 - Ensure that XHRs sniff the BOM for non-JSON responseTypes, and flush the decoder upon end-of-stream; r=hsivonen 2018-08-10 06:38:01 +00:00
moz.build Bug 792808 - Purge nsIXMLHttpRequest, nsIXMLHttpRequestUpload, nsIXMLHttpRequestEventTarget, nsIXHRSendable XPCOM interfaces; r=baku 2017-11-19 17:11:41 -05:00
XMLHttpRequest.cpp
XMLHttpRequest.h Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
XMLHttpRequestEventTarget.cpp Bug 792808 - Purge nsIXMLHttpRequest, nsIXMLHttpRequestUpload, nsIXMLHttpRequestEventTarget, nsIXHRSendable XPCOM interfaces; r=baku 2017-11-19 17:11:41 -05:00
XMLHttpRequestEventTarget.h Bug 1449631 part 13. Remove now-unnecessary forwarding macros. r=smaug 2018-04-05 13:42:42 -04:00
XMLHttpRequestMainThread.cpp Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku 2018-08-30 14:24:58 +00:00
XMLHttpRequestMainThread.h Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku 2018-08-30 14:24:58 +00:00
XMLHttpRequestString.cpp Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku 2018-08-30 14:24:58 +00:00
XMLHttpRequestString.h Bug 1484990 - Use BulkWrite instead of write past length via BeginWriting() in XHR. r=baku 2018-08-30 14:24:58 +00:00
XMLHttpRequestUpload.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
XMLHttpRequestUpload.h Bug 1449631 part 13. Remove now-unnecessary forwarding macros. r=smaug 2018-04-05 13:42:42 -04:00
XMLHttpRequestWorker.cpp Bug 1459984 - avoid firing progress type ProgressEvents for sync XHRs in workers. r=baku 2018-07-30 20:14:36 -04:00
XMLHttpRequestWorker.h Bug 1455256 - Port more components to WorkerRef - part 5 - XHR, r=asuth 2018-06-18 16:37:21 -04:00