This suggests that channel.originalURI should help: https://searchfox.org/mozilla-central/source/netwerk/base/nsIChannel.idl#37
On Fri, Dec 7, 2018 at 9:19 AM Henri Sivonen <hsivo...@mozilla.com> wrote: > On Fri, Dec 7, 2018 at 3:23 PM Daniel Veditz <dved...@mozilla.com> wrote: > > > > I'm afraid to ask why you want to treat these differently. > > I'd like to make out resource: URLs default to UTF-8 and skip > (upcoming) detection between UTF-8 and the locale-affiliated legacy > encoding. > > > Do you have a channel or a principal? > > I have a channel at a later point, so I could reverse the decision > made from the nsIURI by looking at the channel before the initial > decision is acted upon in a meaningful way. > > -- > Henri Sivonen > hsivo...@mozilla.com > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform