Christian Biesinger wrote:
How did you
get the service CID (A2112D6A-0E28-421f-B46A-25C0B308CBD0) from ?
Ah. Interface IDs are usually called IIDs (or the more generic UUID of
course), not CID which stands for class ID.
The way I did it was search Mozilla's source code for
NS_PROMPTSERVICE_CID defines, and then I picked the right one... but
another way to do it is to look in compreg.dat in a build w/o your
extension's override registered and check the CID for the contract ID
you are looking for.
You can also do this programmatically
(http://lxr.mozilla.org/seamonkey/source/xpcom/components/nsIComponentRegistrar.idl#223);
again, do it in a build where your override isn't registered.
Component viewer (cview) is a third possibility, and maybe the easiest
one. Seems to be available from addons.mozilla.org.
Do you have an idea where I can get in the source the implementation
for the javascript prompt function ?
The code is here:
http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsGlobalWindow.cpp#3268
which calls:
http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsGlobalWindow.cpp#3225
Many good advices. Thanks again.
/mig
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom