gecko-dev/dom/xhr
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
..
tests Bug 1661082 - Backed out changeset 5fdd97a2bd5b (Bug 1652568) 2020-09-02 16:33:33 +00:00
XMLHttpRequest.cpp Bug 1637159 provide XMLHttpRequest owner via DOMEventTargetHelper constructor r=smaug 2020-05-14 05:28:36 +00:00
XMLHttpRequest.h Bug 1639310 - Remove unnecessary implicitJSContext annotations. r=mccr8 2020-05-19 20:48:21 +00:00
XMLHttpRequestEventTarget.cpp
XMLHttpRequestEventTarget.h Bug 1637159 provide XMLHttpRequest owner via DOMEventTargetHelper constructor r=smaug 2020-05-14 05:28:36 +00:00
XMLHttpRequestMainThread.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
XMLHttpRequestMainThread.h Bug 1652960 - Remove unnecessary includes from Document.h. r=smaug 2020-07-15 15:48:53 +00:00
XMLHttpRequestString.cpp Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj 2020-08-21 09:54:48 +00:00
XMLHttpRequestString.h Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj 2020-08-21 09:54:48 +00:00
XMLHttpRequestUpload.cpp
XMLHttpRequestUpload.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/xhr. r=smaug 2020-02-20 15:59:01 +00:00
XMLHttpRequestWorker.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
XMLHttpRequestWorker.h Bug 1639310 - Remove unnecessary implicitJSContext annotations. r=mccr8 2020-05-19 20:48:21 +00:00
moz.build