gecko-dev/dom/xhr
David Major dc67bfc9a3 Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());

This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.

I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.

MozReview-Commit-ID: Kh1rUziVllo

--HG--
extra : rebase_source : c21a65694d6e1c42fd88f73632f7ac8f38d005ae
2017-03-14 15:26:27 +13:00
..
tests Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher 2017-02-23 06:10:07 +09:00
XMLHttpRequest.cpp
XMLHttpRequest.h
XMLHttpRequestEventTarget.cpp
XMLHttpRequestEventTarget.h
XMLHttpRequestMainThread.cpp Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron 2017-03-14 15:26:27 +13:00
XMLHttpRequestMainThread.h 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
XMLHttpRequestString.cpp
XMLHttpRequestString.h
XMLHttpRequestUpload.cpp
XMLHttpRequestUpload.h
XMLHttpRequestWorker.cpp Bug 1331434 - Part 8: Avoid doing work after throwing in XMLHttpRequestWorker::SendInternal, r=baku 2017-03-07 19:06:48 -05:00
XMLHttpRequestWorker.h
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 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01:00