jib wrote:
http://www.xulplanet.com/references/xpcomref/ifaces/nsIContentPolicy.html
says "do not block the caller from shouldLoad or shouldProcess", so it
seems nsIContentPolicy can't be used to ask the user before loading a
page.

That's correct. Doing that will lead to rendering bugs at best and exploitable security holes at worst.

The only way to do what you want is to have your content policy deny the load, remember enough information to restart it, then off a time out put up the dialog, etc.

Note that some loads (POST loads come to mind, though there may also be issues with named targets; not sure) don't pass enough information for content policy to be able to restart them.

-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to