gecko-dev/dom/workers
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
..
remoteworkers Bug 1661860 - RemoteWorkerManager should transmit blobs and permissions when spawning any remote worker type. r=asuth 2020-08-31 17:47:38 +00:00
sharedworkers Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
test Bug 1568597 - Make RemoteWorkerManager::GetRemoteType/MatchRemoteType fission-aware. r=asuth,nika 2020-08-28 17:58:58 +00:00
ChromeWorker.cpp
ChromeWorker.h
ChromeWorkerScope.cpp
ChromeWorkerScope.h
JSExecutionManager.cpp
JSExecutionManager.h
JSSettings.h Bug 1642344 - Remove unused field from JSSettings and flatten away a struct. r=baku 2020-06-09 15:05:46 +00:00
MessageEventRunnable.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
MessageEventRunnable.h
Principal.cpp
Principal.h
Queue.h Bug 1648440 - Remove unused return value from Queue::Push. r=dom-workers-and-storage-reviewers,asuth 2020-06-26 14:53:05 +00:00
RegisterBindings.cpp
RuntimeService.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
RuntimeService.h Bug 1652001 - Fix includes of WorkerNavigator. r=dom-workers-and-storage-reviewers,ttung 2020-07-15 12:45:12 +00:00
ScriptLoader.cpp Bug 1528649 - Remove the context parameter from nsInputStreamPump::AsyncRead. r=valentin,necko-reviewers 2020-08-05 11:21:51 +00:00
ScriptLoader.h
Worker.cpp
Worker.h Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp 2020-07-23 14:51:46 +00:00
WorkerCSPEventListener.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
WorkerCSPEventListener.h
WorkerCommon.h Bug 1639833 - IntrisincStoragePrincipal should always be partitioned - part 3 - Cleanup storage access methods, r=dimi 2020-06-03 06:10:58 +00:00
WorkerDebugger.cpp Bug 1642906 - initialize PerformanceCounter in WorkerPrivate initialization r=dom-workers-and-storage-reviewers,sg 2020-07-09 05:23:14 +00:00
WorkerDebugger.h
WorkerDebuggerManager.cpp Bug 1648440 - Use range-based for in WorkerDebuggerManager. r=dom-workers-and-storage-reviewers,asuth 2020-06-26 14:52:32 +00:00
WorkerDebuggerManager.h Bug 1648440 - Use range-based for in WorkerDebuggerManager. r=dom-workers-and-storage-reviewers,asuth 2020-06-26 14:52:32 +00:00
WorkerError.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
WorkerError.h
WorkerEventTarget.cpp
WorkerEventTarget.h
WorkerLoadInfo.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
WorkerLoadInfo.h Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
WorkerLocation.cpp
WorkerLocation.h
WorkerNavigator.cpp Bug 1652001 - Fix includes of WorkerNavigator. r=dom-workers-and-storage-reviewers,ttung 2020-07-15 12:45:12 +00:00
WorkerNavigator.h Bug 1652001 - Fix includes of WorkerNavigator. r=dom-workers-and-storage-reviewers,ttung 2020-07-15 12:45:12 +00:00
WorkerPrivate.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
WorkerPrivate.h Bug 1651612 - Run extra garbage collection cycle for idle workers if cycle collection collected anything r=mccr8 2020-07-10 13:55:38 +00:00
WorkerRef.cpp
WorkerRef.h
WorkerRunnable.cpp
WorkerRunnable.h
WorkerScope.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
WorkerScope.h Backed out 3 changesets (bug 1367251) for Mda failures in /test_background_video_tainted_by_createimagebitmap.html. CLOSED TREE 2020-07-15 16:37:32 +03:00
WorkerStatus.h
WorkerThread.cpp Bug 1642906 - initialize PerformanceCounter in WorkerPrivate initialization r=dom-workers-and-storage-reviewers,sg 2020-07-09 05:23:14 +00:00
WorkerThread.h Bug 1644009 - P1. Revert "Bug 1592488 - P11. Ensure an AbstractThread exists for each WorkerThread." r=nika 2020-06-12 05:09:26 +00:00
moz.build
nsIWorkerDebugger.idl
nsIWorkerDebuggerManager.idl