It is working just fine for alert, confirm, promptUsernameAndPassword functions, but strangely enough, it doesn't work for prompt(). If a javascript code invokes the function prompt("Enter your name"), none of my code is called and nothing happens.

I could get it to work.

The window prompt method is not using @mozilla.org/embedcomp/prompt-service;1 but @mozilla.org/wallet/single-sign-on-prompt;1 instead. And for some reasons I ignore, having overriden prompt-service, the single-sign-on-prompt does not work anymore for the 'prompt' function. So I have also overriden single-sign-on-prompt and make it call the legacy prompt-service to display the prompt dialog. As a result, I have lost the 'single sign on' feature for prompt (I didn't understand what I really lost there), and everything else is working ok.

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

Reply via email to