This seems like an easy win. An UTF-8 string appears like the appropriate replacement for string/char*. I don't think we would want to swap string for a more complicated object of nsIURI. If you say "going by M-C examples" it would be great to quote those examples so the poor reviewer don't have to try to retrace your steps.
Bug 1562158 Comment 6 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This seems like an easy win. An UTF-8 string appears like the appropriate replacement for string/char*. I don't think we would want to swap string for a more complicated object of nsIURI. If you say "going by M-C examples" it would be great to quote those examples so the poor reviewer don't have to try to retrace your steps. EDIT: I found a case where Boris replaced wstring with AString: https://searchfox.org/mozilla-central/diff/d49981ee724394b41142bc22ce5efade2f81e464/dom/base/nsIDroppedLinkHandler.idl#90 So we want to handle more than ACString here, so AUTF8String is the way to go.