I found a way to check origins of requests for my custom protocol a bit later using nsIContentPolicy.shouldLoad() Maybe that will help someone.
Denis On 1 июл, 23:30, Boris Zbarsky <[email protected]> wrote: > disya2 wrote: > > Is there a way to know where a request was initiated from? > > Not really. > > > I need to clearly distinguish all these cases because > > bookmarks, nav bar, and cmd line are trusted but web-pages require > > additional checks. > > Sounds like you might want two different schemes: one that anyone can > link to and does additional checks and one that only trusted code can > link to and that doesn't do them. > > -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
