Christian Biesinger wrote:
To get the previous one by CID:
var realService =
Components.classesByID["{A2112D6A-0E28-421f-B46A-25C0B308CBD0}"]
.getService(Components.interfaces.nsIPromptService);
This works just fine. Many thanks Christian !
In fact, I realized that I mixed up interface (nsIPromptService) and
service (@mozilla.org/embedcomp/prompt-service;1) CIDs. How did you get
the service CID (A2112D6A-0E28-421f-B46A-25C0B308CBD0) from ?
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.
Hmm, I'm not sure why this isn't working...
Even if the JS prompt() function does not invoke my code, I get it
called when for instance I add a new config entry from about:config
Do you have an idea where I can get in the source the implementation for
the javascript prompt function ?
Thanks again,
/mig
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom