gecko-dev/dom/xhr
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
..
tests Bug 1338339 - dom/xhr/tests/browser_blobFromFile.js must use a separate file for testing instead of prefs.js, r=smaug 2017-07-24 19:58:32 +02:00
XMLHttpRequest.cpp Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug 2016-06-27 19:13:41 +02:00
XMLHttpRequest.h Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku 2017-05-24 08:52:15 -04:00
XMLHttpRequestEventTarget.cpp
XMLHttpRequestEventTarget.h Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug 2016-06-27 19:13:41 +02:00
XMLHttpRequestMainThread.cpp Backed out changeset 6ed95396bdb6 (bug 1362354) for failing web-platform-test /html/browsers/browsing-the-web/navigating-across-documents/010.html. r=backout 2017-07-27 12:48:45 +02:00
XMLHttpRequestMainThread.h Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08: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 Bug 1269162 - part 5 - Merge XMLHttpRequestUploadWorker and XMLHttpRequestUpload, r=smaug 2016-06-27 19:13:41 +02:00
XMLHttpRequestUpload.h Bug 1269162 - part 6 - Merge XMLHttpRequestWorker and XMLHttpRequestMainThread, r=smaug 2016-06-27 19:13:41 +02:00
XMLHttpRequestWorker.cpp Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
XMLHttpRequestWorker.h Bug 1367110 - Expose XHRMT's ErrorCode to chrome JS. r=baku 2017-05-24 08:52:15 -04: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 1329298 - Part 1 - Unify body extraction in Fetch/Beacon/XHR, r=smaug 2017-01-24 12:13:31 +01:00