Update header files with new constant so that dom recognizes the crypto
JS object as part of the window object. r=jst@netscape.com git-svn-id: svn://10.0.0.236/trunk@69234 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6064c10d0c
commit
115fcfa9d1
@ -42,4 +42,11 @@
|
||||
0x45f27d10, 0x987b, 0x11d2, \
|
||||
{0xbd, 0x40, 0x00, 0x10, 0x5a, 0xa4, 0x5e, 0x89} }
|
||||
|
||||
//The dom cannot provide the crypto or pkcs11 classes that
|
||||
//were used in older days, so if someone wants to provide
|
||||
//the service they must implement an object and give it
|
||||
//this class ID
|
||||
#define NS_CRYPTO_PROGID "component://netscape/security/crypto"
|
||||
#define NS_PKCS11_PROGID "component://netscape/security/pkcs11"
|
||||
|
||||
#endif /* nsDOMCID_h__ */
|
||||
|
||||
@ -51,7 +51,17 @@ enum nsDOMProp {
|
||||
NS_DOM_PROP_CHARACTERDATA_INSERTDATA,
|
||||
NS_DOM_PROP_CHARACTERDATA_LENGTH,
|
||||
NS_DOM_PROP_CHARACTERDATA_REPLACEDATA,
|
||||
NS_DOM_PROP_CHARACTERDATA_SUBSTRINGDATA,
|
||||
NS_DOM_PROP_CHARACTERDATA_SUBSTRINGDATA,
|
||||
NS_DOM_PROP_CRMFOBJECT_REQUEST,
|
||||
NS_DOM_PROP_CRYPTO_ALERT,
|
||||
NS_DOM_PROP_CRYPTO_DISABLERIGHTCLICK,
|
||||
NS_DOM_PROP_CRYPTO_GENERATECRMFREQUEST,
|
||||
NS_DOM_PROP_CRYPTO_IMPORTUSERCERTIFICATES,
|
||||
NS_DOM_PROP_CRYPTO_LOGOUT,
|
||||
NS_DOM_PROP_CRYPTO_POPCHALLENGERESPONSE,
|
||||
NS_DOM_PROP_CRYPTO_RANDOM,
|
||||
NS_DOM_PROP_CRYPTO_SIGNTEXT,
|
||||
NS_DOM_PROP_CRYPTO_VERSION,
|
||||
NS_DOM_PROP_CSS2PROPERTIES_AZIMUTH,
|
||||
NS_DOM_PROP_CSS2PROPERTIES_BACKGROUND,
|
||||
NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDATTACHMENT,
|
||||
@ -784,6 +794,8 @@ enum nsDOMProp {
|
||||
NS_DOM_PROP_NSUIEVENT_RANGEOFFSET,
|
||||
NS_DOM_PROP_NSUIEVENT_RANGEPARENT,
|
||||
NS_DOM_PROP_NSUIEVENT_WHICH,
|
||||
NS_DOM_PROP_PKCS11_ADDMODULE,
|
||||
NS_DOM_PROP_PKCS11_DELETEMODULE,
|
||||
NS_DOM_PROP_PLUGIN_DESCRIPTION,
|
||||
NS_DOM_PROP_PLUGIN_FILENAME,
|
||||
NS_DOM_PROP_PLUGIN_ITEM,
|
||||
@ -887,7 +899,8 @@ enum nsDOMProp {
|
||||
NS_DOM_PROP_WINDOW_CLOSED,
|
||||
NS_DOM_PROP_WINDOW_CONFIRM,
|
||||
NS_DOM_PROP_WINDOW_CONTENT,
|
||||
NS_DOM_PROP_WINDOW_CONTROLLERS,
|
||||
NS_DOM_PROP_WINDOW_CONTROLLERS,
|
||||
NS_DOM_PROP_WINDOW_CRYPTO,
|
||||
NS_DOM_PROP_WINDOW_DEFAULTSTATUS,
|
||||
NS_DOM_PROP_WINDOW_DIRECTORIES,
|
||||
NS_DOM_PROP_WINDOW_DISABLEEXTERNALCAPTURE,
|
||||
@ -918,7 +931,8 @@ enum nsDOMProp {
|
||||
NS_DOM_PROP_WINDOW_PAGEXOFFSET,
|
||||
NS_DOM_PROP_WINDOW_PAGEYOFFSET,
|
||||
NS_DOM_PROP_WINDOW_PARENT,
|
||||
NS_DOM_PROP_WINDOW_PERSONALBAR,
|
||||
NS_DOM_PROP_WINDOW_PERSONALBAR,
|
||||
NS_DOM_PROP_WINDOW_PKCS11,
|
||||
NS_DOM_PROP_WINDOW_PRINT,
|
||||
NS_DOM_PROP_WINDOW_PROMPT,
|
||||
NS_DOM_PROP_WINDOW_RELEASEEVENTS,
|
||||
|
||||
@ -51,6 +51,16 @@
|
||||
"characterdata.length", \
|
||||
"characterdata.replacedata", \
|
||||
"characterdata.substringdata", \
|
||||
"crmfobject.request", \
|
||||
"crypto.alert", \
|
||||
"crypto.disablerightclick", \
|
||||
"crypto.generatecrmfrequest", \
|
||||
"crypto.importusercertificates", \
|
||||
"crypto.logout", \
|
||||
"crypto.popchallengeresponse", \
|
||||
"crypto.random", \
|
||||
"crypto.signtext", \
|
||||
"crypto.version", \
|
||||
"css2properties.azimuth", \
|
||||
"css2properties.background", \
|
||||
"css2properties.backgroundattachment", \
|
||||
@ -783,6 +793,8 @@
|
||||
"nsuievent.rangeoffset", \
|
||||
"nsuievent.rangeparent", \
|
||||
"nsuievent.which", \
|
||||
"pkcs11.addmodule", \
|
||||
"pkcs11.deletemodule", \
|
||||
"plugin.description", \
|
||||
"plugin.filename", \
|
||||
"plugin.item", \
|
||||
@ -887,6 +899,7 @@
|
||||
"window.confirm", \
|
||||
"window.content", \
|
||||
"window.controllers", \
|
||||
"window.crypto", \
|
||||
"window.defaultstatus", \
|
||||
"window.directories", \
|
||||
"window.disableexternalcapture", \
|
||||
@ -918,6 +931,7 @@
|
||||
"window.pageyoffset", \
|
||||
"window.parent", \
|
||||
"window.personalbar", \
|
||||
"window.pkcs11", \
|
||||
"window.print", \
|
||||
"window.prompt", \
|
||||
"window.releaseevents", \
|
||||
|
||||
@ -114,6 +114,21 @@ public:
|
||||
nsISupports *aPI,
|
||||
nsISupports *aParent,
|
||||
void** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NewScriptCrypto(nsIScriptContext *aContext,
|
||||
nsISupports *aPI,
|
||||
nsISupports *aParent,
|
||||
void** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NewScriptCRMFObject(nsIScriptContext *aContext,
|
||||
nsISupports *aPI,
|
||||
nsISupports *aParent,
|
||||
void** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NewScriptPkcs11(nsIScriptContext *aContext,
|
||||
nsISupports *aPI,
|
||||
nsISupports *aParent,
|
||||
void** aReturn)=0;
|
||||
};
|
||||
|
||||
#endif /* nsIDOMScriptObjectFactory_h__ */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user