On Mon, 10 Jun 2019 at 22:25, Boris Zbarsky <bzbar...@mit.edu> wrote:
> On 6/10/19 4:07 PM, Valentin Gosu wrote: > > which means nsIURI > > can now be safely used and created on any thread via NS_NewURI. > > That's awesome news! > > > and if you want to add any other special scheme to Gecko you should do > so in NS_NewURI in > > nsNetUtil.cpp > > Here "special" is in the sense of "Parsed as anything other than a basic > nsSimpleURI"? > That's absolutely correct. nsSimpleURI is the default parser for unknown schemes, and at the moment it has the downside of not having a hostname. So if need URIs of a certain scheme to have a hostname, you probably need to add code to create the correct type - probably an nsStandardURL. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform