Hi,

I'm working on my own protocol handler which uses custom scheme to
perform some actions. Is there a  way to know where a request was
initiated from? I can imagine the following sources: bookmarks, web
pages, cmd line 'firefox my-scheme://bla-bla', user input into
navigation bar. I need to clearly distinguish all these cases because
bookmarks, nav bar, and cmd line are trusted but web-pages require
additional checks.

Somewhere in mozilla.* groups I found that nsIChannel.asyncOpen
returned from nsIProtocolHandler.newChannel() can be used to such
things but failed to find exactly how.

Thanks,
Denis
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to