gecko-dev/dom/webbrowserpersist
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
..
PWebBrowserPersistDocument.ipdl Bug 1570255 - Remove sync session history implementation. r=smaug,nika 2020-05-20 09:09:06 +00:00
PWebBrowserPersistResources.ipdl Bug 1576188 - Handle save-as for cross process iframes. r=peterv 2020-04-27 05:41:40 +00:00
PWebBrowserPersistSerialize.ipdl
WebBrowserPersistDocumentChild.cpp Bug 1570255 - Remove sync session history implementation. r=smaug,nika 2020-05-20 09:09:06 +00:00
WebBrowserPersistDocumentChild.h
WebBrowserPersistDocumentParent.cpp
WebBrowserPersistDocumentParent.h
WebBrowserPersistLocalDocument.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
WebBrowserPersistLocalDocument.h
WebBrowserPersistRemoteDocument.cpp Bug 1570255 - Remove sync session history implementation. r=smaug,nika 2020-05-20 09:09:06 +00:00
WebBrowserPersistRemoteDocument.h
WebBrowserPersistResourcesChild.cpp Bug 1576188 - Handle save-as for cross process iframes. r=peterv 2020-04-27 05:41:40 +00:00
WebBrowserPersistResourcesChild.h
WebBrowserPersistResourcesParent.cpp Bug 1576188 - Handle save-as for cross process iframes. r=peterv 2020-04-27 05:41:40 +00:00
WebBrowserPersistResourcesParent.h Bug 1576188 - Handle save-as for cross process iframes. r=peterv 2020-04-27 05:41:40 +00:00
WebBrowserPersistSerializeChild.cpp
WebBrowserPersistSerializeChild.h
WebBrowserPersistSerializeParent.cpp
WebBrowserPersistSerializeParent.h
moz.build
nsIWebBrowserPersist.idl
nsIWebBrowserPersistDocument.idl Bug 1576188 - Handle save-as for cross process iframes. r=peterv 2020-04-27 05:41:40 +00:00
nsWebBrowserPersist.cpp Backed out 2 changesets (bug 1658202) for failures at test_DownloadLegacy.js. CLOSED TREE 2020-09-01 23:50:39 +03:00
nsWebBrowserPersist.h Backed out 2 changesets (bug 1658202) for failures at test_DownloadLegacy.js. CLOSED TREE 2020-09-01 23:50:39 +03:00