Thanks, that sounds like an excellent advice.
However, in some situations, I need to be able to perform alert, prompt, ...
If I override nsIPrompt.idl for instance, I can decide whether or not I
must fake the dialog. In case I should not, is there a way to call the
former interface ?
/mig
Håkan Waara wrote:
These dialogs are invoked via the nsIPromptService/nsIPrompt
interfaces. Just overriding either or both of those with your own
service (that doesn't do anything) should work.
See:
* mozilla/source/netwerk/base/public/nsIPrompt.idl
*
mozilla/source/embedding/components/windowwatcher/public/nsIPromptService.idl
/Håkan
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom