Jason King wrote:
You can modify the URI (I believe)
Hmmm... That's not intended and not guaranteed to work -- the URI could be immutable (and maybe should be forced to be so).
or simply tell mozilla that you are handling it yourself (and thus mozilla will abort the load).
This is the idea of onStartURIOpen.
Personally, I am using it to filter certain query strings from the URL to know whether to launch the link in an external browser rather than the embedded one. Ideally, I could just watch for "target=_blank" or "target=_new", but I could never find a choke point where I could detect this and also stop the load from happening outright.
File a bug on docshell APIs describing your use case, please? -Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
