From f77a65d9d40bb387a663d93b7933cc166cd08745 Mon Sep 17 00:00:00 2001 From: "norris%netscape.com" Date: Sat, 20 Nov 1999 07:28:34 +0000 Subject: [PATCH] Modify generated dom code to use a enum rather than a string for codesize and efficiency. Tighten checks on document properties and node properties. Should resolve several bugs: 18965 document.firstChild vulnerability 19043 document.childNodes vulnerability 19044 document.lastChild vulnerability r=mstoltz git-svn-id: svn://10.0.0.236/trunk@54051 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/caps/README.html | 45 + mozilla/caps/idl/nsIScriptSecurityManager.idl | 4 +- .../caps/include/nsScriptSecurityManager.h | 9 +- mozilla/caps/src/nsScriptSecurityManager.cpp | 148 ++- mozilla/dom/public/MANIFEST | 3 +- mozilla/dom/public/Makefile.in | 1 + mozilla/dom/public/base/nsIDOMAbstractView.h | 26 +- mozilla/dom/public/base/nsIDOMBarProp.h | 26 +- mozilla/dom/public/base/nsIDOMDOMException.h | 26 +- mozilla/dom/public/base/nsIDOMHistory.h | 26 +- mozilla/dom/public/base/nsIDOMLocation.h | 26 +- mozilla/dom/public/base/nsIDOMMimeType.h | 26 +- mozilla/dom/public/base/nsIDOMMimeTypeArray.h | 26 +- mozilla/dom/public/base/nsIDOMNSLocation.h | 26 +- mozilla/dom/public/base/nsIDOMNavigator.h | 26 +- mozilla/dom/public/base/nsIDOMPlugin.h | 26 +- mozilla/dom/public/base/nsIDOMPluginArray.h | 26 +- mozilla/dom/public/base/nsIDOMScreen.h | 26 +- mozilla/dom/public/base/nsIDOMWindow.h | 26 +- .../dom/public/base/nsIDOMWindowCollection.h | 26 +- mozilla/dom/public/coreDom/nsIDOMAttr.h | 26 +- .../dom/public/coreDom/nsIDOMCDATASection.h | 26 +- .../dom/public/coreDom/nsIDOMCharacterData.h | 26 +- mozilla/dom/public/coreDom/nsIDOMComment.h | 26 +- .../public/coreDom/nsIDOMDOMImplementation.h | 26 +- mozilla/dom/public/coreDom/nsIDOMDocument.h | 26 +- .../public/coreDom/nsIDOMDocumentFragment.h | 26 +- .../dom/public/coreDom/nsIDOMDocumentType.h | 26 +- mozilla/dom/public/coreDom/nsIDOMElement.h | 26 +- mozilla/dom/public/coreDom/nsIDOMEntity.h | 26 +- .../public/coreDom/nsIDOMEntityReference.h | 26 +- mozilla/dom/public/coreDom/nsIDOMNSDocument.h | 26 +- .../dom/public/coreDom/nsIDOMNamedNodeMap.h | 26 +- mozilla/dom/public/coreDom/nsIDOMNode.h | 26 +- mozilla/dom/public/coreDom/nsIDOMNodeList.h | 26 +- mozilla/dom/public/coreDom/nsIDOMNotation.h | 26 +- .../coreDom/nsIDOMProcessingInstruction.h | 26 +- mozilla/dom/public/coreDom/nsIDOMStyleSheet.h | 26 +- .../coreDom/nsIDOMStyleSheetCollection.h | 26 +- mozilla/dom/public/coreDom/nsIDOMText.h | 26 +- mozilla/dom/public/coreEvents/nsIDOMEvent.h | 26 +- .../dom/public/coreEvents/nsIDOMEventTarget.h | 26 +- .../dom/public/coreEvents/nsIDOMKeyEvent.h | 26 +- .../dom/public/coreEvents/nsIDOMMouseEvent.h | 26 +- .../dom/public/coreEvents/nsIDOMNSUIEvent.h | 26 +- mozilla/dom/public/coreEvents/nsIDOMUIEvent.h | 26 +- mozilla/dom/public/css/nsIDOMCSS2Properties.h | 26 +- .../dom/public/css/nsIDOMCSSFontFaceRule.h | 26 +- mozilla/dom/public/css/nsIDOMCSSImportRule.h | 26 +- mozilla/dom/public/css/nsIDOMCSSMediaRule.h | 26 +- mozilla/dom/public/css/nsIDOMCSSPageRule.h | 26 +- mozilla/dom/public/css/nsIDOMCSSRule.h | 26 +- .../public/css/nsIDOMCSSStyleDeclaration.h | 26 +- mozilla/dom/public/css/nsIDOMCSSStyleRule.h | 26 +- .../public/css/nsIDOMCSSStyleRuleCollection.h | 26 +- mozilla/dom/public/css/nsIDOMCSSStyleSheet.h | 26 +- mozilla/dom/public/css/nsIDOMCSSUnknownRule.h | 26 +- .../dom/public/html/nsIDOMHTMLAnchorElement.h | 26 +- .../dom/public/html/nsIDOMHTMLAppletElement.h | 26 +- .../dom/public/html/nsIDOMHTMLAreaElement.h | 26 +- mozilla/dom/public/html/nsIDOMHTMLBRElement.h | 26 +- .../dom/public/html/nsIDOMHTMLBaseElement.h | 26 +- .../public/html/nsIDOMHTMLBaseFontElement.h | 26 +- .../dom/public/html/nsIDOMHTMLBodyElement.h | 26 +- .../dom/public/html/nsIDOMHTMLButtonElement.h | 26 +- .../dom/public/html/nsIDOMHTMLCollection.h | 26 +- .../dom/public/html/nsIDOMHTMLDListElement.h | 26 +- .../public/html/nsIDOMHTMLDirectoryElement.h | 26 +- .../dom/public/html/nsIDOMHTMLDivElement.h | 26 +- mozilla/dom/public/html/nsIDOMHTMLDocument.h | 26 +- mozilla/dom/public/html/nsIDOMHTMLElement.h | 26 +- .../dom/public/html/nsIDOMHTMLEmbedElement.h | 26 +- .../public/html/nsIDOMHTMLFieldSetElement.h | 26 +- .../dom/public/html/nsIDOMHTMLFontElement.h | 26 +- .../dom/public/html/nsIDOMHTMLFormElement.h | 26 +- .../dom/public/html/nsIDOMHTMLFrameElement.h | 26 +- .../public/html/nsIDOMHTMLFrameSetElement.h | 26 +- mozilla/dom/public/html/nsIDOMHTMLHRElement.h | 26 +- .../dom/public/html/nsIDOMHTMLHeadElement.h | 26 +- .../public/html/nsIDOMHTMLHeadingElement.h | 26 +- .../dom/public/html/nsIDOMHTMLHtmlElement.h | 26 +- .../dom/public/html/nsIDOMHTMLIFrameElement.h | 26 +- .../dom/public/html/nsIDOMHTMLImageElement.h | 26 +- .../dom/public/html/nsIDOMHTMLInputElement.h | 26 +- .../public/html/nsIDOMHTMLIsIndexElement.h | 26 +- mozilla/dom/public/html/nsIDOMHTMLLIElement.h | 26 +- .../dom/public/html/nsIDOMHTMLLabelElement.h | 26 +- .../dom/public/html/nsIDOMHTMLLayerElement.h | 26 +- .../dom/public/html/nsIDOMHTMLLegendElement.h | 26 +- .../dom/public/html/nsIDOMHTMLLinkElement.h | 26 +- .../dom/public/html/nsIDOMHTMLMapElement.h | 26 +- .../dom/public/html/nsIDOMHTMLMenuElement.h | 26 +- .../dom/public/html/nsIDOMHTMLMetaElement.h | 26 +- .../dom/public/html/nsIDOMHTMLModElement.h | 26 +- .../dom/public/html/nsIDOMHTMLOListElement.h | 26 +- .../dom/public/html/nsIDOMHTMLObjectElement.h | 26 +- .../public/html/nsIDOMHTMLOptGroupElement.h | 26 +- .../dom/public/html/nsIDOMHTMLOptionElement.h | 26 +- .../public/html/nsIDOMHTMLParagraphElement.h | 26 +- .../dom/public/html/nsIDOMHTMLParamElement.h | 26 +- .../dom/public/html/nsIDOMHTMLPreElement.h | 26 +- .../dom/public/html/nsIDOMHTMLQuoteElement.h | 26 +- .../dom/public/html/nsIDOMHTMLScriptElement.h | 26 +- .../dom/public/html/nsIDOMHTMLSelectElement.h | 26 +- .../dom/public/html/nsIDOMHTMLStyleElement.h | 26 +- .../html/nsIDOMHTMLTableCaptionElement.h | 26 +- .../public/html/nsIDOMHTMLTableCellElement.h | 26 +- .../public/html/nsIDOMHTMLTableColElement.h | 26 +- .../dom/public/html/nsIDOMHTMLTableElement.h | 26 +- .../public/html/nsIDOMHTMLTableRowElement.h | 26 +- .../html/nsIDOMHTMLTableSectionElement.h | 26 +- .../public/html/nsIDOMHTMLTextAreaElement.h | 26 +- .../dom/public/html/nsIDOMHTMLTitleElement.h | 26 +- .../dom/public/html/nsIDOMHTMLUListElement.h | 26 +- mozilla/dom/public/html/nsIDOMImage.h | 26 +- .../public/html/nsIDOMNSHTMLButtonElement.h | 26 +- .../dom/public/html/nsIDOMNSHTMLDocument.h | 26 +- .../dom/public/html/nsIDOMNSHTMLFormElement.h | 26 +- .../public/html/nsIDOMNSHTMLSelectElement.h | 26 +- mozilla/dom/public/html/nsIDOMOption.h | 26 +- mozilla/dom/public/makefile.win | 1 + mozilla/dom/public/nsDOMPropEnums.h | 901 ++++++++++++++++++ mozilla/dom/public/range/nsIDOMNSRange.h | 26 +- mozilla/dom/public/range/nsIDOMRange.h | 26 +- mozilla/dom/public/range/nsIDOMSelection.h | 26 +- .../public/range/nsIDOMSelectionListener.h | 26 +- .../public/xul/nsIDOMXULCommandDispatcher.h | 26 +- mozilla/dom/public/xul/nsIDOMXULDocument.h | 26 +- mozilla/dom/public/xul/nsIDOMXULElement.h | 26 +- mozilla/dom/public/xul/nsIDOMXULTreeElement.h | 26 +- mozilla/dom/src/base/nsGlobalWindow.cpp | 4 +- mozilla/dom/src/base/nsJSBarProp.cpp | 31 +- mozilla/dom/src/base/nsJSDOMException.cpp | 37 +- mozilla/dom/src/base/nsJSHistory.cpp | 41 +- mozilla/dom/src/base/nsJSLocation.cpp | 61 +- mozilla/dom/src/base/nsJSMimeType.cpp | 35 +- mozilla/dom/src/base/nsJSMimeTypeArray.cpp | 33 +- mozilla/dom/src/base/nsJSNavigator.cpp | 51 +- mozilla/dom/src/base/nsJSPlugin.cpp | 39 +- mozilla/dom/src/base/nsJSPluginArray.cpp | 35 +- mozilla/dom/src/base/nsJSScreen.cpp | 43 +- mozilla/dom/src/base/nsJSWindow.cpp | 183 ++-- mozilla/dom/src/base/nsJSWindowCollection.cpp | 33 +- mozilla/dom/src/base/nsLocation.cpp | 1 - mozilla/dom/src/build/nsHTMLTagsEnums.cpp | 23 +- mozilla/dom/src/build/nsHTMLTagsEnums.h | 23 +- mozilla/dom/src/coreDOM/nsJSAttr.cpp | 35 +- mozilla/dom/src/coreDOM/nsJSCDATASection.cpp | 27 +- mozilla/dom/src/coreDOM/nsJSCharacterData.cpp | 43 +- mozilla/dom/src/coreDOM/nsJSComment.cpp | 27 +- .../dom/src/coreDOM/nsJSDOMImplementation.cpp | 29 +- mozilla/dom/src/coreDOM/nsJSDocument.cpp | 61 +- .../dom/src/coreDOM/nsJSDocumentFragment.cpp | 27 +- mozilla/dom/src/coreDOM/nsJSDocumentType.cpp | 33 +- mozilla/dom/src/coreDOM/nsJSElement.cpp | 45 +- mozilla/dom/src/coreDOM/nsJSEntity.cpp | 33 +- .../dom/src/coreDOM/nsJSEntityReference.cpp | 27 +- mozilla/dom/src/coreDOM/nsJSNamedNodeMap.cpp | 37 +- mozilla/dom/src/coreDOM/nsJSNode.cpp | 67 +- mozilla/dom/src/coreDOM/nsJSNodeList.cpp | 31 +- mozilla/dom/src/coreDOM/nsJSNotation.cpp | 31 +- .../src/coreDOM/nsJSProcessingInstruction.cpp | 33 +- mozilla/dom/src/coreDOM/nsJSStyleSheet.cpp | 35 +- .../src/coreDOM/nsJSStyleSheetCollection.cpp | 31 +- mozilla/dom/src/coreDOM/nsJSText.cpp | 29 +- mozilla/dom/src/css/nsJSCSS2Properties.cpp | 519 +++++----- mozilla/dom/src/css/nsJSCSSFontFaceRule.cpp | 31 +- mozilla/dom/src/css/nsJSCSSImportRule.cpp | 37 +- mozilla/dom/src/css/nsJSCSSMediaRule.cpp | 37 +- mozilla/dom/src/css/nsJSCSSPageRule.cpp | 35 +- mozilla/dom/src/css/nsJSCSSRule.cpp | 35 +- .../dom/src/css/nsJSCSSStyleDeclaration.cpp | 41 +- mozilla/dom/src/css/nsJSCSSStyleRule.cpp | 35 +- .../src/css/nsJSCSSStyleRuleCollection.cpp | 31 +- mozilla/dom/src/css/nsJSCSSStyleSheet.cpp | 43 +- mozilla/dom/src/css/nsJSCSSUnknownRule.cpp | 27 +- mozilla/dom/src/events/nsJSEvent.cpp | 47 +- mozilla/dom/src/events/nsJSKeyEvent.cpp | 57 +- mozilla/dom/src/events/nsJSUIEvent.cpp | 53 +- .../dom/src/html/nsJSHTMLAnchorElement.cpp | 79 +- .../dom/src/html/nsJSHTMLAppletElement.cpp | 71 +- mozilla/dom/src/html/nsJSHTMLAreaElement.cpp | 59 +- mozilla/dom/src/html/nsJSHTMLBRElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLBaseElement.cpp | 35 +- .../dom/src/html/nsJSHTMLBaseFontElement.cpp | 39 +- mozilla/dom/src/html/nsJSHTMLBodyElement.cpp | 51 +- .../dom/src/html/nsJSHTMLButtonElement.cpp | 55 +- mozilla/dom/src/html/nsJSHTMLCollection.cpp | 33 +- mozilla/dom/src/html/nsJSHTMLDListElement.cpp | 31 +- .../dom/src/html/nsJSHTMLDirectoryElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLDivElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLDocument.cpp | 107 +-- mozilla/dom/src/html/nsJSHTMLElement.cpp | 49 +- mozilla/dom/src/html/nsJSHTMLEmbedElement.cpp | 51 +- .../dom/src/html/nsJSHTMLFieldSetElement.cpp | 29 +- mozilla/dom/src/html/nsJSHTMLFontElement.cpp | 39 +- mozilla/dom/src/html/nsJSHTMLFormElement.cpp | 65 +- mozilla/dom/src/html/nsJSHTMLFrameElement.cpp | 59 +- .../dom/src/html/nsJSHTMLFrameSetElement.cpp | 35 +- mozilla/dom/src/html/nsJSHTMLHRElement.cpp | 43 +- mozilla/dom/src/html/nsJSHTMLHeadElement.cpp | 31 +- .../dom/src/html/nsJSHTMLHeadingElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLHtmlElement.cpp | 31 +- .../dom/src/html/nsJSHTMLIFrameElement.cpp | 67 +- mozilla/dom/src/html/nsJSHTMLImageElement.cpp | 79 +- mozilla/dom/src/html/nsJSHTMLInputElement.cpp | 107 +-- .../dom/src/html/nsJSHTMLIsIndexElement.cpp | 33 +- mozilla/dom/src/html/nsJSHTMLLIElement.cpp | 35 +- mozilla/dom/src/html/nsJSHTMLLabelElement.cpp | 37 +- mozilla/dom/src/html/nsJSHTMLLayerElement.cpp | 57 +- .../dom/src/html/nsJSHTMLLegendElement.cpp | 37 +- mozilla/dom/src/html/nsJSHTMLLinkElement.cpp | 63 +- mozilla/dom/src/html/nsJSHTMLMapElement.cpp | 33 +- mozilla/dom/src/html/nsJSHTMLMenuElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLMetaElement.cpp | 43 +- mozilla/dom/src/html/nsJSHTMLModElement.cpp | 35 +- mozilla/dom/src/html/nsJSHTMLOListElement.cpp | 39 +- .../dom/src/html/nsJSHTMLObjectElement.cpp | 97 +- .../dom/src/html/nsJSHTMLOptGroupElement.cpp | 35 +- .../dom/src/html/nsJSHTMLOptionElement.cpp | 55 +- .../dom/src/html/nsJSHTMLParagraphElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLParamElement.cpp | 43 +- mozilla/dom/src/html/nsJSHTMLPreElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLQuoteElement.cpp | 31 +- .../dom/src/html/nsJSHTMLScriptElement.cpp | 55 +- .../dom/src/html/nsJSHTMLSelectElement.cpp | 73 +- mozilla/dom/src/html/nsJSHTMLStyleElement.cpp | 39 +- .../src/html/nsJSHTMLTableCaptionElement.cpp | 31 +- .../dom/src/html/nsJSHTMLTableCellElement.cpp | 87 +- .../dom/src/html/nsJSHTMLTableColElement.cpp | 51 +- mozilla/dom/src/html/nsJSHTMLTableElement.cpp | 95 +- .../dom/src/html/nsJSHTMLTableRowElement.cpp | 63 +- .../src/html/nsJSHTMLTableSectionElement.cpp | 49 +- .../dom/src/html/nsJSHTMLTextAreaElement.cpp | 75 +- mozilla/dom/src/html/nsJSHTMLTitleElement.cpp | 31 +- mozilla/dom/src/html/nsJSHTMLUListElement.cpp | 35 +- mozilla/dom/src/range/nsJSRange.cpp | 77 +- mozilla/dom/src/range/nsJSSelection.cpp | 67 +- .../dom/src/range/nsJSSelectionListener.cpp | 29 +- .../dom/src/xul/nsJSXULCommandDispatcher.cpp | 41 +- mozilla/dom/src/xul/nsJSXULDocument.cpp | 43 +- mozilla/dom/src/xul/nsJSXULElement.cpp | 53 +- mozilla/dom/src/xul/nsJSXULTreeElement.cpp | 59 +- mozilla/dom/tools/JSStubGen.cpp | 37 +- mozilla/modules/libpref/src/init/all.js | 48 +- .../public/nsIDOMXULCommandDispatcher.h | 26 +- .../rdf/content/public/nsIDOMXULDocument.h | 26 +- .../content/public/nsIDOMXULEditorElement.h | 26 +- mozilla/rdf/content/public/nsIDOMXULElement.h | 26 +- .../rdf/content/public/nsIDOMXULTreeElement.h | 26 +- .../content/src/nsJSXULCommandDispatcher.cpp | 41 +- mozilla/rdf/content/src/nsJSXULDocument.cpp | 43 +- .../rdf/content/src/nsJSXULEditorElement.cpp | 29 +- mozilla/rdf/content/src/nsJSXULElement.cpp | 53 +- .../rdf/content/src/nsJSXULTreeElement.cpp | 59 +- .../AppCores/public/nsIDOMAppCoresManager.h | 26 +- .../xpfe/AppCores/public/nsIDOMBaseAppCore.h | 26 +- .../xpfe/AppCores/public/nsIDOMToolkitCore.h | 26 +- .../xpfe/AppCores/src/nsJSAppCoresManager.cpp | 110 +-- mozilla/xpfe/AppCores/src/nsJSBaseAppCore.cpp | 75 +- mozilla/xpfe/AppCores/src/nsJSToolkitCore.cpp | 122 ++- 261 files changed, 5385 insertions(+), 5294 deletions(-) create mode 100644 mozilla/caps/README.html create mode 100644 mozilla/dom/public/nsDOMPropEnums.h diff --git a/mozilla/caps/README.html b/mozilla/caps/README.html new file mode 100644 index 00000000000..0479b15c4d5 --- /dev/null +++ b/mozilla/caps/README.html @@ -0,0 +1,45 @@ + + + +

+ +certificate and security management

+ +

+ +caps contains C++ interfaces and code for determining the capabilities +of content based on the security settings and certificates (e.g. Verisign). + + + diff --git a/mozilla/caps/idl/nsIScriptSecurityManager.idl b/mozilla/caps/idl/nsIScriptSecurityManager.idl index d743446dd05..b4c469528cb 100644 --- a/mozilla/caps/idl/nsIScriptSecurityManager.idl +++ b/mozilla/caps/idl/nsIScriptSecurityManager.idl @@ -35,12 +35,12 @@ interface nsIScriptSecurityManager : nsISupports * * @param cx The current active script context * @param obj The object that is being accessed - * @param prop The property being accessed + * @param prop The ordinal of the property being accessed (see nsDOMPropEnums.h) * @param isWrite True if write access is being attempted * @return True if access is granted */ boolean CheckScriptAccess(in nsIScriptContext cx, in voidStar obj, - [const] in string prop, in boolean isWrite); + in long prop, in boolean isWrite); /** * Check that the script with context "cx" can load "uri". diff --git a/mozilla/caps/include/nsScriptSecurityManager.h b/mozilla/caps/include/nsScriptSecurityManager.h index f5e92c99469..51e410d4108 100644 --- a/mozilla/caps/include/nsScriptSecurityManager.h +++ b/mozilla/caps/include/nsScriptSecurityManager.h @@ -27,8 +27,7 @@ #include "jsapi.h" #include "nsIXPCSecurityManager.h" #include "nsHashtable.h" - -enum { DOMPROP_MAX=892 }; +#include "nsDOMPropEnums.h" #define NS_SCRIPTSECURITYMANAGER_CID \ { 0x7ee2a4c0, 0x4b93, 0x17d3, \ @@ -69,11 +68,11 @@ private: CheckPermissions(JSContext *aCx, JSObject *aObj, const char *aCapability, PRBool* result); PRInt32 - GetSecurityLevel(JSContext *cx, char *prop_name, PolicyType type, + GetSecurityLevel(JSContext *cx, nsDOMProp domProp, PolicyType type, PRBool isWrite, char **capability); NS_IMETHOD - GetPrefName(JSContext *cx, char *propName, PolicyType type, + GetPrefName(JSContext *cx, nsDOMProp domProp, PolicyType type, char **result); NS_IMETHOD @@ -84,7 +83,7 @@ private: nsIPrincipal *mSystemPrincipal; nsSupportsHashtable *mPrincipals; - PolicyType domPropertyPolicyTypes[DOMPROP_MAX]; + PolicyType domPropertyPolicyTypes[NS_DOM_PROP_MAX]; }; #endif /*_NS_SCRIPT_SECURITY_MANAGER_H_*/ diff --git a/mozilla/caps/src/nsScriptSecurityManager.cpp b/mozilla/caps/src/nsScriptSecurityManager.cpp index bad1fa4a097..f46f7ba5230 100644 --- a/mozilla/caps/src/nsScriptSecurityManager.cpp +++ b/mozilla/caps/src/nsScriptSecurityManager.cpp @@ -65,7 +65,7 @@ GetCurrentContext() { return cx; } -static PRInt16 +static nsDOMProp findDomProp(const char *propName, int n); ///////////////////// @@ -332,12 +332,11 @@ NS_IMPL_RELEASE(nsScriptSecurityManager); NS_IMETHODIMP nsScriptSecurityManager::CheckScriptAccess(nsIScriptContext *aContext, - void *aObj, const char *aProp, + void *aObj, PRInt32 domPropInt, PRBool isWrite, PRBool *aResult) { + nsDOMProp domProp = (nsDOMProp) domPropInt; *aResult = PR_FALSE; - PRInt16 domProp = findDomProp(aProp, PL_strlen(aProp)); - NS_ASSERTION(domProp > 0, "dom prop not found"); PolicyType type = domPropertyPolicyTypes[domProp]; if (type == POLICY_TYPE_NONE) { *aResult = PR_TRUE; @@ -345,7 +344,7 @@ nsScriptSecurityManager::CheckScriptAccess(nsIScriptContext *aContext, } JSContext *cx = (JSContext *)aContext->GetNativeContext(); nsXPIDLCString capability; - PRInt32 secLevel = GetSecurityLevel(cx, (char *) aProp, type, isWrite, + PRInt32 secLevel = GetSecurityLevel(cx, domProp, type, isWrite, getter_Copies(capability)); switch (secLevel) { case SCRIPT_SECURITY_ALL_ACCESS: @@ -948,14 +947,12 @@ nsScriptSecurityManager::CheckPermissions(JSContext *aCx, JSObject *aObj, PRInt32 -nsScriptSecurityManager::GetSecurityLevel(JSContext *cx, char *propName, +nsScriptSecurityManager::GetSecurityLevel(JSContext *cx, nsDOMProp domProp, PolicyType type, PRBool isWrite, char **capability) { - if (propName == nsnull) - return SCRIPT_SECURITY_NO_ACCESS; nsXPIDLCString prefName; - if (NS_FAILED(GetPrefName(cx, propName, type, getter_Copies(prefName)))) + if (NS_FAILED(GetPrefName(cx, domProp, type, getter_Copies(prefName)))) return SCRIPT_SECURITY_NO_ACCESS; PRInt32 secLevel; char *secLevelString; @@ -999,50 +996,6 @@ nsScriptSecurityManager::GetSecurityLevel(JSContext *cx, char *propName, } -NS_IMETHODIMP -nsScriptSecurityManager::GetPrefName(JSContext *cx, char *propName, - PolicyType type, char **result) -{ - nsresult rv; - static const char *defaultStr = "default"; - nsAutoString s = "security.policy."; - if (type == POLICY_TYPE_DEFAULT) { - s += defaultStr; - } else if (type == POLICY_TYPE_PERDOMAIN) { - nsCOMPtr principal; - if (NS_FAILED(GetSubjectPrincipal(cx, getter_AddRefs(principal)))) { - return NS_ERROR_FAILURE; - } - PRBool equals; - if (NS_FAILED(principal->Equals(mSystemPrincipal, &equals))) - return NS_ERROR_FAILURE; - if (equals) { - s += defaultStr; - } else { - nsCOMPtr codebase = do_QueryInterface(principal, &rv); - if (NS_FAILED(rv)) - return rv; - nsXPIDLCString origin; - if (NS_FAILED(rv = codebase->GetOrigin(getter_Copies(origin)))) - return rv; - nsCString *policy = nsnull; - if (mOriginToPolicyMap) { - nsStringKey key(origin); - policy = (nsCString *) mOriginToPolicyMap->Get(&key); - } - if (policy) - s += *policy; - else - s += defaultStr; - } - } - s += '.'; - s += propName; - *result = s.ToNewCString(); - return *result ? NS_OK : NS_ERROR_OUT_OF_MEMORY; -} - - NS_IMETHODIMP nsScriptSecurityManager::CheckXPCPermissions(JSContext *aJSContext) { @@ -1071,7 +1024,7 @@ nsScriptSecurityManager::CheckXPCPermissions(JSContext *aJSContext) return NS_OK; } -static char *domPropNames[DOMPROP_MAX] = { +static char *domPropNames[NS_DOM_PROP_MAX] = { "appcoresmanager.add", "appcoresmanager.find", "appcoresmanager.remove", @@ -1084,36 +1037,6 @@ static char *domPropNames[DOMPROP_MAX] = { "baseappcore.id", "baseappcore.init", "baseappcore.setdocumentcharset", - "browserappcore.back", - "browserappcore.backbuttonpopup", - "browserappcore.close", - "browserappcore.cookieviewer", - "browserappcore.copy", - "browserappcore.exit", - "browserappcore.find", - "browserappcore.findnext", - "browserappcore.forward", - "browserappcore.forwardbuttonpopup", - "browserappcore.gotohistoryindex", - "browserappcore.loadinitialpage", - "browserappcore.loadurl", - "browserappcore.newwindow", - "browserappcore.openwindow", - "browserappcore.print", - "browserappcore.printpreview", - "browserappcore.reload", - "browserappcore.selectall", - "browserappcore.setcontentwindow", - "browserappcore.settoolbarwindow", - "browserappcore.setwebshellwindow", - "browserappcore.signonviewer", - "browserappcore.stop", - "browserappcore.walletchangepassword", - "browserappcore.walleteditor", - "browserappcore.walletpreview", - "browserappcore.walletquickfillin", - "browserappcore.walletrequesttocapture", - "browserappcore.walletsamples", "characterdata.appenddata", "characterdata.data", "characterdata.deletedata", @@ -1652,6 +1575,7 @@ static char *domPropNames[DOMPROP_MAX] = { "htmltextareaelement.accesskey", "htmltextareaelement.blur", "htmltextareaelement.cols", + "htmltextareaelement.controllers", "htmltextareaelement.defaultvalue", "htmltextareaelement.disabled", "htmltextareaelement.focus", @@ -1966,7 +1890,51 @@ static char *domPropNames[DOMPROP_MAX] = { "xultreeelement.toggleitemselection", }; -static PRInt16 + +NS_IMETHODIMP +nsScriptSecurityManager::GetPrefName(JSContext *cx, nsDOMProp domProp, + PolicyType type, char **result) +{ + nsresult rv; + static const char *defaultStr = "default"; + nsAutoString s = "security.policy."; + if (type == POLICY_TYPE_DEFAULT) { + s += defaultStr; + } else if (type == POLICY_TYPE_PERDOMAIN) { + nsCOMPtr principal; + if (NS_FAILED(GetSubjectPrincipal(cx, getter_AddRefs(principal)))) { + return NS_ERROR_FAILURE; + } + PRBool equals; + if (NS_FAILED(principal->Equals(mSystemPrincipal, &equals))) + return NS_ERROR_FAILURE; + if (equals) { + s += defaultStr; + } else { + nsCOMPtr codebase = do_QueryInterface(principal, &rv); + if (NS_FAILED(rv)) + return rv; + nsXPIDLCString origin; + if (NS_FAILED(rv = codebase->GetOrigin(getter_Copies(origin)))) + return rv; + nsCString *policy = nsnull; + if (mOriginToPolicyMap) { + nsStringKey key(origin); + policy = (nsCString *) mOriginToPolicyMap->Get(&key); + } + if (policy) + s += *policy; + else + s += defaultStr; + } + } + s += '.'; + s += domPropNames[domProp]; + *result = s.ToNewCString(); + return *result ? NS_OK : NS_ERROR_OUT_OF_MEMORY; +} + +static nsDOMProp findDomProp(const char *propName, int n) { int hi = sizeof(domPropNames)/sizeof(domPropNames[0]) - 1; @@ -1975,15 +1943,15 @@ findDomProp(const char *propName, int n) int mid = (hi + lo) / 2; int cmp = PL_strncmp(propName, domPropNames[mid], n); if (cmp == 0) - return mid; + return (nsDOMProp) mid; if (cmp < 0) hi = mid - 1; else lo = mid + 1; } while (hi > lo); if (PL_strncmp(propName, domPropNames[lo], n) == 0) - return lo; - return -1; + return (nsDOMProp) lo; + return NS_DOM_PROP_MAX; } PR_STATIC_CALLBACK(PRBool) @@ -2059,8 +2027,8 @@ enumeratePolicy(const char *prefName, void *data) { // security.policy...[.read|.write] const char *domPropName = dots[2] + 1; int domPropLength = dots[4] - domPropName; - PRInt16 domProp = findDomProp(domPropName, domPropLength); - if (domProp >= 0) { + nsDOMProp domProp = findDomProp(domPropName, domPropLength); + if (domProp < NS_DOM_PROP_MAX) { nsScriptSecurityManager::PolicyType *policyType = info->policies + domProp; if (!isDefault) diff --git a/mozilla/dom/public/MANIFEST b/mozilla/dom/public/MANIFEST index 4c9e9b65cd1..be72aa76f24 100644 --- a/mozilla/dom/public/MANIFEST +++ b/mozilla/dom/public/MANIFEST @@ -30,8 +30,9 @@ nsIScriptEventListener.h nsIDOMScriptObjectFactory.h nsIDOMNativeObjectRegistry.h nsDOMCID.h +nsDOMPropEnums.h nsIScriptGlobalObjectData.h nsIScriptNameSetRegistry.h nsIScriptExternalNameSet.h nsIScriptNameSpaceManager.h -nsDOMError.h \ No newline at end of file +nsDOMError.h diff --git a/mozilla/dom/public/Makefile.in b/mozilla/dom/public/Makefile.in index 89e4413784b..ef278b4d6a6 100644 --- a/mozilla/dom/public/Makefile.in +++ b/mozilla/dom/public/Makefile.in @@ -43,6 +43,7 @@ EXPORTS = \ nsIDOMScriptObjectFactory.h \ nsIDOMNativeObjectRegistry.h \ nsDOMCID.h \ + nsDOMPropEnums.h \ nsIScriptGlobalObjectData.h \ nsIScriptNameSetRegistry.h \ nsIScriptExternalNameSet.h \ diff --git a/mozilla/dom/public/base/nsIDOMAbstractView.h b/mozilla/dom/public/base/nsIDOMAbstractView.h index 00f86bd4f15..7694ec1762e 100644 --- a/mozilla/dom/public/base/nsIDOMAbstractView.h +++ b/mozilla/dom/public/base/nsIDOMAbstractView.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMBarProp.h b/mozilla/dom/public/base/nsIDOMBarProp.h index 1b18ad431d4..c454a51c975 100644 --- a/mozilla/dom/public/base/nsIDOMBarProp.h +++ b/mozilla/dom/public/base/nsIDOMBarProp.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMDOMException.h b/mozilla/dom/public/base/nsIDOMDOMException.h index faa96ee71d4..fd87abded65 100644 --- a/mozilla/dom/public/base/nsIDOMDOMException.h +++ b/mozilla/dom/public/base/nsIDOMDOMException.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMHistory.h b/mozilla/dom/public/base/nsIDOMHistory.h index c021cad8989..ddfa162e740 100644 --- a/mozilla/dom/public/base/nsIDOMHistory.h +++ b/mozilla/dom/public/base/nsIDOMHistory.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMLocation.h b/mozilla/dom/public/base/nsIDOMLocation.h index f702d8b9180..3593ae18b33 100644 --- a/mozilla/dom/public/base/nsIDOMLocation.h +++ b/mozilla/dom/public/base/nsIDOMLocation.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMMimeType.h b/mozilla/dom/public/base/nsIDOMMimeType.h index f13c8f2a922..b18433427d9 100644 --- a/mozilla/dom/public/base/nsIDOMMimeType.h +++ b/mozilla/dom/public/base/nsIDOMMimeType.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMMimeTypeArray.h b/mozilla/dom/public/base/nsIDOMMimeTypeArray.h index 3db24d02dd9..2b3e3a4cff4 100644 --- a/mozilla/dom/public/base/nsIDOMMimeTypeArray.h +++ b/mozilla/dom/public/base/nsIDOMMimeTypeArray.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMNSLocation.h b/mozilla/dom/public/base/nsIDOMNSLocation.h index 4fa69dc6fea..72afb8b0cbf 100644 --- a/mozilla/dom/public/base/nsIDOMNSLocation.h +++ b/mozilla/dom/public/base/nsIDOMNSLocation.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMNavigator.h b/mozilla/dom/public/base/nsIDOMNavigator.h index 816d0d6184f..bdd6b31b22d 100644 --- a/mozilla/dom/public/base/nsIDOMNavigator.h +++ b/mozilla/dom/public/base/nsIDOMNavigator.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMPlugin.h b/mozilla/dom/public/base/nsIDOMPlugin.h index f2e0ad6a236..ebe3017062f 100644 --- a/mozilla/dom/public/base/nsIDOMPlugin.h +++ b/mozilla/dom/public/base/nsIDOMPlugin.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMPluginArray.h b/mozilla/dom/public/base/nsIDOMPluginArray.h index 7506e682453..5d5b972a513 100644 --- a/mozilla/dom/public/base/nsIDOMPluginArray.h +++ b/mozilla/dom/public/base/nsIDOMPluginArray.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMScreen.h b/mozilla/dom/public/base/nsIDOMScreen.h index b99f7fb6537..fc495beacfd 100644 --- a/mozilla/dom/public/base/nsIDOMScreen.h +++ b/mozilla/dom/public/base/nsIDOMScreen.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMWindow.h b/mozilla/dom/public/base/nsIDOMWindow.h index a647d53b94c..14454b75850 100644 --- a/mozilla/dom/public/base/nsIDOMWindow.h +++ b/mozilla/dom/public/base/nsIDOMWindow.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/base/nsIDOMWindowCollection.h b/mozilla/dom/public/base/nsIDOMWindowCollection.h index 16a77c2f17b..ad809d33973 100644 --- a/mozilla/dom/public/base/nsIDOMWindowCollection.h +++ b/mozilla/dom/public/base/nsIDOMWindowCollection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMAttr.h b/mozilla/dom/public/coreDom/nsIDOMAttr.h index bdd79546fb5..3430db51b02 100644 --- a/mozilla/dom/public/coreDom/nsIDOMAttr.h +++ b/mozilla/dom/public/coreDom/nsIDOMAttr.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMCDATASection.h b/mozilla/dom/public/coreDom/nsIDOMCDATASection.h index 277bfe2fd9f..3132b293194 100644 --- a/mozilla/dom/public/coreDom/nsIDOMCDATASection.h +++ b/mozilla/dom/public/coreDom/nsIDOMCDATASection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMCharacterData.h b/mozilla/dom/public/coreDom/nsIDOMCharacterData.h index 52db7ae01da..b42244d69fa 100644 --- a/mozilla/dom/public/coreDom/nsIDOMCharacterData.h +++ b/mozilla/dom/public/coreDom/nsIDOMCharacterData.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMComment.h b/mozilla/dom/public/coreDom/nsIDOMComment.h index 0a8dedb81ae..8f1dca0d590 100644 --- a/mozilla/dom/public/coreDom/nsIDOMComment.h +++ b/mozilla/dom/public/coreDom/nsIDOMComment.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h b/mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h index 1c283ef2ca5..2447dba1d5a 100644 --- a/mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h +++ b/mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMDocument.h b/mozilla/dom/public/coreDom/nsIDOMDocument.h index d543886abd7..b5773d19290 100644 --- a/mozilla/dom/public/coreDom/nsIDOMDocument.h +++ b/mozilla/dom/public/coreDom/nsIDOMDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h b/mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h index f8d542e2bce..4886952ae27 100644 --- a/mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h +++ b/mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMDocumentType.h b/mozilla/dom/public/coreDom/nsIDOMDocumentType.h index ada73666e81..fa869e27be7 100644 --- a/mozilla/dom/public/coreDom/nsIDOMDocumentType.h +++ b/mozilla/dom/public/coreDom/nsIDOMDocumentType.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMElement.h b/mozilla/dom/public/coreDom/nsIDOMElement.h index 60e117ee373..c149f1b7e86 100644 --- a/mozilla/dom/public/coreDom/nsIDOMElement.h +++ b/mozilla/dom/public/coreDom/nsIDOMElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMEntity.h b/mozilla/dom/public/coreDom/nsIDOMEntity.h index a1baf82e208..808a72d49c1 100644 --- a/mozilla/dom/public/coreDom/nsIDOMEntity.h +++ b/mozilla/dom/public/coreDom/nsIDOMEntity.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMEntityReference.h b/mozilla/dom/public/coreDom/nsIDOMEntityReference.h index ec7485290d0..149348a8feb 100644 --- a/mozilla/dom/public/coreDom/nsIDOMEntityReference.h +++ b/mozilla/dom/public/coreDom/nsIDOMEntityReference.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMNSDocument.h b/mozilla/dom/public/coreDom/nsIDOMNSDocument.h index 17f1901c271..96d8d7f3897 100644 --- a/mozilla/dom/public/coreDom/nsIDOMNSDocument.h +++ b/mozilla/dom/public/coreDom/nsIDOMNSDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h b/mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h index 01bb21f4451..ebf46a845d6 100644 --- a/mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h +++ b/mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMNode.h b/mozilla/dom/public/coreDom/nsIDOMNode.h index f8c96a51907..1734ecdefe3 100644 --- a/mozilla/dom/public/coreDom/nsIDOMNode.h +++ b/mozilla/dom/public/coreDom/nsIDOMNode.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMNodeList.h b/mozilla/dom/public/coreDom/nsIDOMNodeList.h index 52d43283206..cf0b361674f 100644 --- a/mozilla/dom/public/coreDom/nsIDOMNodeList.h +++ b/mozilla/dom/public/coreDom/nsIDOMNodeList.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMNotation.h b/mozilla/dom/public/coreDom/nsIDOMNotation.h index bbc19c0e6c3..65c95292425 100644 --- a/mozilla/dom/public/coreDom/nsIDOMNotation.h +++ b/mozilla/dom/public/coreDom/nsIDOMNotation.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h b/mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h index e7be4076fdb..1675eae2556 100644 --- a/mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h +++ b/mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMStyleSheet.h b/mozilla/dom/public/coreDom/nsIDOMStyleSheet.h index 1466e666439..cc154d1c48e 100644 --- a/mozilla/dom/public/coreDom/nsIDOMStyleSheet.h +++ b/mozilla/dom/public/coreDom/nsIDOMStyleSheet.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h b/mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h index acea8a1c9f3..459dae0ebd7 100644 --- a/mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h +++ b/mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreDom/nsIDOMText.h b/mozilla/dom/public/coreDom/nsIDOMText.h index fa6e69ef86f..92ab3be3f98 100644 --- a/mozilla/dom/public/coreDom/nsIDOMText.h +++ b/mozilla/dom/public/coreDom/nsIDOMText.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMEvent.h b/mozilla/dom/public/coreEvents/nsIDOMEvent.h index b0d1c421dc8..ec9f83109a2 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMEvent.h +++ b/mozilla/dom/public/coreEvents/nsIDOMEvent.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMEventTarget.h b/mozilla/dom/public/coreEvents/nsIDOMEventTarget.h index 58d963630ae..ba45feddda8 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMEventTarget.h +++ b/mozilla/dom/public/coreEvents/nsIDOMEventTarget.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h b/mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h index d282623f201..ad0c01498bb 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h +++ b/mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h b/mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h index 12083673967..899004ad3da 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h +++ b/mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h b/mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h index 4f3a9b5d345..a43c2323c7b 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h +++ b/mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/coreEvents/nsIDOMUIEvent.h b/mozilla/dom/public/coreEvents/nsIDOMUIEvent.h index 1cf42ed1e1c..af59adb6ca7 100644 --- a/mozilla/dom/public/coreEvents/nsIDOMUIEvent.h +++ b/mozilla/dom/public/coreEvents/nsIDOMUIEvent.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSS2Properties.h b/mozilla/dom/public/css/nsIDOMCSS2Properties.h index 9c73ce81809..3b681e498c0 100644 --- a/mozilla/dom/public/css/nsIDOMCSS2Properties.h +++ b/mozilla/dom/public/css/nsIDOMCSS2Properties.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h b/mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h index c8863e100d7..0c41bb14c0c 100644 --- a/mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSImportRule.h b/mozilla/dom/public/css/nsIDOMCSSImportRule.h index 59a1ed18c84..6271582f025 100644 --- a/mozilla/dom/public/css/nsIDOMCSSImportRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSImportRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSMediaRule.h b/mozilla/dom/public/css/nsIDOMCSSMediaRule.h index ee311314856..6d338a58338 100644 --- a/mozilla/dom/public/css/nsIDOMCSSMediaRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSMediaRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSPageRule.h b/mozilla/dom/public/css/nsIDOMCSSPageRule.h index 3cee41a5696..f02399bacbd 100644 --- a/mozilla/dom/public/css/nsIDOMCSSPageRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSPageRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSRule.h b/mozilla/dom/public/css/nsIDOMCSSRule.h index 95d8b2bdac2..04c1244798f 100644 --- a/mozilla/dom/public/css/nsIDOMCSSRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSStyleDeclaration.h b/mozilla/dom/public/css/nsIDOMCSSStyleDeclaration.h index 898233ece90..321b3465fc4 100644 --- a/mozilla/dom/public/css/nsIDOMCSSStyleDeclaration.h +++ b/mozilla/dom/public/css/nsIDOMCSSStyleDeclaration.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSStyleRule.h b/mozilla/dom/public/css/nsIDOMCSSStyleRule.h index 99ed5e151b1..2fb39f46afe 100644 --- a/mozilla/dom/public/css/nsIDOMCSSStyleRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSStyleRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSStyleRuleCollection.h b/mozilla/dom/public/css/nsIDOMCSSStyleRuleCollection.h index 361d4f3513c..d0ab1676017 100644 --- a/mozilla/dom/public/css/nsIDOMCSSStyleRuleCollection.h +++ b/mozilla/dom/public/css/nsIDOMCSSStyleRuleCollection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSStyleSheet.h b/mozilla/dom/public/css/nsIDOMCSSStyleSheet.h index 19327b67bc0..ebee01b2fdf 100644 --- a/mozilla/dom/public/css/nsIDOMCSSStyleSheet.h +++ b/mozilla/dom/public/css/nsIDOMCSSStyleSheet.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/css/nsIDOMCSSUnknownRule.h b/mozilla/dom/public/css/nsIDOMCSSUnknownRule.h index 4d16b0b53d6..8bb7dd9fb72 100644 --- a/mozilla/dom/public/css/nsIDOMCSSUnknownRule.h +++ b/mozilla/dom/public/css/nsIDOMCSSUnknownRule.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLAnchorElement.h b/mozilla/dom/public/html/nsIDOMHTMLAnchorElement.h index 56352b00ec2..21afdd83978 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLAnchorElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLAnchorElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLAppletElement.h b/mozilla/dom/public/html/nsIDOMHTMLAppletElement.h index fd8eeafa3fe..5e6fc481bed 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLAppletElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLAppletElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLAreaElement.h b/mozilla/dom/public/html/nsIDOMHTMLAreaElement.h index 8d4083091f5..e43b626aeff 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLAreaElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLAreaElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLBRElement.h b/mozilla/dom/public/html/nsIDOMHTMLBRElement.h index c00d071a05d..97f2beeddf9 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLBRElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLBRElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLBaseElement.h b/mozilla/dom/public/html/nsIDOMHTMLBaseElement.h index 5742ba174a4..879a82fb8a7 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLBaseElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLBaseElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLBaseFontElement.h b/mozilla/dom/public/html/nsIDOMHTMLBaseFontElement.h index c2abdba5a7c..3a1c988d9fc 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLBaseFontElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLBaseFontElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLBodyElement.h b/mozilla/dom/public/html/nsIDOMHTMLBodyElement.h index 1795a43f47b..128ea889c65 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLBodyElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLBodyElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLButtonElement.h b/mozilla/dom/public/html/nsIDOMHTMLButtonElement.h index 41ecc6b519b..15409eb8103 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLButtonElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLButtonElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLCollection.h b/mozilla/dom/public/html/nsIDOMHTMLCollection.h index 9f943db8dad..38d3cf74073 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLCollection.h +++ b/mozilla/dom/public/html/nsIDOMHTMLCollection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLDListElement.h b/mozilla/dom/public/html/nsIDOMHTMLDListElement.h index 01f0dd4d3db..363118f50a8 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLDListElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLDListElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLDirectoryElement.h b/mozilla/dom/public/html/nsIDOMHTMLDirectoryElement.h index a1ddde4a438..9d6daea31b8 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLDirectoryElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLDirectoryElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLDivElement.h b/mozilla/dom/public/html/nsIDOMHTMLDivElement.h index 0b3edcc5ed6..c46640b8b8e 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLDivElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLDivElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLDocument.h b/mozilla/dom/public/html/nsIDOMHTMLDocument.h index a8859b8c799..49b4cdf5330 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLDocument.h +++ b/mozilla/dom/public/html/nsIDOMHTMLDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLElement.h b/mozilla/dom/public/html/nsIDOMHTMLElement.h index dcae01b3861..8aecdadd40f 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLEmbedElement.h b/mozilla/dom/public/html/nsIDOMHTMLEmbedElement.h index 568e81ec2a2..cc94fca8ff5 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLEmbedElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLEmbedElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLFieldSetElement.h b/mozilla/dom/public/html/nsIDOMHTMLFieldSetElement.h index b6788369fe8..0fa92b4ef44 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLFieldSetElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLFieldSetElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLFontElement.h b/mozilla/dom/public/html/nsIDOMHTMLFontElement.h index ab0a8879930..865d10bd81f 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLFontElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLFontElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLFormElement.h b/mozilla/dom/public/html/nsIDOMHTMLFormElement.h index 0d21a46da7f..cba7a71b4a8 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLFormElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLFormElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLFrameElement.h b/mozilla/dom/public/html/nsIDOMHTMLFrameElement.h index 8c6dafca695..440ee975390 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLFrameElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLFrameElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLFrameSetElement.h b/mozilla/dom/public/html/nsIDOMHTMLFrameSetElement.h index 4a6370ce7de..94af6de5394 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLFrameSetElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLFrameSetElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLHRElement.h b/mozilla/dom/public/html/nsIDOMHTMLHRElement.h index 40ec965342b..9a38b11ff2d 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLHRElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLHRElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLHeadElement.h b/mozilla/dom/public/html/nsIDOMHTMLHeadElement.h index af538154c0a..83979e8643e 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLHeadElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLHeadElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLHeadingElement.h b/mozilla/dom/public/html/nsIDOMHTMLHeadingElement.h index ff4dc598b2d..dd3f29af625 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLHeadingElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLHeadingElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLHtmlElement.h b/mozilla/dom/public/html/nsIDOMHTMLHtmlElement.h index d9dd3c6ab36..f646e8fc839 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLHtmlElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLHtmlElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLIFrameElement.h b/mozilla/dom/public/html/nsIDOMHTMLIFrameElement.h index 324a1660974..77a1e449849 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLIFrameElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLIFrameElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLImageElement.h b/mozilla/dom/public/html/nsIDOMHTMLImageElement.h index 0fb6962289f..6984f3a1534 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLImageElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLImageElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLInputElement.h b/mozilla/dom/public/html/nsIDOMHTMLInputElement.h index 5e19f1c5000..2a7b52177d6 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLInputElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLInputElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLIsIndexElement.h b/mozilla/dom/public/html/nsIDOMHTMLIsIndexElement.h index 9b316f3efcb..643914a7884 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLIsIndexElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLIsIndexElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLLIElement.h b/mozilla/dom/public/html/nsIDOMHTMLLIElement.h index f7cc7b895dc..d8051223172 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLLIElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLLIElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLLabelElement.h b/mozilla/dom/public/html/nsIDOMHTMLLabelElement.h index afdf9d7483a..1b15c4336e2 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLLabelElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLLabelElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLLayerElement.h b/mozilla/dom/public/html/nsIDOMHTMLLayerElement.h index efad0d6d258..9fb09adca16 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLLayerElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLLayerElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLLegendElement.h b/mozilla/dom/public/html/nsIDOMHTMLLegendElement.h index 6b7c893c045..91e7ae179b5 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLLegendElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLLegendElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLLinkElement.h b/mozilla/dom/public/html/nsIDOMHTMLLinkElement.h index e617b6cf6ef..bd0c03ef796 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLLinkElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLLinkElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLMapElement.h b/mozilla/dom/public/html/nsIDOMHTMLMapElement.h index 36ff67f1b6a..5b502795213 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLMapElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLMapElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLMenuElement.h b/mozilla/dom/public/html/nsIDOMHTMLMenuElement.h index 77a5948a799..a036e075af6 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLMenuElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLMenuElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLMetaElement.h b/mozilla/dom/public/html/nsIDOMHTMLMetaElement.h index b4ff801fb65..46b4d2e23f3 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLMetaElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLMetaElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLModElement.h b/mozilla/dom/public/html/nsIDOMHTMLModElement.h index 671d7ed056a..8eacb98675c 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLModElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLModElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLOListElement.h b/mozilla/dom/public/html/nsIDOMHTMLOListElement.h index 102e65448bc..1caca7089a5 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLOListElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLOListElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLObjectElement.h b/mozilla/dom/public/html/nsIDOMHTMLObjectElement.h index 06166ff86bb..273598c5ddc 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLObjectElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLObjectElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLOptGroupElement.h b/mozilla/dom/public/html/nsIDOMHTMLOptGroupElement.h index a3c6508c107..4dea99c1707 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLOptGroupElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLOptGroupElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLOptionElement.h b/mozilla/dom/public/html/nsIDOMHTMLOptionElement.h index 8bac5b0a771..0cd3af703f0 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLOptionElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLOptionElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLParagraphElement.h b/mozilla/dom/public/html/nsIDOMHTMLParagraphElement.h index 35a03a82f07..aa1e00f1518 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLParagraphElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLParagraphElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLParamElement.h b/mozilla/dom/public/html/nsIDOMHTMLParamElement.h index cf8e3bb28ef..c469ec53787 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLParamElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLParamElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLPreElement.h b/mozilla/dom/public/html/nsIDOMHTMLPreElement.h index 76ef4439839..f8af7c2a832 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLPreElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLPreElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLQuoteElement.h b/mozilla/dom/public/html/nsIDOMHTMLQuoteElement.h index 3cd27fe811f..275e7f2ecf4 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLQuoteElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLQuoteElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLScriptElement.h b/mozilla/dom/public/html/nsIDOMHTMLScriptElement.h index 1268aeb4148..377f5bf2ef3 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLScriptElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLScriptElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLSelectElement.h b/mozilla/dom/public/html/nsIDOMHTMLSelectElement.h index b2666e438af..55e63865ce5 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLSelectElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLSelectElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLStyleElement.h b/mozilla/dom/public/html/nsIDOMHTMLStyleElement.h index 583103c640e..0da02fbf4fa 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLStyleElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLStyleElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableCaptionElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableCaptionElement.h index 4ec5e23ea32..5e22655bd91 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableCaptionElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableCaptionElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableCellElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableCellElement.h index ba34e5eb7a3..a4c772170ed 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableCellElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableCellElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableColElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableColElement.h index fc821d700a4..83737b3dbf8 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableColElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableColElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableElement.h index 55f6b78d148..312a07903de 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableRowElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableRowElement.h index 2b39406cb7d..0238b4b38bd 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableRowElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableRowElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTableSectionElement.h b/mozilla/dom/public/html/nsIDOMHTMLTableSectionElement.h index 3f9a44827f3..d3a0a5ffff2 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTableSectionElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTableSectionElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTextAreaElement.h b/mozilla/dom/public/html/nsIDOMHTMLTextAreaElement.h index 1a7792901dd..0f1a296fb33 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTextAreaElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTextAreaElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLTitleElement.h b/mozilla/dom/public/html/nsIDOMHTMLTitleElement.h index 4c2dbfacdca..5b59e5e05a7 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLTitleElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLTitleElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMHTMLUListElement.h b/mozilla/dom/public/html/nsIDOMHTMLUListElement.h index 46027615fd8..5afe184750b 100644 --- a/mozilla/dom/public/html/nsIDOMHTMLUListElement.h +++ b/mozilla/dom/public/html/nsIDOMHTMLUListElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMImage.h b/mozilla/dom/public/html/nsIDOMImage.h index 6e09e86e389..4e9938545fe 100644 --- a/mozilla/dom/public/html/nsIDOMImage.h +++ b/mozilla/dom/public/html/nsIDOMImage.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMNSHTMLButtonElement.h b/mozilla/dom/public/html/nsIDOMNSHTMLButtonElement.h index 31489bdbae4..23a951d2312 100644 --- a/mozilla/dom/public/html/nsIDOMNSHTMLButtonElement.h +++ b/mozilla/dom/public/html/nsIDOMNSHTMLButtonElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMNSHTMLDocument.h b/mozilla/dom/public/html/nsIDOMNSHTMLDocument.h index 28fc020ccb4..fa0a4ec4963 100644 --- a/mozilla/dom/public/html/nsIDOMNSHTMLDocument.h +++ b/mozilla/dom/public/html/nsIDOMNSHTMLDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMNSHTMLFormElement.h b/mozilla/dom/public/html/nsIDOMNSHTMLFormElement.h index 736cf9ba467..4bfe0f7eafd 100644 --- a/mozilla/dom/public/html/nsIDOMNSHTMLFormElement.h +++ b/mozilla/dom/public/html/nsIDOMNSHTMLFormElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMNSHTMLSelectElement.h b/mozilla/dom/public/html/nsIDOMNSHTMLSelectElement.h index 307e585fb53..7851e67fd22 100644 --- a/mozilla/dom/public/html/nsIDOMNSHTMLSelectElement.h +++ b/mozilla/dom/public/html/nsIDOMNSHTMLSelectElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/html/nsIDOMOption.h b/mozilla/dom/public/html/nsIDOMOption.h index 37edd658f0c..007cea86341 100644 --- a/mozilla/dom/public/html/nsIDOMOption.h +++ b/mozilla/dom/public/html/nsIDOMOption.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/makefile.win b/mozilla/dom/public/makefile.win index 99ca230bbef..d7aa6109c1e 100644 --- a/mozilla/dom/public/makefile.win +++ b/mozilla/dom/public/makefile.win @@ -37,6 +37,7 @@ EXPORTS=nsIScriptContext.h \ nsIDOMScriptObjectFactory.h \ nsIDOMNativeObjectRegistry.h \ nsDOMCID.h \ + nsDOMPropEnums.h \ nsIScriptNameSetRegistry.h \ nsIScriptExternalNameSet.h \ nsIScriptNameSpaceManager.h \ diff --git a/mozilla/dom/public/nsDOMPropEnums.h b/mozilla/dom/public/nsDOMPropEnums.h new file mode 100644 index 00000000000..bfbaae16a4b --- /dev/null +++ b/mozilla/dom/public/nsDOMPropEnums.h @@ -0,0 +1,901 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1999 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + * Norris Boyd + */ + +/* nsDOMPropEnums.h -- an enumeration of all DOM properties used to provide +** per-property security policies +*/ + +#ifndef nsDOMPropEnums_h__ +#define nsDOMPropEnums_h__ + +// Be sure to keep this list in sync with the list of strings +// in mozilla/caps/src/nsScriptSecurityManager.cpp + +enum nsDOMProp { + NS_DOM_PROP_APPCORESMANAGER_ADD, + NS_DOM_PROP_APPCORESMANAGER_FIND, + NS_DOM_PROP_APPCORESMANAGER_REMOVE, + NS_DOM_PROP_APPCORESMANAGER_SHUTDOWN, + NS_DOM_PROP_APPCORESMANAGER_STARTUP, + NS_DOM_PROP_ATTR_NAME, + NS_DOM_PROP_ATTR_SPECIFIED, + NS_DOM_PROP_ATTR_VALUE, + NS_DOM_PROP_BARPROP_VISIBLE, + NS_DOM_PROP_BASEAPPCORE_ID, + NS_DOM_PROP_BASEAPPCORE_INIT, + NS_DOM_PROP_BASEAPPCORE_SETDOCUMENTCHARSET, + NS_DOM_PROP_CHARACTERDATA_APPENDDATA, + NS_DOM_PROP_CHARACTERDATA_DATA, + NS_DOM_PROP_CHARACTERDATA_DELETEDATA, + NS_DOM_PROP_CHARACTERDATA_INSERTDATA, + NS_DOM_PROP_CHARACTERDATA_LENGTH, + NS_DOM_PROP_CHARACTERDATA_REPLACEDATA, + NS_DOM_PROP_CHARACTERDATA_SUBSTRINGDATA, + NS_DOM_PROP_CSS2PROPERTIES_AZIMUTH, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUND, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDATTACHMENT, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDIMAGE, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDPOSITION, + NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDREPEAT, + NS_DOM_PROP_CSS2PROPERTIES_BORDER, + NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOM, + NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLLAPSE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFT, + NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHT, + NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_BORDERSPACING, + NS_DOM_PROP_CSS2PROPERTIES_BORDERSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERTOP, + NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPCOLOR, + NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_BORDERWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_BOTTOM, + NS_DOM_PROP_CSS2PROPERTIES_CAPTIONSIDE, + NS_DOM_PROP_CSS2PROPERTIES_CLEAR, + NS_DOM_PROP_CSS2PROPERTIES_CLIP, + NS_DOM_PROP_CSS2PROPERTIES_COLOR, + NS_DOM_PROP_CSS2PROPERTIES_CONTENT, + NS_DOM_PROP_CSS2PROPERTIES_COUNTERINCREMENT, + NS_DOM_PROP_CSS2PROPERTIES_COUNTERRESET, + NS_DOM_PROP_CSS2PROPERTIES_CSSFLOAT, + NS_DOM_PROP_CSS2PROPERTIES_CUE, + NS_DOM_PROP_CSS2PROPERTIES_CUEAFTER, + NS_DOM_PROP_CSS2PROPERTIES_CUEBEFORE, + NS_DOM_PROP_CSS2PROPERTIES_CURSOR, + NS_DOM_PROP_CSS2PROPERTIES_DIRECTION, + NS_DOM_PROP_CSS2PROPERTIES_DISPLAY, + NS_DOM_PROP_CSS2PROPERTIES_ELEVATION, + NS_DOM_PROP_CSS2PROPERTIES_EMPTYCELLS, + NS_DOM_PROP_CSS2PROPERTIES_FONT, + NS_DOM_PROP_CSS2PROPERTIES_FONTFAMILY, + NS_DOM_PROP_CSS2PROPERTIES_FONTSIZE, + NS_DOM_PROP_CSS2PROPERTIES_FONTSIZEADJUST, + NS_DOM_PROP_CSS2PROPERTIES_FONTSTRETCH, + NS_DOM_PROP_CSS2PROPERTIES_FONTSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_FONTVARIANT, + NS_DOM_PROP_CSS2PROPERTIES_FONTWEIGHT, + NS_DOM_PROP_CSS2PROPERTIES_HEIGHT, + NS_DOM_PROP_CSS2PROPERTIES_LEFT, + NS_DOM_PROP_CSS2PROPERTIES_LETTERSPACING, + NS_DOM_PROP_CSS2PROPERTIES_LINEHEIGHT, + NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLE, + NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEIMAGE, + NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEPOSITION, + NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLETYPE, + NS_DOM_PROP_CSS2PROPERTIES_MARGIN, + NS_DOM_PROP_CSS2PROPERTIES_MARGINBOTTOM, + NS_DOM_PROP_CSS2PROPERTIES_MARGINLEFT, + NS_DOM_PROP_CSS2PROPERTIES_MARGINRIGHT, + NS_DOM_PROP_CSS2PROPERTIES_MARGINTOP, + NS_DOM_PROP_CSS2PROPERTIES_MARKEROFFSET, + NS_DOM_PROP_CSS2PROPERTIES_MARKS, + NS_DOM_PROP_CSS2PROPERTIES_MAXHEIGHT, + NS_DOM_PROP_CSS2PROPERTIES_MAXWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_MINHEIGHT, + NS_DOM_PROP_CSS2PROPERTIES_MINWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_OPACITY, + NS_DOM_PROP_CSS2PROPERTIES_ORPHANS, + NS_DOM_PROP_CSS2PROPERTIES_OUTLINE, + NS_DOM_PROP_CSS2PROPERTIES_OUTLINECOLOR, + NS_DOM_PROP_CSS2PROPERTIES_OUTLINESTYLE, + NS_DOM_PROP_CSS2PROPERTIES_OUTLINEWIDTH, + NS_DOM_PROP_CSS2PROPERTIES_OVERFLOW, + NS_DOM_PROP_CSS2PROPERTIES_PADDING, + NS_DOM_PROP_CSS2PROPERTIES_PADDINGBOTTOM, + NS_DOM_PROP_CSS2PROPERTIES_PADDINGLEFT, + NS_DOM_PROP_CSS2PROPERTIES_PADDINGRIGHT, + NS_DOM_PROP_CSS2PROPERTIES_PADDINGTOP, + NS_DOM_PROP_CSS2PROPERTIES_PAGE, + NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKAFTER, + NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKBEFORE, + NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKINSIDE, + NS_DOM_PROP_CSS2PROPERTIES_PAUSE, + NS_DOM_PROP_CSS2PROPERTIES_PAUSEAFTER, + NS_DOM_PROP_CSS2PROPERTIES_PAUSEBEFORE, + NS_DOM_PROP_CSS2PROPERTIES_PITCH, + NS_DOM_PROP_CSS2PROPERTIES_PITCHRANGE, + NS_DOM_PROP_CSS2PROPERTIES_PLAYDURING, + NS_DOM_PROP_CSS2PROPERTIES_POSITION, + NS_DOM_PROP_CSS2PROPERTIES_QUOTES, + NS_DOM_PROP_CSS2PROPERTIES_RICHNESS, + NS_DOM_PROP_CSS2PROPERTIES_RIGHT, + NS_DOM_PROP_CSS2PROPERTIES_SIZE, + NS_DOM_PROP_CSS2PROPERTIES_SPEAK, + NS_DOM_PROP_CSS2PROPERTIES_SPEAKHEADER, + NS_DOM_PROP_CSS2PROPERTIES_SPEAKNUMERAL, + NS_DOM_PROP_CSS2PROPERTIES_SPEAKPUNCTUATION, + NS_DOM_PROP_CSS2PROPERTIES_SPEECHRATE, + NS_DOM_PROP_CSS2PROPERTIES_STRESS, + NS_DOM_PROP_CSS2PROPERTIES_TABLELAYOUT, + NS_DOM_PROP_CSS2PROPERTIES_TEXTALIGN, + NS_DOM_PROP_CSS2PROPERTIES_TEXTDECORATION, + NS_DOM_PROP_CSS2PROPERTIES_TEXTINDENT, + NS_DOM_PROP_CSS2PROPERTIES_TEXTSHADOW, + NS_DOM_PROP_CSS2PROPERTIES_TEXTTRANSFORM, + NS_DOM_PROP_CSS2PROPERTIES_TOP, + NS_DOM_PROP_CSS2PROPERTIES_UNICODEBIDI, + NS_DOM_PROP_CSS2PROPERTIES_VERTICALALIGN, + NS_DOM_PROP_CSS2PROPERTIES_VISIBILITY, + NS_DOM_PROP_CSS2PROPERTIES_VOICEFAMILY, + NS_DOM_PROP_CSS2PROPERTIES_VOLUME, + NS_DOM_PROP_CSS2PROPERTIES_WHITESPACE, + NS_DOM_PROP_CSS2PROPERTIES_WIDOWS, + NS_DOM_PROP_CSS2PROPERTIES_WIDTH, + NS_DOM_PROP_CSS2PROPERTIES_WORDSPACING, + NS_DOM_PROP_CSS2PROPERTIES_ZINDEX, + NS_DOM_PROP_CSSFONTFACERULE_STYLE, + NS_DOM_PROP_CSSIMPORTRULE_HREF, + NS_DOM_PROP_CSSIMPORTRULE_MEDIA, + NS_DOM_PROP_CSSIMPORTRULE_STYLESHEET, + NS_DOM_PROP_CSSMEDIARULE_CSSRULES, + NS_DOM_PROP_CSSMEDIARULE_DELETERULE, + NS_DOM_PROP_CSSMEDIARULE_INSERTRULE, + NS_DOM_PROP_CSSMEDIARULE_MEDIATYPES, + NS_DOM_PROP_CSSPAGERULE_NAME, + NS_DOM_PROP_CSSPAGERULE_STYLE, + NS_DOM_PROP_CSSRULE_CSSTEXT, + NS_DOM_PROP_CSSRULE_SHEET, + NS_DOM_PROP_CSSRULE_TYPE, + NS_DOM_PROP_CSSSTYLEDECLARATION_CSSTEXT, + NS_DOM_PROP_CSSSTYLEDECLARATION_GETPROPERTYPRIORITY, + NS_DOM_PROP_CSSSTYLEDECLARATION_GETPROPERTYVALUE, + NS_DOM_PROP_CSSSTYLEDECLARATION_ITEM, + NS_DOM_PROP_CSSSTYLEDECLARATION_LENGTH, + NS_DOM_PROP_CSSSTYLEDECLARATION_SETPROPERTY, + NS_DOM_PROP_CSSSTYLERULE_SELECTORTEXT, + NS_DOM_PROP_CSSSTYLERULE_STYLE, + NS_DOM_PROP_CSSSTYLERULECOLLECTION_ITEM, + NS_DOM_PROP_CSSSTYLERULECOLLECTION_LENGTH, + NS_DOM_PROP_CSSSTYLESHEET_CSSRULES, + NS_DOM_PROP_CSSSTYLESHEET_DELETERULE, + NS_DOM_PROP_CSSSTYLESHEET_HREF, + NS_DOM_PROP_CSSSTYLESHEET_INSERTRULE, + NS_DOM_PROP_CSSSTYLESHEET_MEDIA, + NS_DOM_PROP_CSSSTYLESHEET_OWNINGNODE, + NS_DOM_PROP_CSSSTYLESHEET_PARENTSTYLESHEET, + NS_DOM_PROP_CSSSTYLESHEET_TITLE, + NS_DOM_PROP_DOCUMENT_CREATEATTRIBUTE, + NS_DOM_PROP_DOCUMENT_CREATECDATASECTION, + NS_DOM_PROP_DOCUMENT_CREATECOMMENT, + NS_DOM_PROP_DOCUMENT_CREATEDOCUMENTFRAGMENT, + NS_DOM_PROP_DOCUMENT_CREATEELEMENT, + NS_DOM_PROP_DOCUMENT_CREATEENTITYREFERENCE, + NS_DOM_PROP_DOCUMENT_CREATEPROCESSINGINSTRUCTION, + NS_DOM_PROP_DOCUMENT_CREATETEXTNODE, + NS_DOM_PROP_DOCUMENT_DOCTYPE, + NS_DOM_PROP_DOCUMENT_DOCUMENTELEMENT, + NS_DOM_PROP_DOCUMENT_GETELEMENTSBYTAGNAME, + NS_DOM_PROP_DOCUMENT_IMPLEMENTATION, + NS_DOM_PROP_DOCUMENTTYPE_ENTITIES, + NS_DOM_PROP_DOCUMENTTYPE_NAME, + NS_DOM_PROP_DOCUMENTTYPE_NOTATIONS, + NS_DOM_PROP_DOMEXCEPTION_CODE, + NS_DOM_PROP_DOMEXCEPTION_MESSAGE, + NS_DOM_PROP_DOMEXCEPTION_NAME, + NS_DOM_PROP_DOMEXCEPTION_RESULT, + NS_DOM_PROP_DOMEXCEPTION_TOSTRING, + NS_DOM_PROP_DOMIMPLEMENTATION_HASFEATURE, + NS_DOM_PROP_ELEMENT_GETATTRIBUTE, + NS_DOM_PROP_ELEMENT_GETATTRIBUTENODE, + NS_DOM_PROP_ELEMENT_GETELEMENTSBYTAGNAME, + NS_DOM_PROP_ELEMENT_NORMALIZE, + NS_DOM_PROP_ELEMENT_REMOVEATTRIBUTE, + NS_DOM_PROP_ELEMENT_REMOVEATTRIBUTENODE, + NS_DOM_PROP_ELEMENT_SETATTRIBUTE, + NS_DOM_PROP_ELEMENT_SETATTRIBUTENODE, + NS_DOM_PROP_ELEMENT_TAGNAME, + NS_DOM_PROP_ENTITY_NOTATIONNAME, + NS_DOM_PROP_ENTITY_PUBLICID, + NS_DOM_PROP_ENTITY_SYSTEMID, + NS_DOM_PROP_EVENT_BUBBLES, + NS_DOM_PROP_EVENT_CANCELABLE, + NS_DOM_PROP_EVENT_CURRENTNODE, + NS_DOM_PROP_EVENT_EVENTPHASE, + NS_DOM_PROP_EVENT_INITEVENT, + NS_DOM_PROP_EVENT_PREVENTBUBBLE, + NS_DOM_PROP_EVENT_PREVENTCAPTURE, + NS_DOM_PROP_EVENT_PREVENTDEFAULT, + NS_DOM_PROP_EVENT_TARGET, + NS_DOM_PROP_EVENT_TYPE, + NS_DOM_PROP_EVENTTARGET_ADDEVENTLISTENER, + NS_DOM_PROP_EVENTTARGET_REMOVEEVENTLISTENER, + NS_DOM_PROP_HISTORY_BACK, + NS_DOM_PROP_HISTORY_CURRENT, + NS_DOM_PROP_HISTORY_FORWARD, + NS_DOM_PROP_HISTORY_GO, + NS_DOM_PROP_HISTORY_LENGTH, + NS_DOM_PROP_HISTORY_NEXT, + NS_DOM_PROP_HISTORY_PREVIOUS, + NS_DOM_PROP_HTMLANCHORELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLANCHORELEMENT_BLUR, + NS_DOM_PROP_HTMLANCHORELEMENT_CHARSET, + NS_DOM_PROP_HTMLANCHORELEMENT_COORDS, + NS_DOM_PROP_HTMLANCHORELEMENT_FOCUS, + NS_DOM_PROP_HTMLANCHORELEMENT_HREF, + NS_DOM_PROP_HTMLANCHORELEMENT_HREFLANG, + NS_DOM_PROP_HTMLANCHORELEMENT_NAME, + NS_DOM_PROP_HTMLANCHORELEMENT_REL, + NS_DOM_PROP_HTMLANCHORELEMENT_REV, + NS_DOM_PROP_HTMLANCHORELEMENT_SHAPE, + NS_DOM_PROP_HTMLANCHORELEMENT_TABINDEX, + NS_DOM_PROP_HTMLANCHORELEMENT_TARGET, + NS_DOM_PROP_HTMLANCHORELEMENT_TYPE, + NS_DOM_PROP_HTMLAPPLETELEMENT_ALIGN, + NS_DOM_PROP_HTMLAPPLETELEMENT_ALT, + NS_DOM_PROP_HTMLAPPLETELEMENT_ARCHIVE, + NS_DOM_PROP_HTMLAPPLETELEMENT_CODE, + NS_DOM_PROP_HTMLAPPLETELEMENT_CODEBASE, + NS_DOM_PROP_HTMLAPPLETELEMENT_HEIGHT, + NS_DOM_PROP_HTMLAPPLETELEMENT_HSPACE, + NS_DOM_PROP_HTMLAPPLETELEMENT_NAME, + NS_DOM_PROP_HTMLAPPLETELEMENT_OBJECT, + NS_DOM_PROP_HTMLAPPLETELEMENT_VSPACE, + NS_DOM_PROP_HTMLAPPLETELEMENT_WIDTH, + NS_DOM_PROP_HTMLAREAELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLAREAELEMENT_ALT, + NS_DOM_PROP_HTMLAREAELEMENT_COORDS, + NS_DOM_PROP_HTMLAREAELEMENT_HREF, + NS_DOM_PROP_HTMLAREAELEMENT_NOHREF, + NS_DOM_PROP_HTMLAREAELEMENT_SHAPE, + NS_DOM_PROP_HTMLAREAELEMENT_TABINDEX, + NS_DOM_PROP_HTMLAREAELEMENT_TARGET, + NS_DOM_PROP_HTMLBASEELEMENT_HREF, + NS_DOM_PROP_HTMLBASEELEMENT_TARGET, + NS_DOM_PROP_HTMLBASEFONTELEMENT_COLOR, + NS_DOM_PROP_HTMLBASEFONTELEMENT_FACE, + NS_DOM_PROP_HTMLBASEFONTELEMENT_SIZE, + NS_DOM_PROP_HTMLBLOCKQUOTEELEMENT_CITE, + NS_DOM_PROP_HTMLBODYELEMENT_ALINK, + NS_DOM_PROP_HTMLBODYELEMENT_BACKGROUND, + NS_DOM_PROP_HTMLBODYELEMENT_BGCOLOR, + NS_DOM_PROP_HTMLBODYELEMENT_LINK, + NS_DOM_PROP_HTMLBODYELEMENT_TEXT, + NS_DOM_PROP_HTMLBODYELEMENT_VLINK, + NS_DOM_PROP_HTMLBRELEMENT_CLEAR, + NS_DOM_PROP_HTMLBUTTONELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLBUTTONELEMENT_DISABLED, + NS_DOM_PROP_HTMLBUTTONELEMENT_FORM, + NS_DOM_PROP_HTMLBUTTONELEMENT_NAME, + NS_DOM_PROP_HTMLBUTTONELEMENT_TABINDEX, + NS_DOM_PROP_HTMLBUTTONELEMENT_TYPE, + NS_DOM_PROP_HTMLBUTTONELEMENT_VALUE, + NS_DOM_PROP_HTMLCOLLECTION_ITEM, + NS_DOM_PROP_HTMLCOLLECTION_LENGTH, + NS_DOM_PROP_HTMLCOLLECTION_NAMEDITEM, + NS_DOM_PROP_HTMLDIRECTORYELEMENT_COMPACT, + NS_DOM_PROP_HTMLDIVELEMENT_ALIGN, + NS_DOM_PROP_HTMLDLISTELEMENT_COMPACT, + NS_DOM_PROP_HTMLDOCUMENT_ANCHORS, + NS_DOM_PROP_HTMLDOCUMENT_APPLETS, + NS_DOM_PROP_HTMLDOCUMENT_BODY, + NS_DOM_PROP_HTMLDOCUMENT_CLOSE, + NS_DOM_PROP_HTMLDOCUMENT_COOKIE, + NS_DOM_PROP_HTMLDOCUMENT_DOMAIN, + NS_DOM_PROP_HTMLDOCUMENT_FORMS, + NS_DOM_PROP_HTMLDOCUMENT_GETELEMENTBYID, + NS_DOM_PROP_HTMLDOCUMENT_GETELEMENTSBYNAME, + NS_DOM_PROP_HTMLDOCUMENT_IMAGES, + NS_DOM_PROP_HTMLDOCUMENT_LINKS, + NS_DOM_PROP_HTMLDOCUMENT_REFERRER, + NS_DOM_PROP_HTMLDOCUMENT_TITLE, + NS_DOM_PROP_HTMLDOCUMENT_URL, + NS_DOM_PROP_HTMLELEMENT_CLASSNAME, + NS_DOM_PROP_HTMLELEMENT_DIR, + NS_DOM_PROP_HTMLELEMENT_ID, + NS_DOM_PROP_HTMLELEMENT_LANG, + NS_DOM_PROP_HTMLELEMENT_STYLE, + NS_DOM_PROP_HTMLELEMENT_TITLE, + NS_DOM_PROP_HTMLEMBEDELEMENT_ALIGN, + NS_DOM_PROP_HTMLEMBEDELEMENT_HEIGHT, + NS_DOM_PROP_HTMLEMBEDELEMENT_NAME, + NS_DOM_PROP_HTMLEMBEDELEMENT_SRC, + NS_DOM_PROP_HTMLEMBEDELEMENT_TYPE, + NS_DOM_PROP_HTMLEMBEDELEMENT_WIDTH, + NS_DOM_PROP_HTMLFIELDSETELEMENT_FORM, + NS_DOM_PROP_HTMLFONTELEMENT_COLOR, + NS_DOM_PROP_HTMLFONTELEMENT_FACE, + NS_DOM_PROP_HTMLFONTELEMENT_SIZE, + NS_DOM_PROP_HTMLFORMELEMENT_ACCEPTCHARSET, + NS_DOM_PROP_HTMLFORMELEMENT_ACTION, + NS_DOM_PROP_HTMLFORMELEMENT_ELEMENTS, + NS_DOM_PROP_HTMLFORMELEMENT_ENCTYPE, + NS_DOM_PROP_HTMLFORMELEMENT_LENGTH, + NS_DOM_PROP_HTMLFORMELEMENT_METHOD, + NS_DOM_PROP_HTMLFORMELEMENT_NAME, + NS_DOM_PROP_HTMLFORMELEMENT_RESET, + NS_DOM_PROP_HTMLFORMELEMENT_SUBMIT, + NS_DOM_PROP_HTMLFORMELEMENT_TARGET, + NS_DOM_PROP_HTMLFRAMEELEMENT_FRAMEBORDER, + NS_DOM_PROP_HTMLFRAMEELEMENT_LONGDESC, + NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINHEIGHT, + NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINWIDTH, + NS_DOM_PROP_HTMLFRAMEELEMENT_NAME, + NS_DOM_PROP_HTMLFRAMEELEMENT_NORESIZE, + NS_DOM_PROP_HTMLFRAMEELEMENT_SCROLLING, + NS_DOM_PROP_HTMLFRAMEELEMENT_SRC, + NS_DOM_PROP_HTMLFRAMESETELEMENT_COLS, + NS_DOM_PROP_HTMLFRAMESETELEMENT_ROWS, + NS_DOM_PROP_HTMLHEADELEMENT_PROFILE, + NS_DOM_PROP_HTMLHEADINGELEMENT_ALIGN, + NS_DOM_PROP_HTMLHRELEMENT_ALIGN, + NS_DOM_PROP_HTMLHRELEMENT_NOSHADE, + NS_DOM_PROP_HTMLHRELEMENT_SIZE, + NS_DOM_PROP_HTMLHRELEMENT_WIDTH, + NS_DOM_PROP_HTMLHTMLELEMENT_VERSION, + NS_DOM_PROP_HTMLIFRAMEELEMENT_ALIGN, + NS_DOM_PROP_HTMLIFRAMEELEMENT_FRAMEBORDER, + NS_DOM_PROP_HTMLIFRAMEELEMENT_HEIGHT, + NS_DOM_PROP_HTMLIFRAMEELEMENT_LONGDESC, + NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINHEIGHT, + NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINWIDTH, + NS_DOM_PROP_HTMLIFRAMEELEMENT_NAME, + NS_DOM_PROP_HTMLIFRAMEELEMENT_SCROLLING, + NS_DOM_PROP_HTMLIFRAMEELEMENT_SRC, + NS_DOM_PROP_HTMLIFRAMEELEMENT_WIDTH, + NS_DOM_PROP_HTMLIMAGEELEMENT_ALIGN, + NS_DOM_PROP_HTMLIMAGEELEMENT_ALT, + NS_DOM_PROP_HTMLIMAGEELEMENT_BORDER, + NS_DOM_PROP_HTMLIMAGEELEMENT_HEIGHT, + NS_DOM_PROP_HTMLIMAGEELEMENT_HSPACE, + NS_DOM_PROP_HTMLIMAGEELEMENT_ISMAP, + NS_DOM_PROP_HTMLIMAGEELEMENT_LONGDESC, + NS_DOM_PROP_HTMLIMAGEELEMENT_LOWSRC, + NS_DOM_PROP_HTMLIMAGEELEMENT_NAME, + NS_DOM_PROP_HTMLIMAGEELEMENT_SRC, + NS_DOM_PROP_HTMLIMAGEELEMENT_USEMAP, + NS_DOM_PROP_HTMLIMAGEELEMENT_VSPACE, + NS_DOM_PROP_HTMLIMAGEELEMENT_WIDTH, + NS_DOM_PROP_HTMLINPUTELEMENT_ACCEPT, + NS_DOM_PROP_HTMLINPUTELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLINPUTELEMENT_ALIGN, + NS_DOM_PROP_HTMLINPUTELEMENT_ALT, + NS_DOM_PROP_HTMLINPUTELEMENT_AUTOCOMPLETE, + NS_DOM_PROP_HTMLINPUTELEMENT_BLUR, + NS_DOM_PROP_HTMLINPUTELEMENT_CHECKED, + NS_DOM_PROP_HTMLINPUTELEMENT_CLICK, + NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTCHECKED, + NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTVALUE, + NS_DOM_PROP_HTMLINPUTELEMENT_DISABLED, + NS_DOM_PROP_HTMLINPUTELEMENT_FOCUS, + NS_DOM_PROP_HTMLINPUTELEMENT_FORM, + NS_DOM_PROP_HTMLINPUTELEMENT_MAXLENGTH, + NS_DOM_PROP_HTMLINPUTELEMENT_NAME, + NS_DOM_PROP_HTMLINPUTELEMENT_READONLY, + NS_DOM_PROP_HTMLINPUTELEMENT_SELECT, + NS_DOM_PROP_HTMLINPUTELEMENT_SIZE, + NS_DOM_PROP_HTMLINPUTELEMENT_SRC, + NS_DOM_PROP_HTMLINPUTELEMENT_TABINDEX, + NS_DOM_PROP_HTMLINPUTELEMENT_TYPE, + NS_DOM_PROP_HTMLINPUTELEMENT_USEMAP, + NS_DOM_PROP_HTMLINPUTELEMENT_VALUE, + NS_DOM_PROP_HTMLISINDEXELEMENT_FORM, + NS_DOM_PROP_HTMLISINDEXELEMENT_PROMPT, + NS_DOM_PROP_HTMLLABELELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLLABELELEMENT_FORM, + NS_DOM_PROP_HTMLLABELELEMENT_HTMLFOR, + NS_DOM_PROP_HTMLLAYERELEMENT_BACKGROUND, + NS_DOM_PROP_HTMLLAYERELEMENT_BGCOLOR, + NS_DOM_PROP_HTMLLAYERELEMENT_DOCUMENT, + NS_DOM_PROP_HTMLLAYERELEMENT_LEFT, + NS_DOM_PROP_HTMLLAYERELEMENT_NAME, + NS_DOM_PROP_HTMLLAYERELEMENT_TOP, + NS_DOM_PROP_HTMLLAYERELEMENT_VISIBILITY, + NS_DOM_PROP_HTMLLAYERELEMENT_ZINDEX, + NS_DOM_PROP_HTMLLEGENDELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLLEGENDELEMENT_ALIGN, + NS_DOM_PROP_HTMLLEGENDELEMENT_FORM, + NS_DOM_PROP_HTMLLIELEMENT_TYPE, + NS_DOM_PROP_HTMLLIELEMENT_VALUE, + NS_DOM_PROP_HTMLLINKELEMENT_CHARSET, + NS_DOM_PROP_HTMLLINKELEMENT_DISABLED, + NS_DOM_PROP_HTMLLINKELEMENT_HREF, + NS_DOM_PROP_HTMLLINKELEMENT_HREFLANG, + NS_DOM_PROP_HTMLLINKELEMENT_MEDIA, + NS_DOM_PROP_HTMLLINKELEMENT_REL, + NS_DOM_PROP_HTMLLINKELEMENT_REV, + NS_DOM_PROP_HTMLLINKELEMENT_TARGET, + NS_DOM_PROP_HTMLLINKELEMENT_TYPE, + NS_DOM_PROP_HTMLMAPELEMENT_AREAS, + NS_DOM_PROP_HTMLMAPELEMENT_NAME, + NS_DOM_PROP_HTMLMENUELEMENT_COMPACT, + NS_DOM_PROP_HTMLMETAELEMENT_CONTENT, + NS_DOM_PROP_HTMLMETAELEMENT_HTTPEQUIV, + NS_DOM_PROP_HTMLMETAELEMENT_NAME, + NS_DOM_PROP_HTMLMETAELEMENT_SCHEME, + NS_DOM_PROP_HTMLMODELEMENT_CITE, + NS_DOM_PROP_HTMLMODELEMENT_DATETIME, + NS_DOM_PROP_HTMLOBJECTELEMENT_ALIGN, + NS_DOM_PROP_HTMLOBJECTELEMENT_ARCHIVE, + NS_DOM_PROP_HTMLOBJECTELEMENT_BORDER, + NS_DOM_PROP_HTMLOBJECTELEMENT_CODE, + NS_DOM_PROP_HTMLOBJECTELEMENT_CODEBASE, + NS_DOM_PROP_HTMLOBJECTELEMENT_CODETYPE, + NS_DOM_PROP_HTMLOBJECTELEMENT_DATA, + NS_DOM_PROP_HTMLOBJECTELEMENT_DECLARE, + NS_DOM_PROP_HTMLOBJECTELEMENT_FORM, + NS_DOM_PROP_HTMLOBJECTELEMENT_HEIGHT, + NS_DOM_PROP_HTMLOBJECTELEMENT_HSPACE, + NS_DOM_PROP_HTMLOBJECTELEMENT_NAME, + NS_DOM_PROP_HTMLOBJECTELEMENT_STANDBY, + NS_DOM_PROP_HTMLOBJECTELEMENT_TABINDEX, + NS_DOM_PROP_HTMLOBJECTELEMENT_TYPE, + NS_DOM_PROP_HTMLOBJECTELEMENT_USEMAP, + NS_DOM_PROP_HTMLOBJECTELEMENT_VSPACE, + NS_DOM_PROP_HTMLOBJECTELEMENT_WIDTH, + NS_DOM_PROP_HTMLOLISTELEMENT_COMPACT, + NS_DOM_PROP_HTMLOLISTELEMENT_START, + NS_DOM_PROP_HTMLOLISTELEMENT_TYPE, + NS_DOM_PROP_HTMLOPTGROUPELEMENT_DISABLED, + NS_DOM_PROP_HTMLOPTGROUPELEMENT_LABEL, + NS_DOM_PROP_HTMLOPTIONELEMENT_DEFAULTSELECTED, + NS_DOM_PROP_HTMLOPTIONELEMENT_DISABLED, + NS_DOM_PROP_HTMLOPTIONELEMENT_FORM, + NS_DOM_PROP_HTMLOPTIONELEMENT_INDEX, + NS_DOM_PROP_HTMLOPTIONELEMENT_LABEL, + NS_DOM_PROP_HTMLOPTIONELEMENT_SELECTED, + NS_DOM_PROP_HTMLOPTIONELEMENT_TEXT, + NS_DOM_PROP_HTMLOPTIONELEMENT_VALUE, + NS_DOM_PROP_HTMLPARAGRAPHELEMENT_ALIGN, + NS_DOM_PROP_HTMLPARAMELEMENT_NAME, + NS_DOM_PROP_HTMLPARAMELEMENT_TYPE, + NS_DOM_PROP_HTMLPARAMELEMENT_VALUE, + NS_DOM_PROP_HTMLPARAMELEMENT_VALUETYPE, + NS_DOM_PROP_HTMLPREELEMENT_WIDTH, + NS_DOM_PROP_HTMLQUOTEELEMENT_CITE, + NS_DOM_PROP_HTMLSCRIPTELEMENT_CHARSET, + NS_DOM_PROP_HTMLSCRIPTELEMENT_DEFER, + NS_DOM_PROP_HTMLSCRIPTELEMENT_EVENT, + NS_DOM_PROP_HTMLSCRIPTELEMENT_HTMLFOR, + NS_DOM_PROP_HTMLSCRIPTELEMENT_SRC, + NS_DOM_PROP_HTMLSCRIPTELEMENT_TEXT, + NS_DOM_PROP_HTMLSCRIPTELEMENT_TYPE, + NS_DOM_PROP_HTMLSELECTELEMENT_ADD, + NS_DOM_PROP_HTMLSELECTELEMENT_BLUR, + NS_DOM_PROP_HTMLSELECTELEMENT_DISABLED, + NS_DOM_PROP_HTMLSELECTELEMENT_FOCUS, + NS_DOM_PROP_HTMLSELECTELEMENT_FORM, + NS_DOM_PROP_HTMLSELECTELEMENT_LENGTH, + NS_DOM_PROP_HTMLSELECTELEMENT_MULTIPLE, + NS_DOM_PROP_HTMLSELECTELEMENT_NAME, + NS_DOM_PROP_HTMLSELECTELEMENT_OPTIONS, + NS_DOM_PROP_HTMLSELECTELEMENT_REMOVE, + NS_DOM_PROP_HTMLSELECTELEMENT_SELECTEDINDEX, + NS_DOM_PROP_HTMLSELECTELEMENT_SIZE, + NS_DOM_PROP_HTMLSELECTELEMENT_TABINDEX, + NS_DOM_PROP_HTMLSELECTELEMENT_TYPE, + NS_DOM_PROP_HTMLSELECTELEMENT_VALUE, + NS_DOM_PROP_HTMLSTYLEELEMENT_DISABLED, + NS_DOM_PROP_HTMLSTYLEELEMENT_MEDIA, + NS_DOM_PROP_HTMLSTYLEELEMENT_TYPE, + NS_DOM_PROP_HTMLTABLECAPTIONELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLECELLELEMENT_ABBR, + NS_DOM_PROP_HTMLTABLECELLELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLECELLELEMENT_AXIS, + NS_DOM_PROP_HTMLTABLECELLELEMENT_BGCOLOR, + NS_DOM_PROP_HTMLTABLECELLELEMENT_CELLINDEX, + NS_DOM_PROP_HTMLTABLECELLELEMENT_CH, + NS_DOM_PROP_HTMLTABLECELLELEMENT_CHOFF, + NS_DOM_PROP_HTMLTABLECELLELEMENT_COLSPAN, + NS_DOM_PROP_HTMLTABLECELLELEMENT_HEADERS, + NS_DOM_PROP_HTMLTABLECELLELEMENT_HEIGHT, + NS_DOM_PROP_HTMLTABLECELLELEMENT_NOWRAP, + NS_DOM_PROP_HTMLTABLECELLELEMENT_ROWSPAN, + NS_DOM_PROP_HTMLTABLECELLELEMENT_SCOPE, + NS_DOM_PROP_HTMLTABLECELLELEMENT_VALIGN, + NS_DOM_PROP_HTMLTABLECELLELEMENT_WIDTH, + NS_DOM_PROP_HTMLTABLECOLELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLECOLELEMENT_CH, + NS_DOM_PROP_HTMLTABLECOLELEMENT_CHOFF, + NS_DOM_PROP_HTMLTABLECOLELEMENT_SPAN, + NS_DOM_PROP_HTMLTABLECOLELEMENT_VALIGN, + NS_DOM_PROP_HTMLTABLECOLELEMENT_WIDTH, + NS_DOM_PROP_HTMLTABLEELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLEELEMENT_BGCOLOR, + NS_DOM_PROP_HTMLTABLEELEMENT_BORDER, + NS_DOM_PROP_HTMLTABLEELEMENT_CAPTION, + NS_DOM_PROP_HTMLTABLEELEMENT_CELLPADDING, + NS_DOM_PROP_HTMLTABLEELEMENT_CELLSPACING, + NS_DOM_PROP_HTMLTABLEELEMENT_CREATECAPTION, + NS_DOM_PROP_HTMLTABLEELEMENT_CREATETFOOT, + NS_DOM_PROP_HTMLTABLEELEMENT_CREATETHEAD, + NS_DOM_PROP_HTMLTABLEELEMENT_DELETECAPTION, + NS_DOM_PROP_HTMLTABLEELEMENT_DELETEROW, + NS_DOM_PROP_HTMLTABLEELEMENT_DELETETFOOT, + NS_DOM_PROP_HTMLTABLEELEMENT_DELETETHEAD, + NS_DOM_PROP_HTMLTABLEELEMENT_FRAME, + NS_DOM_PROP_HTMLTABLEELEMENT_INSERTROW, + NS_DOM_PROP_HTMLTABLEELEMENT_ROWS, + NS_DOM_PROP_HTMLTABLEELEMENT_RULES, + NS_DOM_PROP_HTMLTABLEELEMENT_SUMMARY, + NS_DOM_PROP_HTMLTABLEELEMENT_TBODIES, + NS_DOM_PROP_HTMLTABLEELEMENT_TFOOT, + NS_DOM_PROP_HTMLTABLEELEMENT_THEAD, + NS_DOM_PROP_HTMLTABLEELEMENT_WIDTH, + NS_DOM_PROP_HTMLTABLEROWELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLEROWELEMENT_BGCOLOR, + NS_DOM_PROP_HTMLTABLEROWELEMENT_CELLS, + NS_DOM_PROP_HTMLTABLEROWELEMENT_CH, + NS_DOM_PROP_HTMLTABLEROWELEMENT_CHOFF, + NS_DOM_PROP_HTMLTABLEROWELEMENT_DELETECELL, + NS_DOM_PROP_HTMLTABLEROWELEMENT_INSERTCELL, + NS_DOM_PROP_HTMLTABLEROWELEMENT_ROWINDEX, + NS_DOM_PROP_HTMLTABLEROWELEMENT_SECTIONROWINDEX, + NS_DOM_PROP_HTMLTABLEROWELEMENT_VALIGN, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_ALIGN, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CH, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CHOFF, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_DELETEROW, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_INSERTROW, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_ROWS, + NS_DOM_PROP_HTMLTABLESECTIONELEMENT_VALIGN, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_ACCESSKEY, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_BLUR, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_COLS, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_CONTROLLERS, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_DEFAULTVALUE, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_DISABLED, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_FOCUS, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_FORM, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_NAME, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_READONLY, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_ROWS, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_SELECT, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_TABINDEX, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_TYPE, + NS_DOM_PROP_HTMLTEXTAREAELEMENT_VALUE, + NS_DOM_PROP_HTMLTITLEELEMENT_TEXT, + NS_DOM_PROP_HTMLULISTELEMENT_COMPACT, + NS_DOM_PROP_HTMLULISTELEMENT_TYPE, + NS_DOM_PROP_KEYEVENT_ALTKEY, + NS_DOM_PROP_KEYEVENT_CHARCODE, + NS_DOM_PROP_KEYEVENT_CTRLKEY, + NS_DOM_PROP_KEYEVENT_INITKEYEVENT, + NS_DOM_PROP_KEYEVENT_KEYCODE, + NS_DOM_PROP_KEYEVENT_METAKEY, + NS_DOM_PROP_KEYEVENT_SHIFTKEY, + NS_DOM_PROP_LOCATION_HASH, + NS_DOM_PROP_LOCATION_HOST, + NS_DOM_PROP_LOCATION_HOSTNAME, + NS_DOM_PROP_LOCATION_PATHNAME, + NS_DOM_PROP_LOCATION_PORT, + NS_DOM_PROP_LOCATION_PROTOCOL, + NS_DOM_PROP_LOCATION_SEARCH, + NS_DOM_PROP_LOCATION_TOSTRING, + NS_DOM_PROP_MIMETYPE_DESCRIPTION, + NS_DOM_PROP_MIMETYPE_ENABLEDPLUGIN, + NS_DOM_PROP_MIMETYPE_SUFFIXES, + NS_DOM_PROP_MIMETYPE_TYPE, + NS_DOM_PROP_MIMETYPEARRAY_ITEM, + NS_DOM_PROP_MIMETYPEARRAY_LENGTH, + NS_DOM_PROP_MIMETYPEARRAY_NAMEDITEM, + NS_DOM_PROP_MOUSEEVENT_BUTTON, + NS_DOM_PROP_MOUSEEVENT_CLICKCOUNT, + NS_DOM_PROP_MOUSEEVENT_CLIENTX, + NS_DOM_PROP_MOUSEEVENT_CLIENTY, + NS_DOM_PROP_MOUSEEVENT_INITMOUSEEVENT, + NS_DOM_PROP_MOUSEEVENT_RELATEDNODE, + NS_DOM_PROP_MOUSEEVENT_SCREENX, + NS_DOM_PROP_MOUSEEVENT_SCREENY, + NS_DOM_PROP_NAMEDNODEMAP_GETNAMEDITEM, + NS_DOM_PROP_NAMEDNODEMAP_ITEM, + NS_DOM_PROP_NAMEDNODEMAP_LENGTH, + NS_DOM_PROP_NAMEDNODEMAP_REMOVENAMEDITEM, + NS_DOM_PROP_NAMEDNODEMAP_SETNAMEDITEM, + NS_DOM_PROP_NAVIGATOR_APPCODENAME, + NS_DOM_PROP_NAVIGATOR_APPNAME, + NS_DOM_PROP_NAVIGATOR_APPVERSION, + NS_DOM_PROP_NAVIGATOR_JAVAENABLED, + NS_DOM_PROP_NAVIGATOR_LANGUAGE, + NS_DOM_PROP_NAVIGATOR_MIMETYPES, + NS_DOM_PROP_NAVIGATOR_PLATFORM, + NS_DOM_PROP_NAVIGATOR_PLUGINS, + NS_DOM_PROP_NAVIGATOR_PREFERENCE, + NS_DOM_PROP_NAVIGATOR_SECURITYPOLICY, + NS_DOM_PROP_NAVIGATOR_TAINTENABLED, + NS_DOM_PROP_NAVIGATOR_USERAGENT, + NS_DOM_PROP_NODE_APPENDCHILD, + NS_DOM_PROP_NODE_ATTRIBUTES, + NS_DOM_PROP_NODE_CHILDNODES, + NS_DOM_PROP_NODE_CLONENODE, + NS_DOM_PROP_NODE_FIRSTCHILD, + NS_DOM_PROP_NODE_HASCHILDNODES, + NS_DOM_PROP_NODE_INSERTBEFORE, + NS_DOM_PROP_NODE_LASTCHILD, + NS_DOM_PROP_NODE_NEXTSIBLING, + NS_DOM_PROP_NODE_NODENAME, + NS_DOM_PROP_NODE_NODETYPE, + NS_DOM_PROP_NODE_NODEVALUE, + NS_DOM_PROP_NODE_OWNERDOCUMENT, + NS_DOM_PROP_NODE_PARENTNODE, + NS_DOM_PROP_NODE_PREVIOUSSIBLING, + NS_DOM_PROP_NODE_REMOVECHILD, + NS_DOM_PROP_NODE_REPLACECHILD, + NS_DOM_PROP_NODELIST_ITEM, + NS_DOM_PROP_NODELIST_LENGTH, + NS_DOM_PROP_NOTATION_PUBLICID, + NS_DOM_PROP_NOTATION_SYSTEMID, + NS_DOM_PROP_NSDOCUMENT_CREATEELEMENTWITHNAMESPACE, + NS_DOM_PROP_NSDOCUMENT_CREATERANGE, + NS_DOM_PROP_NSDOCUMENT_HEIGHT, + NS_DOM_PROP_NSDOCUMENT_STYLESHEETS, + NS_DOM_PROP_NSDOCUMENT_WIDTH, + NS_DOM_PROP_NSHTMLBUTTONELEMENT_BLUR, + NS_DOM_PROP_NSHTMLBUTTONELEMENT_FOCUS, + NS_DOM_PROP_NSHTMLDOCUMENT_ALINKCOLOR, + NS_DOM_PROP_NSHTMLDOCUMENT_BGCOLOR, + NS_DOM_PROP_NSHTMLDOCUMENT_CAPTUREEVENTS, + NS_DOM_PROP_NSHTMLDOCUMENT_EMBEDS, + NS_DOM_PROP_NSHTMLDOCUMENT_FGCOLOR, + NS_DOM_PROP_NSHTMLDOCUMENT_GETSELECTION, + NS_DOM_PROP_NSHTMLDOCUMENT_LASTMODIFIED, + NS_DOM_PROP_NSHTMLDOCUMENT_LAYERS, + NS_DOM_PROP_NSHTMLDOCUMENT_LINKCOLOR, + NS_DOM_PROP_NSHTMLDOCUMENT_NAMEDITEM, + NS_DOM_PROP_NSHTMLDOCUMENT_OPEN, + NS_DOM_PROP_NSHTMLDOCUMENT_PLUGINS, + NS_DOM_PROP_NSHTMLDOCUMENT_RELEASEEVENTS, + NS_DOM_PROP_NSHTMLDOCUMENT_ROUTEEVENT, + NS_DOM_PROP_NSHTMLDOCUMENT_VLINKCOLOR, + NS_DOM_PROP_NSHTMLDOCUMENT_WRITE, + NS_DOM_PROP_NSHTMLDOCUMENT_WRITELN, + NS_DOM_PROP_NSHTMLFORMELEMENT_ENCODING, + NS_DOM_PROP_NSHTMLFORMELEMENT_ITEM, + NS_DOM_PROP_NSHTMLFORMELEMENT_NAMEDITEM, + NS_DOM_PROP_NSHTMLSELECTELEMENT_ITEM, + NS_DOM_PROP_NSLOCATION_RELOAD, + NS_DOM_PROP_NSLOCATION_REPLACE, + NS_DOM_PROP_NSRANGE_CREATECONTEXTUALFRAGMENT, + NS_DOM_PROP_NSRANGE_ISVALIDFRAGMENT, + NS_DOM_PROP_NSUIEVENT_CANCELBUBBLE, + NS_DOM_PROP_NSUIEVENT_ISCHAR, + NS_DOM_PROP_NSUIEVENT_LAYERX, + NS_DOM_PROP_NSUIEVENT_LAYERY, + NS_DOM_PROP_NSUIEVENT_PAGEX, + NS_DOM_PROP_NSUIEVENT_PAGEY, + NS_DOM_PROP_NSUIEVENT_RANGEOFFSET, + NS_DOM_PROP_NSUIEVENT_RANGEPARENT, + NS_DOM_PROP_NSUIEVENT_WHICH, + NS_DOM_PROP_PLUGIN_DESCRIPTION, + NS_DOM_PROP_PLUGIN_FILENAME, + NS_DOM_PROP_PLUGIN_ITEM, + NS_DOM_PROP_PLUGIN_LENGTH, + NS_DOM_PROP_PLUGIN_NAME, + NS_DOM_PROP_PLUGIN_NAMEDITEM, + NS_DOM_PROP_PLUGINARRAY_ITEM, + NS_DOM_PROP_PLUGINARRAY_LENGTH, + NS_DOM_PROP_PLUGINARRAY_NAMEDITEM, + NS_DOM_PROP_PLUGINARRAY_REFRESH, + NS_DOM_PROP_PROCESSINGINSTRUCTION_DATA, + NS_DOM_PROP_PROCESSINGINSTRUCTION_TARGET, + NS_DOM_PROP_RANGE_CLONE, + NS_DOM_PROP_RANGE_CLONECONTENTS, + NS_DOM_PROP_RANGE_COLLAPSE, + NS_DOM_PROP_RANGE_COMMONPARENT, + NS_DOM_PROP_RANGE_COMPAREENDPOINTS, + NS_DOM_PROP_RANGE_DELETECONTENTS, + NS_DOM_PROP_RANGE_ENDOFFSET, + NS_DOM_PROP_RANGE_ENDPARENT, + NS_DOM_PROP_RANGE_EXTRACTCONTENTS, + NS_DOM_PROP_RANGE_INSERTNODE, + NS_DOM_PROP_RANGE_ISCOLLAPSED, + NS_DOM_PROP_RANGE_SELECTNODE, + NS_DOM_PROP_RANGE_SELECTNODECONTENTS, + NS_DOM_PROP_RANGE_SETEND, + NS_DOM_PROP_RANGE_SETENDAFTER, + NS_DOM_PROP_RANGE_SETENDBEFORE, + NS_DOM_PROP_RANGE_SETSTART, + NS_DOM_PROP_RANGE_SETSTARTAFTER, + NS_DOM_PROP_RANGE_SETSTARTBEFORE, + NS_DOM_PROP_RANGE_STARTOFFSET, + NS_DOM_PROP_RANGE_STARTPARENT, + NS_DOM_PROP_RANGE_SURROUNDCONTENTS, + NS_DOM_PROP_RANGE_TOSTRING, + NS_DOM_PROP_SCREEN_AVAILHEIGHT, + NS_DOM_PROP_SCREEN_AVAILLEFT, + NS_DOM_PROP_SCREEN_AVAILTOP, + NS_DOM_PROP_SCREEN_AVAILWIDTH, + NS_DOM_PROP_SCREEN_COLORDEPTH, + NS_DOM_PROP_SCREEN_HEIGHT, + NS_DOM_PROP_SCREEN_PIXELDEPTH, + NS_DOM_PROP_SCREEN_WIDTH, + NS_DOM_PROP_SELECTION_ADDRANGE, + NS_DOM_PROP_SELECTION_ADDSELECTIONLISTENER, + NS_DOM_PROP_SELECTION_ANCHORNODE, + NS_DOM_PROP_SELECTION_ANCHOROFFSET, + NS_DOM_PROP_SELECTION_CLEARSELECTION, + NS_DOM_PROP_SELECTION_COLLAPSE, + NS_DOM_PROP_SELECTION_COLLAPSETOEND, + NS_DOM_PROP_SELECTION_COLLAPSETOSTART, + NS_DOM_PROP_SELECTION_CONTAINSNODE, + NS_DOM_PROP_SELECTION_DELETEFROMDOCUMENT, + NS_DOM_PROP_SELECTION_ENDBATCHCHANGES, + NS_DOM_PROP_SELECTION_EXTEND, + NS_DOM_PROP_SELECTION_FOCUSNODE, + NS_DOM_PROP_SELECTION_FOCUSOFFSET, + NS_DOM_PROP_SELECTION_GETRANGEAT, + NS_DOM_PROP_SELECTION_ISCOLLAPSED, + NS_DOM_PROP_SELECTION_RANGECOUNT, + NS_DOM_PROP_SELECTION_REMOVESELECTIONLISTENER, + NS_DOM_PROP_SELECTION_STARTBATCHCHANGES, + NS_DOM_PROP_SELECTION_TOSTRING, + NS_DOM_PROP_SELECTIONLISTENER_NOTIFYSELECTIONCHANGED, + NS_DOM_PROP_STYLESHEET_DISABLED, + NS_DOM_PROP_STYLESHEET_READONLY, + NS_DOM_PROP_STYLESHEET_TYPE, + NS_DOM_PROP_STYLESHEETCOLLECTION_ITEM, + NS_DOM_PROP_STYLESHEETCOLLECTION_LENGTH, + NS_DOM_PROP_TEXT_SPLITTEXT, + NS_DOM_PROP_TEXTRANGE_RANGEEND, + NS_DOM_PROP_TEXTRANGE_RANGESTART, + NS_DOM_PROP_TEXTRANGE_RANGETYPE, + NS_DOM_PROP_TEXTRANGELIST_ITEM, + NS_DOM_PROP_TEXTRANGELIST_LENGTH, + NS_DOM_PROP_TOOLKITCORE_CLOSEWINDOW, + NS_DOM_PROP_TOOLKITCORE_SHOWDIALOG, + NS_DOM_PROP_TOOLKITCORE_SHOWMODALDIALOG, + NS_DOM_PROP_TOOLKITCORE_SHOWWINDOW, + NS_DOM_PROP_TOOLKITCORE_SHOWWINDOWWITHARGS, + NS_DOM_PROP_UIEVENT_DETAIL, + NS_DOM_PROP_UIEVENT_INITUIEVENT, + NS_DOM_PROP_UIEVENT_VIEW, + NS_DOM_PROP_WINDOW_ALERT, + NS_DOM_PROP_WINDOW_BACK, + NS_DOM_PROP_WINDOW_BLUR, + NS_DOM_PROP_WINDOW_CAPTUREEVENTS, + NS_DOM_PROP_WINDOW_CLEARINTERVAL, + NS_DOM_PROP_WINDOW_CLEARTIMEOUT, + NS_DOM_PROP_WINDOW_CLOSE, + NS_DOM_PROP_WINDOW_CLOSED, + NS_DOM_PROP_WINDOW_CONFIRM, + NS_DOM_PROP_WINDOW_CONTENT, + NS_DOM_PROP_WINDOW_CONTROLLERS, + NS_DOM_PROP_WINDOW_CREATEPOPUP, + NS_DOM_PROP_WINDOW_DEFAULTSTATUS, + NS_DOM_PROP_WINDOW_DIRECTORIES, + NS_DOM_PROP_WINDOW_DISABLEEXTERNALCAPTURE, + NS_DOM_PROP_WINDOW_DOCUMENT, + NS_DOM_PROP_WINDOW_DUMP, + NS_DOM_PROP_WINDOW_ENABLEEXTERNALCAPTURE, + NS_DOM_PROP_WINDOW_FOCUS, + NS_DOM_PROP_WINDOW_FORWARD, + NS_DOM_PROP_WINDOW_FRAMES, + NS_DOM_PROP_WINDOW_HISTORY, + NS_DOM_PROP_WINDOW_HOME, + NS_DOM_PROP_WINDOW_INNERHEIGHT, + NS_DOM_PROP_WINDOW_INNERWIDTH, + NS_DOM_PROP_WINDOW_LOCATIONBAR, + NS_DOM_PROP_WINDOW_MENUBAR, + NS_DOM_PROP_WINDOW_MOVEBY, + NS_DOM_PROP_WINDOW_MOVETO, + NS_DOM_PROP_WINDOW_NAME, + NS_DOM_PROP_WINDOW_NAVIGATOR, + NS_DOM_PROP_WINDOW_OPEN, + NS_DOM_PROP_WINDOW_OPENDIALOG, + NS_DOM_PROP_WINDOW_OPENER, + NS_DOM_PROP_WINDOW_OUTERHEIGHT, + NS_DOM_PROP_WINDOW_OUTERWIDTH, + NS_DOM_PROP_WINDOW_PAGEXOFFSET, + NS_DOM_PROP_WINDOW_PAGEYOFFSET, + NS_DOM_PROP_WINDOW_PARENT, + NS_DOM_PROP_WINDOW_PERSONALBAR, + NS_DOM_PROP_WINDOW_PRINT, + NS_DOM_PROP_WINDOW_PROMPT, + NS_DOM_PROP_WINDOW_RELEASEEVENTS, + NS_DOM_PROP_WINDOW_RESIZEBY, + NS_DOM_PROP_WINDOW_RESIZETO, + NS_DOM_PROP_WINDOW_ROUTEEVENT, + NS_DOM_PROP_WINDOW_SCREEN, + NS_DOM_PROP_WINDOW_SCREENX, + NS_DOM_PROP_WINDOW_SCREENY, + NS_DOM_PROP_WINDOW_SCROLLBARS, + NS_DOM_PROP_WINDOW_SCROLLBY, + NS_DOM_PROP_WINDOW_SCROLLTO, + NS_DOM_PROP_WINDOW_SCROLLX, + NS_DOM_PROP_WINDOW_SCROLLY, + NS_DOM_PROP_WINDOW_SELF, + NS_DOM_PROP_WINDOW_SETINTERVAL, + NS_DOM_PROP_WINDOW_SETTIMEOUT, + NS_DOM_PROP_WINDOW_SIZETOCONTENT, + NS_DOM_PROP_WINDOW_STATUS, + NS_DOM_PROP_WINDOW_STATUSBAR, + NS_DOM_PROP_WINDOW_STOP, + NS_DOM_PROP_WINDOW_TOOLBAR, + NS_DOM_PROP_WINDOW_TOP, + NS_DOM_PROP_WINDOW_WINDOW, + NS_DOM_PROP_WINDOWCOLLECTION_ITEM, + NS_DOM_PROP_WINDOWCOLLECTION_LENGTH, + NS_DOM_PROP_WINDOWCOLLECTION_NAMEDITEM, + NS_DOM_PROP_XULCOMMANDDISPATCHER_ADDCOMMANDUPDATER, + NS_DOM_PROP_XULCOMMANDDISPATCHER_FOCUSEDNODE, + NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERFORCOMMAND, + NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERS, + NS_DOM_PROP_XULCOMMANDDISPATCHER_REMOVECOMMANDUPDATER, + NS_DOM_PROP_XULCOMMANDDISPATCHER_UPDATECOMMANDS, + NS_DOM_PROP_XULDOCUMENT_COMMANDDISPATCHER, + NS_DOM_PROP_XULDOCUMENT_GETELEMENTBYID, + NS_DOM_PROP_XULDOCUMENT_GETELEMENTSBYATTRIBUTE, + NS_DOM_PROP_XULDOCUMENT_PERSIST, + NS_DOM_PROP_XULDOCUMENT_POPUPNODE, + NS_DOM_PROP_XULDOCUMENT_TOOLTIPNODE, + NS_DOM_PROP_XULEDITORELEMENT_EDITORSHELL, + NS_DOM_PROP_XULELEMENT_ADDBROADCASTLISTENER, + NS_DOM_PROP_XULELEMENT_CLASSNAME, + NS_DOM_PROP_XULELEMENT_CONTROLLERS, + NS_DOM_PROP_XULELEMENT_DATABASE, + NS_DOM_PROP_XULELEMENT_DOCOMMAND, + NS_DOM_PROP_XULELEMENT_GETELEMENTSBYATTRIBUTE, + NS_DOM_PROP_XULELEMENT_ID, + NS_DOM_PROP_XULELEMENT_REMOVEBROADCASTLISTENER, + NS_DOM_PROP_XULELEMENT_RESOURCE, + NS_DOM_PROP_XULELEMENT_STYLE, + NS_DOM_PROP_XULTREEELEMENT_ADDCELLTOSELECTION, + NS_DOM_PROP_XULTREEELEMENT_ADDITEMTOSELECTION, + NS_DOM_PROP_XULTREEELEMENT_CLEARCELLSELECTION, + NS_DOM_PROP_XULTREEELEMENT_CLEARITEMSELECTION, + NS_DOM_PROP_XULTREEELEMENT_INVERTSELECTION, + NS_DOM_PROP_XULTREEELEMENT_REMOVECELLFROMSELECTION, + NS_DOM_PROP_XULTREEELEMENT_REMOVEITEMFROMSELECTION, + NS_DOM_PROP_XULTREEELEMENT_SELECTALL, + NS_DOM_PROP_XULTREEELEMENT_SELECTCELL, + NS_DOM_PROP_XULTREEELEMENT_SELECTCELLRANGE, + NS_DOM_PROP_XULTREEELEMENT_SELECTEDCELLS, + NS_DOM_PROP_XULTREEELEMENT_SELECTEDITEMS, + NS_DOM_PROP_XULTREEELEMENT_SELECTITEM, + NS_DOM_PROP_XULTREEELEMENT_SELECTITEMRANGE, + NS_DOM_PROP_XULTREEELEMENT_TOGGLECELLSELECTION, + NS_DOM_PROP_XULTREEELEMENT_TOGGLEITEMSELECTION, + NS_DOM_PROP_MAX +}; + +#endif // nsDOMPropEnums_h__ diff --git a/mozilla/dom/public/range/nsIDOMNSRange.h b/mozilla/dom/public/range/nsIDOMNSRange.h index f19dfc994d0..225b6a554fa 100644 --- a/mozilla/dom/public/range/nsIDOMNSRange.h +++ b/mozilla/dom/public/range/nsIDOMNSRange.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/range/nsIDOMRange.h b/mozilla/dom/public/range/nsIDOMRange.h index f9f616c938d..cea63e31707 100644 --- a/mozilla/dom/public/range/nsIDOMRange.h +++ b/mozilla/dom/public/range/nsIDOMRange.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/range/nsIDOMSelection.h b/mozilla/dom/public/range/nsIDOMSelection.h index eeecd7e7987..787ccb05135 100644 --- a/mozilla/dom/public/range/nsIDOMSelection.h +++ b/mozilla/dom/public/range/nsIDOMSelection.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/range/nsIDOMSelectionListener.h b/mozilla/dom/public/range/nsIDOMSelectionListener.h index 007c257acab..b50040ff9f4 100644 --- a/mozilla/dom/public/range/nsIDOMSelectionListener.h +++ b/mozilla/dom/public/range/nsIDOMSelectionListener.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/xul/nsIDOMXULCommandDispatcher.h b/mozilla/dom/public/xul/nsIDOMXULCommandDispatcher.h index b8cb47453b2..93864e44fb4 100644 --- a/mozilla/dom/public/xul/nsIDOMXULCommandDispatcher.h +++ b/mozilla/dom/public/xul/nsIDOMXULCommandDispatcher.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/xul/nsIDOMXULDocument.h b/mozilla/dom/public/xul/nsIDOMXULDocument.h index f88879301a7..09d3ed86bb1 100644 --- a/mozilla/dom/public/xul/nsIDOMXULDocument.h +++ b/mozilla/dom/public/xul/nsIDOMXULDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/xul/nsIDOMXULElement.h b/mozilla/dom/public/xul/nsIDOMXULElement.h index 6cf47fee4f8..987b4c9bde8 100644 --- a/mozilla/dom/public/xul/nsIDOMXULElement.h +++ b/mozilla/dom/public/xul/nsIDOMXULElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/public/xul/nsIDOMXULTreeElement.h b/mozilla/dom/public/xul/nsIDOMXULTreeElement.h index 6691e834ca9..1c5f6eb63a9 100644 --- a/mozilla/dom/public/xul/nsIDOMXULTreeElement.h +++ b/mozilla/dom/public/xul/nsIDOMXULTreeElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 5a1abe86935..49ed8672257 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -76,6 +76,7 @@ #include "nsIURL.h" #include "nsNeckoUtil.h" #include "nsRDFCID.h" +#include "nsDOMPropEnums.h" static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID); #if defined(OJI) @@ -2213,7 +2214,6 @@ GlobalWindowImpl::OpenInternal(JSContext *cx, nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr newUrl; nsCOMPtr secMan; - PRBool ok = PR_FALSE; if (NS_FAILED(scriptCX->GetSecurityManager(getter_AddRefs(secMan))) || NS_FAILED(NS_NewURI(getter_AddRefs(newUrl), mAbsURL)) || NS_FAILED(secMan->CheckLoadURIFromScript(scriptCX, newUrl))) @@ -3365,7 +3365,7 @@ NavigatorImpl::Preference(JSContext* cx, return result; } PRBool ok; - secMan->CheckScriptAccess(scriptCX, self, "navigator.preference", + secMan->CheckScriptAccess(scriptCX, self, NS_DOM_PROP_NAVIGATOR_PREFERENCE, (argc == 1 ? PR_FALSE : PR_TRUE), &ok); if (!ok) { //Need to throw error here diff --git a/mozilla/dom/src/base/nsJSBarProp.cpp b/mozilla/dom/src/base/nsJSBarProp.cpp index 2ed8aa5982b..89f978495a8 100644 --- a/mozilla/dom/src/base/nsJSBarProp.cpp +++ b/mozilla/dom/src/base/nsJSBarProp.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMBarProp.h" @@ -74,7 +71,7 @@ GetBarPropProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case BARPROP_VISIBLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "barprop.visible", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_BARPROP_VISIBLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetBarPropProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case BARPROP_VISIBLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "barprop.visible", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_BARPROP_VISIBLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSDOMException.cpp b/mozilla/dom/src/base/nsJSDOMException.cpp index 73e26258fcf..63c31efc9ef 100644 --- a/mozilla/dom/src/base/nsJSDOMException.cpp +++ b/mozilla/dom/src/base/nsJSDOMException.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMDOMException.h" @@ -77,7 +74,7 @@ GetDOMExceptionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOMEXCEPTION_CODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "domexception.code", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMEXCEPTION_CODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -95,7 +92,7 @@ GetDOMExceptionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOMEXCEPTION_RESULT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "domexception.result", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMEXCEPTION_RESULT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetDOMExceptionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOMEXCEPTION_MESSAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "domexception.message", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMEXCEPTION_MESSAGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetDOMExceptionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOMEXCEPTION_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "domexception.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMEXCEPTION_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -240,7 +237,7 @@ DOMExceptionToString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "domexception.tostring",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMEXCEPTION_TOSTRING,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSHistory.cpp b/mozilla/dom/src/base/nsJSHistory.cpp index 4cff0361766..704eea2bc2c 100644 --- a/mozilla/dom/src/base/nsJSHistory.cpp +++ b/mozilla/dom/src/base/nsJSHistory.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHistory.h" @@ -77,7 +74,7 @@ GetHistoryProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HISTORY_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "history.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -95,7 +92,7 @@ GetHistoryProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HISTORY_CURRENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "history.current", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_CURRENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHistoryProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HISTORY_PREVIOUS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "history.previous", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_PREVIOUS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHistoryProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HISTORY_NEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "history.next", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_NEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -239,7 +236,7 @@ HistoryBack(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "history.back",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_BACK,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ HistoryForward(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "history.forward",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_FORWARD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -325,7 +322,7 @@ HistoryGo(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "history.go",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HISTORY_GO,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSLocation.cpp b/mozilla/dom/src/base/nsJSLocation.cpp index af90f80a329..1925f13609a 100644 --- a/mozilla/dom/src/base/nsJSLocation.cpp +++ b/mozilla/dom/src/base/nsJSLocation.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMLocation.h" @@ -83,7 +80,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HASH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.hash", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HASH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -101,7 +98,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HOST: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.host", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HOST, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -119,7 +116,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HOSTNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.hostname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HOSTNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -137,7 +134,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PATHNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.pathname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PATHNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -155,7 +152,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PORT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.port", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PORT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -173,7 +170,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PROTOCOL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.protocol", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PROTOCOL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -191,7 +188,7 @@ GetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_SEARCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.search", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_SEARCH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -241,7 +238,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HASH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.hash", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HASH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -255,7 +252,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HOST: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.host", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HOST, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -269,7 +266,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_HOSTNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.hostname", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_HOSTNAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -283,7 +280,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PATHNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.pathname", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PATHNAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -297,7 +294,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PORT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.port", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PORT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -311,7 +308,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_PROTOCOL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.protocol", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_PROTOCOL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -325,7 +322,7 @@ SetLocationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case LOCATION_SEARCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "location.search", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_SEARCH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -397,7 +394,7 @@ LocationToString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "location.tostring",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_LOCATION_TOSTRING,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -445,7 +442,7 @@ NSLocationReload(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nslocation.reload",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSLOCATION_RELOAD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -493,7 +490,7 @@ NSLocationReplace(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nslocation.replace",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSLOCATION_REPLACE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSMimeType.cpp b/mozilla/dom/src/base/nsJSMimeType.cpp index f690b32f155..e543e0c1d13 100644 --- a/mozilla/dom/src/base/nsJSMimeType.cpp +++ b/mozilla/dom/src/base/nsJSMimeType.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMMimeType.h" @@ -80,7 +77,7 @@ GetMimeTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MIMETYPE_DESCRIPTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mimetype.description", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPE_DESCRIPTION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -98,7 +95,7 @@ GetMimeTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MIMETYPE_ENABLEDPLUGIN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mimetype.enabledplugin", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPE_ENABLEDPLUGIN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetMimeTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MIMETYPE_SUFFIXES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mimetype.suffixes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPE_SUFFIXES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetMimeTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MIMETYPE_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mimetype.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPE_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSMimeTypeArray.cpp b/mozilla/dom/src/base/nsJSMimeTypeArray.cpp index 2829ce9877a..65a4d37ef67 100644 --- a/mozilla/dom/src/base/nsJSMimeTypeArray.cpp +++ b/mozilla/dom/src/base/nsJSMimeTypeArray.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMMimeType.h" @@ -79,7 +76,7 @@ GetMimeTypeArrayProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MIMETYPEARRAY_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mimetypearray.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPEARRAY_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ MimeTypeArrayItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "mimetypearray.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPEARRAY_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ MimeTypeArrayNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "mimetypearray.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MIMETYPEARRAY_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSNavigator.cpp b/mozilla/dom/src/base/nsJSNavigator.cpp index e39f3d29ba9..a77f8daf92e 100644 --- a/mozilla/dom/src/base/nsJSNavigator.cpp +++ b/mozilla/dom/src/base/nsJSNavigator.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNavigator.h" @@ -88,7 +85,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_APPCODENAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.appcodename", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_APPCODENAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -106,7 +103,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_APPNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.appname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_APPNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_APPVERSION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.appversion", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_APPVERSION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -142,7 +139,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_LANGUAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.language", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_LANGUAGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -160,7 +157,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_MIMETYPES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.mimetypes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_MIMETYPES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -179,7 +176,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_PLATFORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.platform", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_PLATFORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -197,7 +194,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_PLUGINS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.plugins", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_PLUGINS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -216,7 +213,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_SECURITYPOLICY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.securitypolicy", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_SECURITYPOLICY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -234,7 +231,7 @@ GetNavigatorProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAVIGATOR_USERAGENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.useragent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_USERAGENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ NavigatorJavaEnabled(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.javaenabled",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_JAVAENABLED,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -387,7 +384,7 @@ NavigatorTaintEnabled(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.taintenabled",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_TAINTENABLED,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -431,7 +428,7 @@ NavigatorPreference(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "navigator.preference",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAVIGATOR_PREFERENCE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSPlugin.cpp b/mozilla/dom/src/base/nsJSPlugin.cpp index 27374b78014..92ef67e4726 100644 --- a/mozilla/dom/src/base/nsJSPlugin.cpp +++ b/mozilla/dom/src/base/nsJSPlugin.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMMimeType.h" @@ -82,7 +79,7 @@ GetPluginProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case PLUGIN_DESCRIPTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.description", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_DESCRIPTION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetPluginProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case PLUGIN_FILENAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.filename", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_FILENAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -118,7 +115,7 @@ GetPluginProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case PLUGIN_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -136,7 +133,7 @@ GetPluginProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case PLUGIN_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -287,7 +284,7 @@ PluginItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -339,7 +336,7 @@ PluginNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "plugin.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGIN_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSPluginArray.cpp b/mozilla/dom/src/base/nsJSPluginArray.cpp index dbc3364804e..f33e63d505b 100644 --- a/mozilla/dom/src/base/nsJSPluginArray.cpp +++ b/mozilla/dom/src/base/nsJSPluginArray.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMPlugin.h" @@ -79,7 +76,7 @@ GetPluginArrayProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case PLUGINARRAY_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "pluginarray.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGINARRAY_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ PluginArrayItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "pluginarray.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGINARRAY_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ PluginArrayNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "pluginarray.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGINARRAY_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -331,7 +328,7 @@ PluginArrayRefresh(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "pluginarray.refresh",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PLUGINARRAY_REFRESH,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSScreen.cpp b/mozilla/dom/src/base/nsJSScreen.cpp index 06184444a2c..4fdc8648a7b 100644 --- a/mozilla/dom/src/base/nsJSScreen.cpp +++ b/mozilla/dom/src/base/nsJSScreen.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMScreen.h" @@ -81,7 +78,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -99,7 +96,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_PIXELDEPTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.pixeldepth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_PIXELDEPTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_COLORDEPTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.colordepth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_COLORDEPTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_AVAILWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.availwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_AVAILWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_AVAILHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.availheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_AVAILHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -189,7 +186,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_AVAILLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.availleft", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_AVAILLEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -207,7 +204,7 @@ GetScreenProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SCREEN_AVAILTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "screen.availtop", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SCREEN_AVAILTOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSWindow.cpp b/mozilla/dom/src/base/nsJSWindow.cpp index 7466fce4e57..1e656b07f3a 100644 --- a/mozilla/dom/src/base/nsJSWindow.cpp +++ b/mozilla/dom/src/base/nsJSWindow.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNavigator.h" @@ -142,7 +139,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_WINDOW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.window", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_WINDOW, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -161,7 +158,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SELF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.self", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SELF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_DOCUMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.document", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DOCUMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -199,7 +196,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_NAVIGATOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.navigator", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_NAVIGATOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -218,7 +215,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCREEN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.screen", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCREEN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -237,7 +234,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_HISTORY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.history", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_HISTORY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -256,7 +253,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PARENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.parent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PARENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -275,7 +272,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_TOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.top", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_TOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -294,7 +291,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_CONTENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.content", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CONTENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -313,7 +310,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_MENUBAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.menubar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_MENUBAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -332,7 +329,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_TOOLBAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.toolbar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_TOOLBAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -351,7 +348,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_LOCATIONBAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.locationbar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_LOCATIONBAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -370,7 +367,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PERSONALBAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.personalbar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PERSONALBAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -389,7 +386,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_STATUSBAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.statusbar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_STATUSBAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -408,7 +405,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCROLLBARS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.scrollbars", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCROLLBARS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -427,7 +424,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_DIRECTORIES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.directories", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DIRECTORIES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -446,7 +443,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_CLOSED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.closed", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CLOSED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -464,7 +461,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_FRAMES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.frames", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_FRAMES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -483,7 +480,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_CONTROLLERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.controllers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CONTROLLERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -502,7 +499,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OPENER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.opener", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OPENER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -521,7 +518,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_STATUS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.status", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_STATUS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -539,7 +536,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_DEFAULTSTATUS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.defaultstatus", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DEFAULTSTATUS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -557,7 +554,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -575,7 +572,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_INNERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.innerwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_INNERWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -593,7 +590,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_INNERHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.innerheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_INNERHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -611,7 +608,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OUTERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.outerwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OUTERWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -629,7 +626,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OUTERHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.outerheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OUTERHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -647,7 +644,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCREENX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.screenx", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCREENX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -665,7 +662,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCREENY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.screeny", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCREENY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -683,7 +680,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PAGEXOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.pagexoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PAGEXOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -701,7 +698,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PAGEYOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.pageyoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PAGEYOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -719,7 +716,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCROLLX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.scrollx", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCROLLX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -737,7 +734,7 @@ GetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCROLLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.scrolly", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCROLLY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -787,7 +784,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OPENER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.opener", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OPENER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -805,7 +802,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_STATUS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.status", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_STATUS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -819,7 +816,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_DEFAULTSTATUS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.defaultstatus", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DEFAULTSTATUS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -833,7 +830,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -847,7 +844,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_INNERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.innerwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_INNERWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -867,7 +864,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_INNERHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.innerheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_INNERHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -887,7 +884,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OUTERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.outerwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OUTERWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -907,7 +904,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_OUTERHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.outerheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OUTERHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -927,7 +924,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCREENX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.screenx", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCREENX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -947,7 +944,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_SCREENY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.screeny", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCREENY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -967,7 +964,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PAGEXOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.pagexoffset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PAGEXOFFSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -987,7 +984,7 @@ SetWindowProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOW_PAGEYOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "window.pageyoffset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PAGEYOFFSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1065,7 +1062,7 @@ WindowDump(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.dump",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DUMP,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1113,7 +1110,7 @@ WindowAlert(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.alert",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_ALERT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1157,7 +1154,7 @@ WindowConfirm(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.confirm",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CONFIRM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1201,7 +1198,7 @@ WindowPrompt(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.prompt",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PROMPT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1244,7 +1241,7 @@ WindowFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1287,7 +1284,7 @@ WindowBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1330,7 +1327,7 @@ WindowBack(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.back",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_BACK,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1373,7 +1370,7 @@ WindowForward(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.forward",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_FORWARD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1416,7 +1413,7 @@ WindowHome(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.home",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_HOME,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1459,7 +1456,7 @@ WindowStop(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.stop",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_STOP,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1502,7 +1499,7 @@ WindowPrint(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.print",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_PRINT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1547,7 +1544,7 @@ WindowMoveTo(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.moveto",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_MOVETO,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1602,7 +1599,7 @@ WindowMoveBy(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.moveby",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_MOVEBY,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1657,7 +1654,7 @@ WindowResizeTo(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.resizeto",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_RESIZETO,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1712,7 +1709,7 @@ WindowResizeBy(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.resizeby",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_RESIZEBY,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1765,7 +1762,7 @@ WindowSizeToContent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.sizetocontent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SIZETOCONTENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1810,7 +1807,7 @@ WindowScrollTo(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.scrollto",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCROLLTO,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1865,7 +1862,7 @@ WindowScrollBy(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.scrollby",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SCROLLBY,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1919,7 +1916,7 @@ WindowClearTimeout(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.cleartimeout",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CLEARTIMEOUT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1970,7 +1967,7 @@ WindowClearInterval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.clearinterval",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CLEARINTERVAL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2021,7 +2018,7 @@ WindowSetTimeout(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.settimeout",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SETTIMEOUT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2065,7 +2062,7 @@ WindowSetInterval(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.setinterval",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_SETINTERVAL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2109,7 +2106,7 @@ WindowCaptureEvents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.captureevents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CAPTUREEVENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2160,7 +2157,7 @@ WindowReleaseEvents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.releaseevents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_RELEASEEVENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2211,7 +2208,7 @@ WindowRouteEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.routeevent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_ROUTEEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2265,7 +2262,7 @@ WindowEnableExternalCapture(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.enableexternalcapture",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_ENABLEEXTERNALCAPTURE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2308,7 +2305,7 @@ WindowDisableExternalCapture(JSContext *cx, JSObject *obj, uintN argc, jsval *ar } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.disableexternalcapture",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_DISABLEEXTERNALCAPTURE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2359,7 +2356,7 @@ WindowCreatePopup(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.createpopup",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CREATEPOPUP,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2430,7 +2427,7 @@ WindowOpen(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.open",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OPEN,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2474,7 +2471,7 @@ WindowOpenDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.opendialog",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_OPENDIALOG,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2517,7 +2514,7 @@ WindowClose(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "window.close",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOW_CLOSE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2568,7 +2565,7 @@ EventTargetAddEventListener(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "eventtarget.addeventlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENTTARGET_ADDEVENTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2633,7 +2630,7 @@ EventTargetRemoveEventListener(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "eventtarget.removeeventlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENTTARGET_REMOVEEVENTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsJSWindowCollection.cpp b/mozilla/dom/src/base/nsJSWindowCollection.cpp index ff1fe57bf77..3b2a881234e 100644 --- a/mozilla/dom/src/base/nsJSWindowCollection.cpp +++ b/mozilla/dom/src/base/nsJSWindowCollection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMWindowCollection.h" @@ -79,7 +76,7 @@ GetWindowCollectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case WINDOWCOLLECTION_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "windowcollection.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOWCOLLECTION_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ WindowCollectionItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "windowcollection.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOWCOLLECTION_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ WindowCollectionNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "windowcollection.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_WINDOWCOLLECTION_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/base/nsLocation.cpp b/mozilla/dom/src/base/nsLocation.cpp index ac9bd13d8e3..aeef8acc2b9 100644 --- a/mozilla/dom/src/base/nsLocation.cpp +++ b/mozilla/dom/src/base/nsLocation.cpp @@ -146,7 +146,6 @@ LocationImpl::CheckURL(nsIURI* aURL) return NS_ERROR_FAILURE; // Check to see if URI is allowed. - PRBool ok = PR_FALSE; if (NS_FAILED(result = secMan->CheckLoadURIFromScript(scriptCX, aURL))) return result; diff --git a/mozilla/dom/src/build/nsHTMLTagsEnums.cpp b/mozilla/dom/src/build/nsHTMLTagsEnums.cpp index 3b325052e17..9e2a2e6dca6 100644 --- a/mozilla/dom/src/build/nsHTMLTagsEnums.cpp +++ b/mozilla/dom/src/build/nsHTMLTagsEnums.cpp @@ -1,23 +1,20 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. * * The Original Code is Mozilla Communicator client code. * * The Initial Developer of the Original Code is Netscape Communications - * Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Corporation. Portions created by Netscape are Copyright (C) 1998 + * Netscape Communications Corporation. All Rights Reserved. */ /* Do not edit - generated by gentags.pl */ diff --git a/mozilla/dom/src/build/nsHTMLTagsEnums.h b/mozilla/dom/src/build/nsHTMLTagsEnums.h index cc3afd175cc..3d1f2ee9d2d 100644 --- a/mozilla/dom/src/build/nsHTMLTagsEnums.h +++ b/mozilla/dom/src/build/nsHTMLTagsEnums.h @@ -1,23 +1,20 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the License is distributed on an "AS IS" + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See + * the License for the specific language governing rights and limitations + * under the License. * * The Original Code is Mozilla Communicator client code. * * The Initial Developer of the Original Code is Netscape Communications - * Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Corporation. Portions created by Netscape are Copyright (C) 1998 + * Netscape Communications Corporation. All Rights Reserved. */ /* Do not edit - generated by gentags.pl */ diff --git a/mozilla/dom/src/coreDOM/nsJSAttr.cpp b/mozilla/dom/src/coreDOM/nsJSAttr.cpp index cb9f4ec252c..ad9c220c5d5 100644 --- a/mozilla/dom/src/coreDOM/nsJSAttr.cpp +++ b/mozilla/dom/src/coreDOM/nsJSAttr.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMAttr.h" @@ -76,7 +73,7 @@ GetAttrProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ATTR_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "attr.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ATTR_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetAttrProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ATTR_SPECIFIED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "attr.specified", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ATTR_SPECIFIED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetAttrProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ATTR_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "attr.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ATTR_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetAttrProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ATTR_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "attr.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ATTR_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSCDATASection.cpp b/mozilla/dom/src/coreDOM/nsJSCDATASection.cpp index cd4ad3b4a38..853827f3c75 100644 --- a/mozilla/dom/src/coreDOM/nsJSCDATASection.cpp +++ b/mozilla/dom/src/coreDOM/nsJSCDATASection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCDATASection.h" diff --git a/mozilla/dom/src/coreDOM/nsJSCharacterData.cpp b/mozilla/dom/src/coreDOM/nsJSCharacterData.cpp index 3e6fa78df07..f3231c660ac 100644 --- a/mozilla/dom/src/coreDOM/nsJSCharacterData.cpp +++ b/mozilla/dom/src/coreDOM/nsJSCharacterData.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCharacterData.h" @@ -75,7 +72,7 @@ GetCharacterDataProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CHARACTERDATA_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.data", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_DATA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetCharacterDataProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CHARACTERDATA_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetCharacterDataProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CHARACTERDATA_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.data", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_DATA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -217,7 +214,7 @@ CharacterDataSubstringData(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.substringdata",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_SUBSTRINGDATA,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -271,7 +268,7 @@ CharacterDataAppendData(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.appenddata",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_APPENDDATA,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -321,7 +318,7 @@ CharacterDataInsertData(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.insertdata",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_INSERTDATA,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -374,7 +371,7 @@ CharacterDataDeleteData(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.deletedata",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_DELETEDATA,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -430,7 +427,7 @@ CharacterDataReplaceData(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "characterdata.replacedata",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CHARACTERDATA_REPLACEDATA,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSComment.cpp b/mozilla/dom/src/coreDOM/nsJSComment.cpp index ee037c10423..b8334586c2b 100644 --- a/mozilla/dom/src/coreDOM/nsJSComment.cpp +++ b/mozilla/dom/src/coreDOM/nsJSComment.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMComment.h" diff --git a/mozilla/dom/src/coreDOM/nsJSDOMImplementation.cpp b/mozilla/dom/src/coreDOM/nsJSDOMImplementation.cpp index 2fb83afef0d..df25b04dafc 100644 --- a/mozilla/dom/src/coreDOM/nsJSDOMImplementation.cpp +++ b/mozilla/dom/src/coreDOM/nsJSDOMImplementation.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMDOMImplementation.h" @@ -162,7 +159,7 @@ DOMImplementationHasFeature(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "domimplementation.hasfeature",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOMIMPLEMENTATION_HASFEATURE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSDocument.cpp b/mozilla/dom/src/coreDOM/nsJSDocument.cpp index 473bb3c38da..6a0e0cc9d04 100644 --- a/mozilla/dom/src/coreDOM/nsJSDocument.cpp +++ b/mozilla/dom/src/coreDOM/nsJSDocument.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -121,7 +118,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENT_DOCTYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "document.doctype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_DOCTYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -140,7 +137,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENT_IMPLEMENTATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "document.implementation", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_IMPLEMENTATION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -159,7 +156,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENT_DOCUMENTELEMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "document.documentelement", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_DOCUMENTELEMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -178,7 +175,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSDOCUMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsdocument.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSDOCUMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -204,7 +201,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSDOCUMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsdocument.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSDOCUMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ GetDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSDOCUMENT_STYLESHEETS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsdocument.stylesheets", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSDOCUMENT_STYLESHEETS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -349,7 +346,7 @@ DocumentCreateElement(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createelement",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATEELEMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -398,7 +395,7 @@ DocumentCreateDocumentFragment(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createdocumentfragment",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATEDOCUMENTFRAGMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -443,7 +440,7 @@ DocumentCreateTextNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createtextnode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATETEXTNODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -493,7 +490,7 @@ DocumentCreateComment(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createcomment",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATECOMMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -543,7 +540,7 @@ DocumentCreateCDATASection(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createcdatasection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATECDATASECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -594,7 +591,7 @@ DocumentCreateProcessingInstruction(JSContext *cx, JSObject *obj, uintN argc, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createprocessinginstruction",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATEPROCESSINGINSTRUCTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -645,7 +642,7 @@ DocumentCreateAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATEATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -695,7 +692,7 @@ DocumentCreateEntityReference(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.createentityreference",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_CREATEENTITYREFERENCE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -745,7 +742,7 @@ DocumentGetElementsByTagName(JSContext *cx, JSObject *obj, uintN argc, jsval *ar } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "document.getelementsbytagname",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENT_GETELEMENTSBYTAGNAME,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -801,7 +798,7 @@ NSDocumentCreateElementWithNameSpace(JSContext *cx, JSObject *obj, uintN argc, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nsdocument.createelementwithnamespace",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSDOCUMENT_CREATEELEMENTWITHNAMESPACE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -856,7 +853,7 @@ NSDocumentCreateRange(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nsdocument.createrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSDOCUMENT_CREATERANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSDocumentFragment.cpp b/mozilla/dom/src/coreDOM/nsJSDocumentFragment.cpp index e118fc7eaf6..2f456786f69 100644 --- a/mozilla/dom/src/coreDOM/nsJSDocumentFragment.cpp +++ b/mozilla/dom/src/coreDOM/nsJSDocumentFragment.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMDocumentFragment.h" diff --git a/mozilla/dom/src/coreDOM/nsJSDocumentType.cpp b/mozilla/dom/src/coreDOM/nsJSDocumentType.cpp index 769979ca314..82d25f71441 100644 --- a/mozilla/dom/src/coreDOM/nsJSDocumentType.cpp +++ b/mozilla/dom/src/coreDOM/nsJSDocumentType.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNamedNodeMap.h" @@ -79,7 +76,7 @@ GetDocumentTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENTTYPE_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "documenttype.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENTTYPE_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetDocumentTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENTTYPE_ENTITIES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "documenttype.entities", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENTTYPE_ENTITIES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -116,7 +113,7 @@ GetDocumentTypeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case DOCUMENTTYPE_NOTATIONS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "documenttype.notations", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_DOCUMENTTYPE_NOTATIONS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSElement.cpp b/mozilla/dom/src/coreDOM/nsJSElement.cpp index b6214ce4469..a84b90a3020 100644 --- a/mozilla/dom/src/coreDOM/nsJSElement.cpp +++ b/mozilla/dom/src/coreDOM/nsJSElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -80,7 +77,7 @@ GetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ELEMENT_TAGNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "element.tagname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_TAGNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ ElementGetAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.getattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_GETATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -240,7 +237,7 @@ ElementSetAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.setattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_SETATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -290,7 +287,7 @@ ElementRemoveAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.removeattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_REMOVEATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -340,7 +337,7 @@ ElementGetAttributeNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.getattributenode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_GETATTRIBUTENODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -390,7 +387,7 @@ ElementSetAttributeNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.setattributenode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_SETATTRIBUTENODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -446,7 +443,7 @@ ElementRemoveAttributeNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.removeattributenode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_REMOVEATTRIBUTENODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -502,7 +499,7 @@ ElementGetElementsByTagName(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.getelementsbytagname",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_GETELEMENTSBYTAGNAME,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -550,7 +547,7 @@ ElementNormalize(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "element.normalize",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ELEMENT_NORMALIZE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSEntity.cpp b/mozilla/dom/src/coreDOM/nsJSEntity.cpp index 8aa17f772b4..30754f33584 100644 --- a/mozilla/dom/src/coreDOM/nsJSEntity.cpp +++ b/mozilla/dom/src/coreDOM/nsJSEntity.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMEntity.h" @@ -76,7 +73,7 @@ GetEntityProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ENTITY_PUBLICID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "entity.publicid", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ENTITY_PUBLICID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetEntityProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ENTITY_SYSTEMID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "entity.systemid", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ENTITY_SYSTEMID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetEntityProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case ENTITY_NOTATIONNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "entity.notationname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_ENTITY_NOTATIONNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSEntityReference.cpp b/mozilla/dom/src/coreDOM/nsJSEntityReference.cpp index 9a5bfff6f55..281dcb49fcc 100644 --- a/mozilla/dom/src/coreDOM/nsJSEntityReference.cpp +++ b/mozilla/dom/src/coreDOM/nsJSEntityReference.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMEntityReference.h" diff --git a/mozilla/dom/src/coreDOM/nsJSNamedNodeMap.cpp b/mozilla/dom/src/coreDOM/nsJSNamedNodeMap.cpp index dc06b6973ca..23784a603b0 100644 --- a/mozilla/dom/src/coreDOM/nsJSNamedNodeMap.cpp +++ b/mozilla/dom/src/coreDOM/nsJSNamedNodeMap.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNamedNodeMap.h" @@ -77,7 +74,7 @@ GetNamedNodeMapProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NAMEDNODEMAP_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "namednodemap.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAMEDNODEMAP_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -198,7 +195,7 @@ NamedNodeMapGetNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "namednodemap.getnameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAMEDNODEMAP_GETNAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -248,7 +245,7 @@ NamedNodeMapSetNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "namednodemap.setnameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAMEDNODEMAP_SETNAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -304,7 +301,7 @@ NamedNodeMapRemoveNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "namednodemap.removenameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAMEDNODEMAP_REMOVENAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -354,7 +351,7 @@ NamedNodeMapItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "namednodemap.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NAMEDNODEMAP_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSNode.cpp b/mozilla/dom/src/coreDOM/nsJSNode.cpp index b84ad19bd55..41c7aa474ef 100644 --- a/mozilla/dom/src/coreDOM/nsJSNode.cpp +++ b/mozilla/dom/src/coreDOM/nsJSNode.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMDocument.h" @@ -99,7 +96,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_NODENAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.nodename", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_NODENAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_NODEVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.nodevalue", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_NODEVALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_NODETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.nodetype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_NODETYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_PARENTNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.parentnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_PARENTNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -172,7 +169,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_CHILDNODES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.childnodes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_CHILDNODES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -191,7 +188,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_FIRSTCHILD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.firstchild", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_FIRSTCHILD, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -210,7 +207,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_LASTCHILD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.lastchild", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_LASTCHILD, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -229,7 +226,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_PREVIOUSSIBLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.previoussibling", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_PREVIOUSSIBLING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -248,7 +245,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_NEXTSIBLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.nextsibling", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_NEXTSIBLING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -267,7 +264,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_ATTRIBUTES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.attributes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_ATTRIBUTES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -286,7 +283,7 @@ GetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_OWNERDOCUMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.ownerdocument", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_OWNERDOCUMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -337,7 +334,7 @@ SetNodeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODE_NODEVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "node.nodevalue", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_NODEVALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -411,7 +408,7 @@ NodeInsertBefore(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.insertbefore",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_INSERTBEFORE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -475,7 +472,7 @@ NodeReplaceChild(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.replacechild",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_REPLACECHILD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -538,7 +535,7 @@ NodeRemoveChild(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.removechild",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_REMOVECHILD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -594,7 +591,7 @@ NodeAppendChild(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.appendchild",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_APPENDCHILD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -649,7 +646,7 @@ NodeHasChildNodes(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.haschildnodes",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_HASCHILDNODES,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -694,7 +691,7 @@ NodeCloneNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "node.clonenode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODE_CLONENODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -752,7 +749,7 @@ EventTargetAddEventListener(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "eventtarget.addeventlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENTTARGET_ADDEVENTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -817,7 +814,7 @@ EventTargetRemoveEventListener(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "eventtarget.removeeventlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENTTARGET_REMOVEEVENTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSNodeList.cpp b/mozilla/dom/src/coreDOM/nsJSNodeList.cpp index 864eec6a1ea..c664df9a1cd 100644 --- a/mozilla/dom/src/coreDOM/nsJSNodeList.cpp +++ b/mozilla/dom/src/coreDOM/nsJSNodeList.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNode.h" @@ -77,7 +74,7 @@ GetNodeListProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NODELIST_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nodelist.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODELIST_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -198,7 +195,7 @@ NodeListItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nodelist.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NODELIST_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSNotation.cpp b/mozilla/dom/src/coreDOM/nsJSNotation.cpp index b0a63d9ac17..170a1ca00d5 100644 --- a/mozilla/dom/src/coreDOM/nsJSNotation.cpp +++ b/mozilla/dom/src/coreDOM/nsJSNotation.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNotation.h" @@ -75,7 +72,7 @@ GetNotationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NOTATION_PUBLICID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "notation.publicid", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NOTATION_PUBLICID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetNotationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NOTATION_SYSTEMID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "notation.systemid", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NOTATION_SYSTEMID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSProcessingInstruction.cpp b/mozilla/dom/src/coreDOM/nsJSProcessingInstruction.cpp index 1a706b5a0b4..5f4c7214c65 100644 --- a/mozilla/dom/src/coreDOM/nsJSProcessingInstruction.cpp +++ b/mozilla/dom/src/coreDOM/nsJSProcessingInstruction.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMProcessingInstruction.h" @@ -75,7 +72,7 @@ GetProcessingInstructionProperty(JSContext *cx, JSObject *obj, jsval id, jsval * case PROCESSINGINSTRUCTION_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "processinginstruction.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PROCESSINGINSTRUCTION_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetProcessingInstructionProperty(JSContext *cx, JSObject *obj, jsval id, jsval * case PROCESSINGINSTRUCTION_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "processinginstruction.data", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PROCESSINGINSTRUCTION_DATA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetProcessingInstructionProperty(JSContext *cx, JSObject *obj, jsval id, jsval * case PROCESSINGINSTRUCTION_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "processinginstruction.data", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_PROCESSINGINSTRUCTION_DATA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSStyleSheet.cpp b/mozilla/dom/src/coreDOM/nsJSStyleSheet.cpp index bc8fe31f142..361f1f0dad6 100644 --- a/mozilla/dom/src/coreDOM/nsJSStyleSheet.cpp +++ b/mozilla/dom/src/coreDOM/nsJSStyleSheet.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMStyleSheet.h" @@ -76,7 +73,7 @@ GetStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case STYLESHEET_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheet.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEET_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case STYLESHEET_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheet.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEET_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case STYLESHEET_READONLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheet.readonly", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEET_READONLY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case STYLESHEET_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheet.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEET_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSStyleSheetCollection.cpp b/mozilla/dom/src/coreDOM/nsJSStyleSheetCollection.cpp index 9786fad998a..1f3335b8078 100644 --- a/mozilla/dom/src/coreDOM/nsJSStyleSheetCollection.cpp +++ b/mozilla/dom/src/coreDOM/nsJSStyleSheetCollection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMStyleSheetCollection.h" @@ -77,7 +74,7 @@ GetStyleSheetCollectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case STYLESHEETCOLLECTION_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheetcollection.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEETCOLLECTION_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -198,7 +195,7 @@ StyleSheetCollectionItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "stylesheetcollection.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_STYLESHEETCOLLECTION_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/coreDOM/nsJSText.cpp b/mozilla/dom/src/coreDOM/nsJSText.cpp index 4d4857d14b0..5f0d3a04568 100644 --- a/mozilla/dom/src/coreDOM/nsJSText.cpp +++ b/mozilla/dom/src/coreDOM/nsJSText.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMText.h" @@ -161,7 +158,7 @@ TextSplitText(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "text.splittext",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TEXT_SPLITTEXT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSS2Properties.cpp b/mozilla/dom/src/css/nsJSCSS2Properties.cpp index 9da140c44a5..09d0d59c1f3 100644 --- a/mozilla/dom/src/css/nsJSCSS2Properties.cpp +++ b/mozilla/dom/src/css/nsJSCSS2Properties.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSS2Properties.h" @@ -196,7 +193,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_AZIMUTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.azimuth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_AZIMUTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -214,7 +211,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.background", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUND, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -232,7 +229,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDATTACHMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundattachment", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDATTACHMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -250,7 +247,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -268,7 +265,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDIMAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundimage", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDIMAGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -286,7 +283,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDPOSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundposition", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDPOSITION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -304,7 +301,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDREPEAT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundrepeat", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDREPEAT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -322,7 +319,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.border", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -340,7 +337,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERCOLLAPSE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordercollapse", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLLAPSE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -358,7 +355,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordercolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -376,7 +373,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderspacing", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERSPACING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -394,7 +391,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -412,7 +409,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertop", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -430,7 +427,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderright", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -448,7 +445,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottom", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -466,7 +463,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleft", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -484,7 +481,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -502,7 +499,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -520,7 +517,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -538,7 +535,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -556,7 +553,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -574,7 +571,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -592,7 +589,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -610,7 +607,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -628,7 +625,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -646,7 +643,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -664,7 +661,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -682,7 +679,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -700,7 +697,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -718,7 +715,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bottom", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BOTTOM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -736,7 +733,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CAPTIONSIDE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.captionside", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CAPTIONSIDE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -754,7 +751,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CLEAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.clear", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CLEAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -772,7 +769,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CLIP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.clip", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CLIP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -790,7 +787,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.color", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -808,7 +805,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CONTENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.content", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CONTENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -826,7 +823,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COUNTERINCREMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.counterincrement", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COUNTERINCREMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -844,7 +841,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COUNTERRESET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.counterreset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COUNTERRESET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -862,7 +859,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cue", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -880,7 +877,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUEAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cueafter", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUEAFTER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -898,7 +895,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUEBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cuebefore", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUEBEFORE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -916,7 +913,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CURSOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cursor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CURSOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -934,7 +931,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_DIRECTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.direction", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_DIRECTION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -952,7 +949,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_DISPLAY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.display", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_DISPLAY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -970,7 +967,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ELEVATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.elevation", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ELEVATION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -988,7 +985,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_EMPTYCELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.emptycells", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_EMPTYCELLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1006,7 +1003,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CSSFLOAT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cssfloat", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CSSFLOAT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1024,7 +1021,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.font", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1042,7 +1039,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTFAMILY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontfamily", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTFAMILY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1060,7 +1057,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontsize", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1078,7 +1075,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSIZEADJUST: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontsizeadjust", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSIZEADJUST, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1096,7 +1093,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSTRETCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontstretch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSTRETCH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1114,7 +1111,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontstyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1132,7 +1129,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTVARIANT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontvariant", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTVARIANT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1150,7 +1147,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTWEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontweight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTWEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1168,7 +1165,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1186,7 +1183,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.left", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1204,7 +1201,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LETTERSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.letterspacing", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LETTERSPACING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1222,7 +1219,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LINEHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.lineheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LINEHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1240,7 +1237,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1258,7 +1255,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLEIMAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyleimage", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEIMAGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1276,7 +1273,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLEPOSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyleposition", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEPOSITION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1294,7 +1291,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyletype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLETYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1312,7 +1309,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGIN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.margin", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGIN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1330,7 +1327,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.margintop", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINTOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1348,7 +1345,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginright", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINRIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1366,7 +1363,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginbottom", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINBOTTOM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1384,7 +1381,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginleft", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINLEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1402,7 +1399,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARKEROFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.markeroffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARKEROFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1420,7 +1417,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARKS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marks", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARKS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1438,7 +1435,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MAXHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.maxheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MAXHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1456,7 +1453,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MAXWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.maxwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MAXWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1474,7 +1471,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.minheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MINHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1492,7 +1489,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.minwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MINWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1510,7 +1507,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ORPHANS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.orphans", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ORPHANS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1528,7 +1525,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outline", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1546,7 +1543,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINECOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinecolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINECOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1564,7 +1561,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINESTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinestyle", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINESTYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1582,7 +1579,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINEWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinewidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINEWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1600,7 +1597,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OVERFLOW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.overflow", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OVERFLOW, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1618,7 +1615,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.padding", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1636,7 +1633,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingtop", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGTOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1654,7 +1651,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingright", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGRIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1672,7 +1669,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingbottom", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGBOTTOM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1690,7 +1687,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingleft", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGLEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1708,7 +1705,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.page", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1726,7 +1723,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakafter", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKAFTER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1744,7 +1741,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakbefore", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKBEFORE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1762,7 +1759,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKINSIDE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakinside", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKINSIDE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1780,7 +1777,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pause", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1798,7 +1795,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSEAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pauseafter", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSEAFTER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1816,7 +1813,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSEBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pausebefore", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSEBEFORE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1834,7 +1831,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PITCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pitch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PITCH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1852,7 +1849,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PITCHRANGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pitchrange", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PITCHRANGE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1870,7 +1867,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PLAYDURING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.playduring", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PLAYDURING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1888,7 +1885,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_POSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.position", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_POSITION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1906,7 +1903,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_QUOTES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.quotes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_QUOTES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1924,7 +1921,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_RICHNESS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.richness", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_RICHNESS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1942,7 +1939,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_RIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.right", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_RIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1960,7 +1957,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1978,7 +1975,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speak", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAK, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1996,7 +1993,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKHEADER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speakheader", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKHEADER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2014,7 +2011,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKNUMERAL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speaknumeral", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKNUMERAL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2032,7 +2029,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKPUNCTUATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speakpunctuation", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKPUNCTUATION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2050,7 +2047,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEECHRATE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speechrate", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEECHRATE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2068,7 +2065,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_STRESS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.stress", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_STRESS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2086,7 +2083,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TABLELAYOUT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.tablelayout", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TABLELAYOUT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2104,7 +2101,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textalign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2122,7 +2119,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTDECORATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textdecoration", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTDECORATION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2140,7 +2137,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTINDENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textindent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTINDENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2158,7 +2155,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTSHADOW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textshadow", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTSHADOW, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2176,7 +2173,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTTRANSFORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.texttransform", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTTRANSFORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2194,7 +2191,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.top", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2212,7 +2209,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_UNICODEBIDI: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.unicodebidi", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_UNICODEBIDI, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2230,7 +2227,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VERTICALALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.verticalalign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VERTICALALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2248,7 +2245,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VISIBILITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.visibility", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VISIBILITY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2266,7 +2263,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VOICEFAMILY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.voicefamily", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VOICEFAMILY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2284,7 +2281,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VOLUME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.volume", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VOLUME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2302,7 +2299,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WHITESPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.whitespace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WHITESPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2320,7 +2317,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WIDOWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.widows", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WIDOWS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2338,7 +2335,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2356,7 +2353,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WORDSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.wordspacing", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WORDSPACING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2374,7 +2371,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ZINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.zindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ZINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2392,7 +2389,7 @@ GetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OPACITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.opacity", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OPACITY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2442,7 +2439,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_AZIMUTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.azimuth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_AZIMUTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2456,7 +2453,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.background", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUND, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2470,7 +2467,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDATTACHMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundattachment", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDATTACHMENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2484,7 +2481,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2498,7 +2495,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDIMAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundimage", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDIMAGE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2512,7 +2509,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDPOSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundposition", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDPOSITION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2526,7 +2523,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BACKGROUNDREPEAT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.backgroundrepeat", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BACKGROUNDREPEAT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2540,7 +2537,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.border", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2554,7 +2551,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERCOLLAPSE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordercollapse", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLLAPSE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2568,7 +2565,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordercolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2582,7 +2579,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderspacing", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERSPACING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2596,7 +2593,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2610,7 +2607,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertop", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2624,7 +2621,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderright", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2638,7 +2635,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottom", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOM, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2652,7 +2649,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleft", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2666,7 +2663,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2680,7 +2677,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2694,7 +2691,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2708,7 +2705,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2722,7 +2719,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2736,7 +2733,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2750,7 +2747,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2764,7 +2761,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2778,7 +2775,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERTOPWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bordertopwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERTOPWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2792,7 +2789,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERRIGHTWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderrightwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERRIGHTWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2806,7 +2803,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERBOTTOMWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderbottomwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERBOTTOMWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2820,7 +2817,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERLEFTWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderleftwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERLEFTWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2834,7 +2831,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BORDERWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.borderwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BORDERWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2848,7 +2845,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_BOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.bottom", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_BOTTOM, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2862,7 +2859,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CAPTIONSIDE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.captionside", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CAPTIONSIDE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2876,7 +2873,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CLEAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.clear", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CLEAR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2890,7 +2887,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CLIP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.clip", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CLIP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2904,7 +2901,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.color", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2918,7 +2915,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CONTENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.content", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CONTENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2932,7 +2929,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COUNTERINCREMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.counterincrement", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COUNTERINCREMENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2946,7 +2943,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_COUNTERRESET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.counterreset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_COUNTERRESET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2960,7 +2957,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cue", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2974,7 +2971,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUEAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cueafter", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUEAFTER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -2988,7 +2985,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CUEBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cuebefore", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CUEBEFORE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3002,7 +2999,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CURSOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cursor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CURSOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3016,7 +3013,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_DIRECTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.direction", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_DIRECTION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3030,7 +3027,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_DISPLAY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.display", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_DISPLAY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3044,7 +3041,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ELEVATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.elevation", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ELEVATION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3058,7 +3055,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_EMPTYCELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.emptycells", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_EMPTYCELLS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3072,7 +3069,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_CSSFLOAT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.cssfloat", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_CSSFLOAT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3086,7 +3083,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.font", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3100,7 +3097,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTFAMILY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontfamily", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTFAMILY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3114,7 +3111,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontsize", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3128,7 +3125,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSIZEADJUST: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontsizeadjust", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSIZEADJUST, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3142,7 +3139,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSTRETCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontstretch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSTRETCH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3156,7 +3153,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontstyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3170,7 +3167,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTVARIANT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontvariant", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTVARIANT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3184,7 +3181,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_FONTWEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.fontweight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_FONTWEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3198,7 +3195,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3212,7 +3209,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.left", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LEFT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3226,7 +3223,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LETTERSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.letterspacing", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LETTERSPACING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3240,7 +3237,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LINEHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.lineheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LINEHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3254,7 +3251,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3268,7 +3265,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLEIMAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyleimage", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEIMAGE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3282,7 +3279,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLEPOSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyleposition", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLEPOSITION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3296,7 +3293,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_LISTSTYLETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.liststyletype", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_LISTSTYLETYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3310,7 +3307,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGIN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.margin", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGIN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3324,7 +3321,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.margintop", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINTOP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3338,7 +3335,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginright", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINRIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3352,7 +3349,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginbottom", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINBOTTOM, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3366,7 +3363,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARGINLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marginleft", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARGINLEFT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3380,7 +3377,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARKEROFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.markeroffset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARKEROFFSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3394,7 +3391,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MARKS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.marks", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MARKS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3408,7 +3405,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MAXHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.maxheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MAXHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3422,7 +3419,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MAXWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.maxwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MAXWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3436,7 +3433,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.minheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MINHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3450,7 +3447,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_MINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.minwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_MINWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3464,7 +3461,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ORPHANS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.orphans", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ORPHANS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3478,7 +3475,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outline", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3492,7 +3489,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINECOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinecolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINECOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3506,7 +3503,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINESTYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinestyle", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINESTYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3520,7 +3517,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OUTLINEWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.outlinewidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OUTLINEWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3534,7 +3531,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OVERFLOW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.overflow", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OVERFLOW, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3548,7 +3545,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.padding", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3562,7 +3559,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGTOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingtop", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGTOP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3576,7 +3573,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGRIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingright", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGRIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3590,7 +3587,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGBOTTOM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingbottom", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGBOTTOM, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3604,7 +3601,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PADDINGLEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.paddingleft", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PADDINGLEFT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3618,7 +3615,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.page", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3632,7 +3629,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakafter", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKAFTER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3646,7 +3643,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakbefore", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKBEFORE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3660,7 +3657,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAGEBREAKINSIDE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pagebreakinside", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAGEBREAKINSIDE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3674,7 +3671,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pause", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3688,7 +3685,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSEAFTER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pauseafter", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSEAFTER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3702,7 +3699,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PAUSEBEFORE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pausebefore", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PAUSEBEFORE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3716,7 +3713,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PITCH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pitch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PITCH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3730,7 +3727,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PITCHRANGE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.pitchrange", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PITCHRANGE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3744,7 +3741,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_PLAYDURING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.playduring", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_PLAYDURING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3758,7 +3755,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_POSITION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.position", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_POSITION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3772,7 +3769,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_QUOTES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.quotes", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_QUOTES, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3786,7 +3783,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_RICHNESS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.richness", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_RICHNESS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3800,7 +3797,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_RIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.right", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_RIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3814,7 +3811,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3828,7 +3825,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speak", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAK, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3842,7 +3839,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKHEADER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speakheader", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKHEADER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3856,7 +3853,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKNUMERAL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speaknumeral", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKNUMERAL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3870,7 +3867,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEAKPUNCTUATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speakpunctuation", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEAKPUNCTUATION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3884,7 +3881,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_SPEECHRATE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.speechrate", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_SPEECHRATE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3898,7 +3895,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_STRESS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.stress", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_STRESS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3912,7 +3909,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TABLELAYOUT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.tablelayout", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TABLELAYOUT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3926,7 +3923,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textalign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3940,7 +3937,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTDECORATION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textdecoration", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTDECORATION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3954,7 +3951,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTINDENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textindent", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTINDENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3968,7 +3965,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTSHADOW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.textshadow", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTSHADOW, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3982,7 +3979,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TEXTTRANSFORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.texttransform", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TEXTTRANSFORM, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -3996,7 +3993,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_TOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.top", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_TOP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4010,7 +4007,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_UNICODEBIDI: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.unicodebidi", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_UNICODEBIDI, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4024,7 +4021,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VERTICALALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.verticalalign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VERTICALALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4038,7 +4035,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VISIBILITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.visibility", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VISIBILITY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4052,7 +4049,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VOICEFAMILY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.voicefamily", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VOICEFAMILY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4066,7 +4063,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_VOLUME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.volume", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_VOLUME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4080,7 +4077,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WHITESPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.whitespace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WHITESPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4094,7 +4091,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WIDOWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.widows", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WIDOWS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4108,7 +4105,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4122,7 +4119,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_WORDSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.wordspacing", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_WORDSPACING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4136,7 +4133,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_ZINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.zindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_ZINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -4150,7 +4147,7 @@ SetCSS2PropertiesProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSS2PROPERTIES_OPACITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "css2properties.opacity", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSS2PROPERTIES_OPACITY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSFontFaceRule.cpp b/mozilla/dom/src/css/nsJSCSSFontFaceRule.cpp index 2bf1c233798..412172e19cf 100644 --- a/mozilla/dom/src/css/nsJSCSSFontFaceRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSFontFaceRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSStyleDeclaration.h" @@ -77,7 +74,7 @@ GetCSSFontFaceRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSFONTFACERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssfontfacerule.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSFONTFACERULE_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -128,7 +125,7 @@ SetCSSFontFaceRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSFONTFACERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssfontfacerule.style", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSFONTFACERULE_STYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSImportRule.cpp b/mozilla/dom/src/css/nsJSCSSImportRule.cpp index ad54fde23d7..c27d20204dd 100644 --- a/mozilla/dom/src/css/nsJSCSSImportRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSImportRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSImportRule.h" @@ -79,7 +76,7 @@ GetCSSImportRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSIMPORTRULE_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssimportrule.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSIMPORTRULE_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetCSSImportRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSIMPORTRULE_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssimportrule.media", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSIMPORTRULE_MEDIA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetCSSImportRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSIMPORTRULE_STYLESHEET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssimportrule.stylesheet", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSIMPORTRULE_STYLESHEET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -166,7 +163,7 @@ SetCSSImportRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSIMPORTRULE_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssimportrule.href", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSIMPORTRULE_HREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ SetCSSImportRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSIMPORTRULE_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssimportrule.media", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSIMPORTRULE_MEDIA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSMediaRule.cpp b/mozilla/dom/src/css/nsJSCSSMediaRule.cpp index 2f7cd609b96..1e3f00b6b66 100644 --- a/mozilla/dom/src/css/nsJSCSSMediaRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSMediaRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSStyleRuleCollection.h" @@ -78,7 +75,7 @@ GetCSSMediaRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSMEDIARULE_MEDIATYPES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssmediarule.mediatypes", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSMEDIARULE_MEDIATYPES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -96,7 +93,7 @@ GetCSSMediaRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSMEDIARULE_CSSRULES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssmediarule.cssrules", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSMEDIARULE_CSSRULES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ SetCSSMediaRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSMEDIARULE_MEDIATYPES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssmediarule.mediatypes", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSMEDIARULE_MEDIATYPES, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -221,7 +218,7 @@ CSSMediaRuleInsertRule(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssmediarule.insertrule",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSMEDIARULE_INSERTRULE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -273,7 +270,7 @@ CSSMediaRuleDeleteRule(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssmediarule.deleterule",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSMEDIARULE_DELETERULE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSPageRule.cpp b/mozilla/dom/src/css/nsJSCSSPageRule.cpp index 13ec02eea91..c22921731aa 100644 --- a/mozilla/dom/src/css/nsJSCSSPageRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSPageRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSPageRule.h" @@ -78,7 +75,7 @@ GetCSSPageRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSPAGERULE_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "csspagerule.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSPAGERULE_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -96,7 +93,7 @@ GetCSSPageRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSPAGERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "csspagerule.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSPAGERULE_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ SetCSSPageRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSPAGERULE_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "csspagerule.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSPAGERULE_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -161,7 +158,7 @@ SetCSSPageRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSPAGERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "csspagerule.style", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSPAGERULE_STYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSRule.cpp b/mozilla/dom/src/css/nsJSCSSRule.cpp index 53bb1cceb12..7a787cbcbab 100644 --- a/mozilla/dom/src/css/nsJSCSSRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSRule.h" @@ -79,7 +76,7 @@ GetCSSRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSRULE_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssrule.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSRULE_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetCSSRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSRULE_CSSTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssrule.csstext", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSRULE_CSSTEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetCSSRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSRULE_SHEET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssrule.sheet", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSRULE_SHEET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -166,7 +163,7 @@ SetCSSRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSRULE_CSSTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssrule.csstext", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSRULE_CSSTEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSStyleDeclaration.cpp b/mozilla/dom/src/css/nsJSCSSStyleDeclaration.cpp index c414c56eff4..6305b6ae85d 100644 --- a/mozilla/dom/src/css/nsJSCSSStyleDeclaration.cpp +++ b/mozilla/dom/src/css/nsJSCSSStyleDeclaration.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSStyleDeclaration.h" @@ -75,7 +72,7 @@ GetCSSStyleDeclarationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case CSSSTYLEDECLARATION_CSSTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.csstext", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_CSSTEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetCSSStyleDeclarationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case CSSSTYLEDECLARATION_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ SetCSSStyleDeclarationProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case CSSSTYLEDECLARATION_CSSTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.csstext", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_CSSTEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -226,7 +223,7 @@ CSSStyleDeclarationGetPropertyValue(JSContext *cx, JSObject *obj, uintN argc, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.getpropertyvalue",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_GETPROPERTYVALUE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -276,7 +273,7 @@ CSSStyleDeclarationGetPropertyPriority(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.getpropertypriority",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_GETPROPERTYPRIORITY,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -327,7 +324,7 @@ CSSStyleDeclarationSetProperty(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.setproperty",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_SETPROPERTY,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -379,7 +376,7 @@ CSSStyleDeclarationItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstyledeclaration.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLEDECLARATION_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSStyleRule.cpp b/mozilla/dom/src/css/nsJSCSSStyleRule.cpp index 3a96c1c8f41..b8e1178e494 100644 --- a/mozilla/dom/src/css/nsJSCSSStyleRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSStyleRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSStyleDeclaration.h" @@ -78,7 +75,7 @@ GetCSSStyleRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLERULE_SELECTORTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerule.selectortext", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULE_SELECTORTEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -96,7 +93,7 @@ GetCSSStyleRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerule.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULE_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ SetCSSStyleRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLERULE_SELECTORTEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerule.selectortext", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULE_SELECTORTEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -161,7 +158,7 @@ SetCSSStyleRuleProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLERULE_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerule.style", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULE_STYLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSStyleRuleCollection.cpp b/mozilla/dom/src/css/nsJSCSSStyleRuleCollection.cpp index 16675ca326f..04e286173c0 100644 --- a/mozilla/dom/src/css/nsJSCSSStyleRuleCollection.cpp +++ b/mozilla/dom/src/css/nsJSCSSStyleRuleCollection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSStyleRule.h" @@ -77,7 +74,7 @@ GetCSSStyleRuleCollectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval case CSSSTYLERULECOLLECTION_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerulecollection.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULECOLLECTION_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -198,7 +195,7 @@ CSSStyleRuleCollectionItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylerulecollection.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLERULECOLLECTION_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSStyleSheet.cpp b/mozilla/dom/src/css/nsJSCSSStyleSheet.cpp index eec9073868b..0113750c305 100644 --- a/mozilla/dom/src/css/nsJSCSSStyleSheet.cpp +++ b/mozilla/dom/src/css/nsJSCSSStyleSheet.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNode.h" @@ -88,7 +85,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_OWNINGNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.owningnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_OWNINGNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -107,7 +104,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_PARENTSTYLESHEET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.parentstylesheet", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_PARENTSTYLESHEET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -126,7 +123,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -144,7 +141,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_TITLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.title", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_TITLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.media", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_MEDIA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ GetCSSStyleSheetProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case CSSSTYLESHEET_CSSRULES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.cssrules", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_CSSRULES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -292,7 +289,7 @@ CSSStyleSheetInsertRule(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.insertrule",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_INSERTRULE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -344,7 +341,7 @@ CSSStyleSheetDeleteRule(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "cssstylesheet.deleterule",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_CSSSTYLESHEET_DELETERULE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/css/nsJSCSSUnknownRule.cpp b/mozilla/dom/src/css/nsJSCSSUnknownRule.cpp index d1f08a5cf71..621186e6d74 100644 --- a/mozilla/dom/src/css/nsJSCSSUnknownRule.cpp +++ b/mozilla/dom/src/css/nsJSCSSUnknownRule.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMCSSUnknownRule.h" diff --git a/mozilla/dom/src/events/nsJSEvent.cpp b/mozilla/dom/src/events/nsJSEvent.cpp index 96649910f15..8961e3a76ac 100644 --- a/mozilla/dom/src/events/nsJSEvent.cpp +++ b/mozilla/dom/src/events/nsJSEvent.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNode.h" @@ -82,7 +79,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -119,7 +116,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_CURRENTNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.currentnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_CURRENTNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -138,7 +135,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_EVENTPHASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.eventphase", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_EVENTPHASE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_BUBBLES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.bubbles", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_BUBBLES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -174,7 +171,7 @@ GetEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case EVENT_CANCELABLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "event.cancelable", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_CANCELABLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ EventPreventBubble(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "event.preventbubble",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_PREVENTBUBBLE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -325,7 +322,7 @@ EventPreventCapture(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "event.preventcapture",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_PREVENTCAPTURE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -368,7 +365,7 @@ EventPreventDefault(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "event.preventdefault",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_PREVENTDEFAULT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -414,7 +411,7 @@ EventInitEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "event.initevent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_EVENT_INITEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/events/nsJSKeyEvent.cpp b/mozilla/dom/src/events/nsJSKeyEvent.cpp index 31e34655928..1852ffc5f3e 100644 --- a/mozilla/dom/src/events/nsJSKeyEvent.cpp +++ b/mozilla/dom/src/events/nsJSKeyEvent.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMMouseEvent.h" @@ -95,7 +92,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_CHARCODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.charcode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_CHARCODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_KEYCODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.keycode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_KEYCODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_ALTKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.altkey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_ALTKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -149,7 +146,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_CTRLKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.ctrlkey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_CTRLKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -167,7 +164,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_SHIFTKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.shiftkey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_SHIFTKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -185,7 +182,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case KEYEVENT_METAKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.metakey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_METAKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -203,7 +200,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_SCREENX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.screenx", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_SCREENX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -229,7 +226,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_SCREENY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.screeny", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_SCREENY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -255,7 +252,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_CLIENTX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.clientx", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_CLIENTX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -281,7 +278,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_CLIENTY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.clienty", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_CLIENTY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -307,7 +304,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_BUTTON: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.button", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_BUTTON, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -333,7 +330,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_CLICKCOUNT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.clickcount", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_CLICKCOUNT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -359,7 +356,7 @@ GetKeyEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case MOUSEEVENT_RELATEDNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.relatednode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_RELATEDNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -486,7 +483,7 @@ KeyEventInitKeyEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "keyevent.initkeyevent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_KEYEVENT_INITKEYEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -581,7 +578,7 @@ MouseEventInitMouseEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "mouseevent.initmouseevent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_MOUSEEVENT_INITMOUSEEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/events/nsJSUIEvent.cpp b/mozilla/dom/src/events/nsJSUIEvent.cpp index ab0c27604d0..d8c32762ce1 100644 --- a/mozilla/dom/src/events/nsJSUIEvent.cpp +++ b/mozilla/dom/src/events/nsJSUIEvent.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMAbstractView.h" @@ -93,7 +90,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case UIEVENT_VIEW: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "uievent.view", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_UIEVENT_VIEW, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case UIEVENT_DETAIL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "uievent.detail", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_UIEVENT_DETAIL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -130,7 +127,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_LAYERX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.layerx", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_LAYERX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_LAYERY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.layery", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_LAYERY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -182,7 +179,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_PAGEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.pagex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_PAGEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -208,7 +205,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_PAGEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.pagey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_PAGEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -234,7 +231,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_WHICH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.which", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_WHICH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -260,7 +257,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_RANGEPARENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.rangeparent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_RANGEPARENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -287,7 +284,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_RANGEOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.rangeoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_RANGEOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -313,7 +310,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_CANCELBUBBLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.cancelbubble", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_CANCELBUBBLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -339,7 +336,7 @@ GetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_ISCHAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.ischar", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_ISCHAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -397,7 +394,7 @@ SetUIEventProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSUIEVENT_CANCELBUBBLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nsuievent.cancelbubble", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSUIEVENT_CANCELBUBBLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -483,7 +480,7 @@ UIEventInitUIEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "uievent.inituievent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_UIEVENT_INITUIEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLAnchorElement.cpp b/mozilla/dom/src/html/nsJSHTMLAnchorElement.cpp index 7ba82358e13..4588eb863ae 100644 --- a/mozilla/dom/src/html/nsJSHTMLAnchorElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLAnchorElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLAnchorElement.h" @@ -85,7 +82,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -103,7 +100,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.charset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_CHARSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -121,7 +118,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_COORDS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.coords", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_COORDS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -139,7 +136,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -157,7 +154,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_HREFLANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.hreflang", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_HREFLANG, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -175,7 +172,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -193,7 +190,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_REL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.rel", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_REL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -211,7 +208,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_REV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.rev", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_REV, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -229,7 +226,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_SHAPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.shape", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_SHAPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -247,7 +244,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -265,7 +262,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -283,7 +280,7 @@ GetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -333,7 +330,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -347,7 +344,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.charset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_CHARSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -361,7 +358,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_COORDS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.coords", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_COORDS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -375,7 +372,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.href", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_HREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -389,7 +386,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_HREFLANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.hreflang", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_HREFLANG, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -403,7 +400,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -417,7 +414,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_REL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.rel", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_REL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -431,7 +428,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_REV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.rev", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_REV, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -445,7 +442,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_SHAPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.shape", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_SHAPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -459,7 +456,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -479,7 +476,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.target", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TARGET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -493,7 +490,7 @@ SetHTMLAnchorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLANCHORELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -564,7 +561,7 @@ HTMLAnchorElementBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -607,7 +604,7 @@ HTMLAnchorElementFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlanchorelement.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLANCHORELEMENT_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLAppletElement.cpp b/mozilla/dom/src/html/nsJSHTMLAppletElement.cpp index 3d58b0e6538..35a46e48681 100644 --- a/mozilla/dom/src/html/nsJSHTMLAppletElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLAppletElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLAppletElement.h" @@ -84,7 +81,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -102,7 +99,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.alt", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ALT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -120,7 +117,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ARCHIVE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.archive", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ARCHIVE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -138,7 +135,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_CODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.code", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_CODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_CODEBASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.codebase", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_CODEBASE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -174,7 +171,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -192,7 +189,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.hspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_HSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -210,7 +207,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -228,7 +225,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_OBJECT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.object", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_OBJECT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -246,7 +243,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.vspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_VSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -264,7 +261,7 @@ GetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -314,7 +311,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -328,7 +325,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.alt", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ALT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -342,7 +339,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_ARCHIVE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.archive", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_ARCHIVE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -356,7 +353,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_CODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.code", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_CODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -370,7 +367,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_CODEBASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.codebase", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_CODEBASE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -384,7 +381,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -398,7 +395,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.hspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_HSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -412,7 +409,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -426,7 +423,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_OBJECT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.object", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_OBJECT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -440,7 +437,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.vspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_VSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -454,7 +451,7 @@ SetHTMLAppletElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAPPLETELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlappletelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAPPLETELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLAreaElement.cpp b/mozilla/dom/src/html/nsJSHTMLAreaElement.cpp index ca995ff4a3b..627eb80c9f9 100644 --- a/mozilla/dom/src/html/nsJSHTMLAreaElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLAreaElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLAreaElement.h" @@ -81,7 +78,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -99,7 +96,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.alt", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_ALT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_COORDS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.coords", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_COORDS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_NOHREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.nohref", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_NOHREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_SHAPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.shape", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_SHAPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -189,7 +186,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -207,7 +204,7 @@ GetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -257,7 +254,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -271,7 +268,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.alt", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_ALT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -285,7 +282,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_COORDS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.coords", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_COORDS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -299,7 +296,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.href", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_HREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -313,7 +310,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_NOHREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.nohref", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_NOHREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -329,7 +326,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_SHAPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.shape", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_SHAPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -363,7 +360,7 @@ SetHTMLAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLAREAELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlareaelement.target", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLAREAELEMENT_TARGET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLBRElement.cpp b/mozilla/dom/src/html/nsJSHTMLBRElement.cpp index b1dd1fe7041..18beb745be6 100644 --- a/mozilla/dom/src/html/nsJSHTMLBRElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLBRElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLBRElement.h" @@ -74,7 +71,7 @@ GetHTMLBRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBRELEMENT_CLEAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbrelement.clear", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBRELEMENT_CLEAR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLBRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBRELEMENT_CLEAR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbrelement.clear", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBRELEMENT_CLEAR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLBaseElement.cpp b/mozilla/dom/src/html/nsJSHTMLBaseElement.cpp index 11752353902..4d0feeff418 100644 --- a/mozilla/dom/src/html/nsJSHTMLBaseElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLBaseElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLBaseElement.h" @@ -75,7 +72,7 @@ GetHTMLBaseElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBASEELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbaseelement.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEELEMENT_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLBaseElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBASEELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbaseelement.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEELEMENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLBaseElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBASEELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbaseelement.href", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEELEMENT_HREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -157,7 +154,7 @@ SetHTMLBaseElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBASEELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbaseelement.target", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEELEMENT_TARGET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLBaseFontElement.cpp b/mozilla/dom/src/html/nsJSHTMLBaseFontElement.cpp index bb3f90d0ce1..798a432ca01 100644 --- a/mozilla/dom/src/html/nsJSHTMLBaseFontElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLBaseFontElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLBaseFontElement.h" @@ -76,7 +73,7 @@ GetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.color", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_COLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_FACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.face", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_FACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.color", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_COLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -176,7 +173,7 @@ SetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_FACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.face", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_FACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ SetHTMLBaseFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLBASEFONTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbasefontelement.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBASEFONTELEMENT_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLBodyElement.cpp b/mozilla/dom/src/html/nsJSHTMLBodyElement.cpp index d9e23cf6cee..ffd5ffa7526 100644 --- a/mozilla/dom/src/html/nsJSHTMLBodyElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLBodyElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLBodyElement.h" @@ -79,7 +76,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_ALINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.alink", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_ALINK, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.background", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_BACKGROUND, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -133,7 +130,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_LINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.link", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_LINK, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -151,7 +148,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.text", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_TEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -169,7 +166,7 @@ GetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_VLINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.vlink", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_VLINK, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -219,7 +216,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_ALINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.alink", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_ALINK, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -233,7 +230,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.background", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_BACKGROUND, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -247,7 +244,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -261,7 +258,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_LINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.link", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_LINK, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -275,7 +272,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.text", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_TEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -289,7 +286,7 @@ SetHTMLBodyElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBODYELEMENT_VLINK: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbodyelement.vlink", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBODYELEMENT_VLINK, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLButtonElement.cpp b/mozilla/dom/src/html/nsJSHTMLButtonElement.cpp index 6a105359855..b37c3dbe698 100644 --- a/mozilla/dom/src/html/nsJSHTMLButtonElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLButtonElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNSHTMLButtonElement.h" @@ -86,7 +83,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -105,7 +102,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -123,7 +120,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -141,7 +138,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -159,7 +156,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -177,7 +174,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ GetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -245,7 +242,7 @@ SetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -259,7 +256,7 @@ SetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -275,7 +272,7 @@ SetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -289,7 +286,7 @@ SetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -309,7 +306,7 @@ SetHTMLButtonElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLBUTTONELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlbuttonelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLBUTTONELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -385,7 +382,7 @@ NSHTMLButtonElementBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlbuttonelement.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLBUTTONELEMENT_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -433,7 +430,7 @@ NSHTMLButtonElementFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlbuttonelement.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLBUTTONELEMENT_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLCollection.cpp b/mozilla/dom/src/html/nsJSHTMLCollection.cpp index 3f3402a9d83..82ce9d88071 100644 --- a/mozilla/dom/src/html/nsJSHTMLCollection.cpp +++ b/mozilla/dom/src/html/nsJSHTMLCollection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNode.h" @@ -79,7 +76,7 @@ GetHTMLCollectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLCOLLECTION_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlcollection.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLCOLLECTION_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ HTMLCollectionItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlcollection.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLCOLLECTION_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ HTMLCollectionNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlcollection.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLCOLLECTION_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLDListElement.cpp b/mozilla/dom/src/html/nsJSHTMLDListElement.cpp index 8ee57b27439..09d38907052 100644 --- a/mozilla/dom/src/html/nsJSHTMLDListElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLDListElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLDListElement.h" @@ -74,7 +71,7 @@ GetHTMLDListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDLISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldlistelement.compact", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDLISTELEMENT_COMPACT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLDListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDLISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldlistelement.compact", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDLISTELEMENT_COMPACT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLDirectoryElement.cpp b/mozilla/dom/src/html/nsJSHTMLDirectoryElement.cpp index e16f6c7a52e..c69958451d0 100644 --- a/mozilla/dom/src/html/nsJSHTMLDirectoryElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLDirectoryElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLDirectoryElement.h" @@ -74,7 +71,7 @@ GetHTMLDirectoryElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLDIRECTORYELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldirectoryelement.compact", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDIRECTORYELEMENT_COMPACT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLDirectoryElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLDIRECTORYELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldirectoryelement.compact", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDIRECTORYELEMENT_COMPACT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLDivElement.cpp b/mozilla/dom/src/html/nsJSHTMLDivElement.cpp index 7549097bc07..e25f63e9797 100644 --- a/mozilla/dom/src/html/nsJSHTMLDivElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLDivElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLDivElement.h" @@ -74,7 +71,7 @@ GetHTMLDivElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDIVELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldivelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDIVELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLDivElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDIVELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldivelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDIVELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLDocument.cpp b/mozilla/dom/src/html/nsJSHTMLDocument.cpp index d5761b1f3cb..2e941de590c 100644 --- a/mozilla/dom/src/html/nsJSHTMLDocument.cpp +++ b/mozilla/dom/src/html/nsJSHTMLDocument.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -113,7 +110,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_TITLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.title", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_TITLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_REFERRER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.referrer", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_REFERRER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -149,7 +146,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_DOMAIN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.domain", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_DOMAIN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -167,7 +164,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_URL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.url", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_URL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -185,7 +182,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_BODY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.body", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_BODY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -204,7 +201,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_IMAGES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.images", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_IMAGES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -223,7 +220,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_APPLETS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.applets", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_APPLETS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -242,7 +239,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_LINKS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.links", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_LINKS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -261,7 +258,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_FORMS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.forms", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_FORMS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -280,7 +277,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_ANCHORS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.anchors", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_ANCHORS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -299,7 +296,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_COOKIE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.cookie", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_COOKIE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -317,7 +314,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_ALINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.alinkcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_ALINKCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_LINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.linkcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_LINKCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -369,7 +366,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_VLINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.vlinkcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_VLINKCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -395,7 +392,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -421,7 +418,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_FGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.fgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_FGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -447,7 +444,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_LASTMODIFIED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.lastmodified", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_LASTMODIFIED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -473,7 +470,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_EMBEDS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.embeds", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_EMBEDS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -500,7 +497,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_LAYERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.layers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_LAYERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -527,7 +524,7 @@ GetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_PLUGINS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.plugins", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_PLUGINS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -624,7 +621,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_TITLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.title", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_TITLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -638,7 +635,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_DOMAIN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.domain", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_DOMAIN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -652,7 +649,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_BODY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.body", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_BODY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -670,7 +667,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLDOCUMENT_COOKIE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.cookie", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_COOKIE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -684,7 +681,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_ALINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.alinkcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_ALINKCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -706,7 +703,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_LINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.linkcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_LINKCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -728,7 +725,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_VLINKCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.vlinkcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_VLINKCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -750,7 +747,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -772,7 +769,7 @@ SetHTMLDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLDOCUMENT_FGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.fgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_FGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -851,7 +848,7 @@ HTMLDocumentClose(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.close",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_CLOSE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -896,7 +893,7 @@ HTMLDocumentGetElementById(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.getelementbyid",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_GETELEMENTBYID,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -946,7 +943,7 @@ HTMLDocumentGetElementsByName(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmldocument.getelementsbyname",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLDOCUMENT_GETELEMENTSBYNAME,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1000,7 +997,7 @@ NSHTMLDocumentGetSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.getselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_GETSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1050,7 +1047,7 @@ NSHTMLDocumentNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1103,7 +1100,7 @@ NSHTMLDocumentOpen(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.open",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_OPEN,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1151,7 +1148,7 @@ NSHTMLDocumentWrite(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.write",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_WRITE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1199,7 +1196,7 @@ NSHTMLDocumentWriteln(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.writeln",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_WRITELN,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1248,7 +1245,7 @@ NSHTMLDocumentCaptureEvents(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.captureevents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_CAPTUREEVENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1304,7 +1301,7 @@ NSHTMLDocumentReleaseEvents(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.releaseevents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_RELEASEEVENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1360,7 +1357,7 @@ NSHTMLDocumentRouteEvent(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmldocument.routeevent",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLDOCUMENT_ROUTEEVENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLElement.cpp b/mozilla/dom/src/html/nsJSHTMLElement.cpp index 008b80c5b16..b32c2d70f3a 100644 --- a/mozilla/dom/src/html/nsJSHTMLElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLElement.h" @@ -82,7 +79,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.id", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_ID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_TITLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.title", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_TITLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -118,7 +115,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_LANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.lang", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_LANG, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -136,7 +133,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_DIR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.dir", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_DIR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -154,7 +151,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.classname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_CLASSNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -172,7 +169,7 @@ GetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -223,7 +220,7 @@ SetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.id", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_ID, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -237,7 +234,7 @@ SetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_TITLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.title", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_TITLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -251,7 +248,7 @@ SetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_LANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.lang", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_LANG, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -265,7 +262,7 @@ SetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_DIR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.dir", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_DIR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -279,7 +276,7 @@ SetHTMLElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlelement.classname", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLELEMENT_CLASSNAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLEmbedElement.cpp b/mozilla/dom/src/html/nsJSHTMLEmbedElement.cpp index 44bbc640792..35e842f93fa 100644 --- a/mozilla/dom/src/html/nsJSHTMLEmbedElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLEmbedElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMPlugin.h" @@ -86,7 +83,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -104,7 +101,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -122,7 +119,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -140,7 +137,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -158,7 +155,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -176,7 +173,7 @@ GetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -226,7 +223,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -240,7 +237,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -254,7 +251,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -268,7 +265,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -282,7 +279,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -296,7 +293,7 @@ SetHTMLEmbedElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLEMBEDELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlembedelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLEMBEDELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLFieldSetElement.cpp b/mozilla/dom/src/html/nsJSHTMLFieldSetElement.cpp index fce6c495471..514ff7e279e 100644 --- a/mozilla/dom/src/html/nsJSHTMLFieldSetElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLFieldSetElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFieldSetElement.h" @@ -77,7 +74,7 @@ GetHTMLFieldSetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLFIELDSETELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfieldsetelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFIELDSETELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLFontElement.cpp b/mozilla/dom/src/html/nsJSHTMLFontElement.cpp index 26d7676251c..be5d9a62219 100644 --- a/mozilla/dom/src/html/nsJSHTMLFontElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLFontElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFontElement.h" @@ -76,7 +73,7 @@ GetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.color", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_COLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_FACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.face", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_FACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_COLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.color", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_COLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -176,7 +173,7 @@ SetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_FACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.face", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_FACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ SetHTMLFontElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFONTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlfontelement.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFONTELEMENT_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLFormElement.cpp b/mozilla/dom/src/html/nsJSHTMLFormElement.cpp index cb6561d1afd..a6fc8a516ab 100644 --- a/mozilla/dom/src/html/nsJSHTMLFormElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLFormElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNSHTMLFormElement.h" @@ -93,7 +90,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ELEMENTS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.elements", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ELEMENTS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -130,7 +127,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -148,7 +145,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ACCEPTCHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.acceptcharset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ACCEPTCHARSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -166,7 +163,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ACTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.action", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ACTION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -184,7 +181,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ENCTYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.enctype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ENCTYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -202,7 +199,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_METHOD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.method", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_METHOD, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -220,7 +217,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -238,7 +235,7 @@ GetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case NSHTMLFORMELEMENT_ENCODING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlformelement.encoding", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLFORMELEMENT_ENCODING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -353,7 +350,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -367,7 +364,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ACCEPTCHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.acceptcharset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ACCEPTCHARSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -381,7 +378,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ACTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.action", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ACTION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -395,7 +392,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_ENCTYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.enctype", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_ENCTYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -409,7 +406,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_METHOD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.method", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_METHOD, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -423,7 +420,7 @@ SetHTMLFormElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFORMELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.target", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_TARGET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -494,7 +491,7 @@ HTMLFormElementSubmit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.submit",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_SUBMIT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -537,7 +534,7 @@ HTMLFormElementReset(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlformelement.reset",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFORMELEMENT_RESET,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -587,7 +584,7 @@ NSHTMLFormElementNamedItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlformelement.nameditem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLFORMELEMENT_NAMEDITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -642,7 +639,7 @@ NSHTMLFormElementItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlformelement.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLFORMELEMENT_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLFrameElement.cpp b/mozilla/dom/src/html/nsJSHTMLFrameElement.cpp index 960c31c5624..bc3f57b7f57 100644 --- a/mozilla/dom/src/html/nsJSHTMLFrameElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLFrameElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFrameElement.h" @@ -81,7 +78,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_FRAMEBORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.frameborder", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_FRAMEBORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -99,7 +96,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.longdesc", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_LONGDESC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_MARGINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.marginheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_MARGINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.marginwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_NORESIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.noresize", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_NORESIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -189,7 +186,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_SCROLLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.scrolling", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_SCROLLING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -207,7 +204,7 @@ GetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -257,7 +254,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_FRAMEBORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.frameborder", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_FRAMEBORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -271,7 +268,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.longdesc", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_LONGDESC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -285,7 +282,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_MARGINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.marginheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -299,7 +296,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_MARGINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.marginwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_MARGINWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -313,7 +310,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -327,7 +324,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_NORESIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.noresize", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_NORESIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_SCROLLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.scrolling", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_SCROLLING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -357,7 +354,7 @@ SetHTMLFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLFRAMEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframeelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMEELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLFrameSetElement.cpp b/mozilla/dom/src/html/nsJSHTMLFrameSetElement.cpp index 8f415aaff52..0b24b8a775d 100644 --- a/mozilla/dom/src/html/nsJSHTMLFrameSetElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLFrameSetElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFrameSetElement.h" @@ -75,7 +72,7 @@ GetHTMLFrameSetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLFRAMESETELEMENT_COLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframesetelement.cols", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMESETELEMENT_COLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLFrameSetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLFRAMESETELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframesetelement.rows", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMESETELEMENT_ROWS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLFrameSetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLFRAMESETELEMENT_COLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframesetelement.cols", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMESETELEMENT_COLS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -157,7 +154,7 @@ SetHTMLFrameSetElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLFRAMESETELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlframesetelement.rows", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLFRAMESETELEMENT_ROWS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLHRElement.cpp b/mozilla/dom/src/html/nsJSHTMLHRElement.cpp index 203df76b1f9..058df6f0527 100644 --- a/mozilla/dom/src/html/nsJSHTMLHRElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLHRElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLHRElement.h" @@ -77,7 +74,7 @@ GetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -95,7 +92,7 @@ GetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_NOSHADE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.noshade", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_NOSHADE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -181,7 +178,7 @@ SetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ SetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_NOSHADE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.noshade", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_NOSHADE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -211,7 +208,7 @@ SetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -225,7 +222,7 @@ SetHTMLHRElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHRELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhrelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHRELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLHeadElement.cpp b/mozilla/dom/src/html/nsJSHTMLHeadElement.cpp index 16247a3a6d7..5607524aa04 100644 --- a/mozilla/dom/src/html/nsJSHTMLHeadElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLHeadElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLHeadElement.h" @@ -74,7 +71,7 @@ GetHTMLHeadElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHEADELEMENT_PROFILE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlheadelement.profile", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHEADELEMENT_PROFILE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLHeadElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHEADELEMENT_PROFILE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlheadelement.profile", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHEADELEMENT_PROFILE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLHeadingElement.cpp b/mozilla/dom/src/html/nsJSHTMLHeadingElement.cpp index 655a35b52b8..cb32bf08333 100644 --- a/mozilla/dom/src/html/nsJSHTMLHeadingElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLHeadingElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLHeadingElement.h" @@ -74,7 +71,7 @@ GetHTMLHeadingElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHEADINGELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlheadingelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHEADINGELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLHeadingElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHEADINGELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlheadingelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHEADINGELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLHtmlElement.cpp b/mozilla/dom/src/html/nsJSHTMLHtmlElement.cpp index 86271ae9226..a84552aba44 100644 --- a/mozilla/dom/src/html/nsJSHTMLHtmlElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLHtmlElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLHtmlElement.h" @@ -74,7 +71,7 @@ GetHTMLHtmlElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHTMLELEMENT_VERSION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhtmlelement.version", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHTMLELEMENT_VERSION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLHtmlElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLHTMLELEMENT_VERSION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlhtmlelement.version", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLHTMLELEMENT_VERSION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLIFrameElement.cpp b/mozilla/dom/src/html/nsJSHTMLIFrameElement.cpp index 121012ff0b1..ec035974e14 100644 --- a/mozilla/dom/src/html/nsJSHTMLIFrameElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLIFrameElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLIFrameElement.h" @@ -83,7 +80,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -101,7 +98,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_FRAMEBORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.frameborder", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_FRAMEBORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -119,7 +116,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -137,7 +134,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.longdesc", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_LONGDESC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -155,7 +152,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_MARGINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.marginheight", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINHEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -173,7 +170,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_MARGINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.marginwidth", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINWIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -191,7 +188,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -209,7 +206,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_SCROLLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.scrolling", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_SCROLLING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -227,7 +224,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -245,7 +242,7 @@ GetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -295,7 +292,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -309,7 +306,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_FRAMEBORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.frameborder", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_FRAMEBORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -323,7 +320,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -337,7 +334,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.longdesc", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_LONGDESC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -351,7 +348,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_MARGINHEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.marginheight", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINHEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -365,7 +362,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_MARGINWIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.marginwidth", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_MARGINWIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -379,7 +376,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -393,7 +390,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_SCROLLING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.scrolling", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_SCROLLING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -407,7 +404,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -421,7 +418,7 @@ SetHTMLIFrameElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIFRAMEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmliframeelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIFRAMEELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLImageElement.cpp b/mozilla/dom/src/html/nsJSHTMLImageElement.cpp index 557d1cbf943..a9ebea9fb5b 100644 --- a/mozilla/dom/src/html/nsJSHTMLImageElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLImageElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMImage.h" @@ -93,7 +90,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_LOWSRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.lowsrc", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_LOWSRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -111,7 +108,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -129,7 +126,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.alt", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ALT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -165,7 +162,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.border", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_BORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -183,7 +180,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -201,7 +198,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.hspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_HSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -219,7 +216,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ISMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.ismap", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ISMAP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -237,7 +234,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.longdesc", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_LONGDESC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -255,7 +252,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -273,7 +270,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.usemap", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_USEMAP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -291,7 +288,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.vspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_VSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -309,7 +306,7 @@ GetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -359,7 +356,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_LOWSRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.lowsrc", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_LOWSRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -373,7 +370,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -387,7 +384,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -401,7 +398,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.alt", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ALT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -415,7 +412,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.border", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_BORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -429,7 +426,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -443,7 +440,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.hspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_HSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -457,7 +454,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_ISMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.ismap", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_ISMAP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -473,7 +470,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_LONGDESC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.longdesc", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_LONGDESC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -487,7 +484,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -501,7 +498,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.usemap", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_USEMAP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -515,7 +512,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.vspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_VSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -529,7 +526,7 @@ SetHTMLImageElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLIMAGEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlimageelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLIMAGEELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLInputElement.cpp b/mozilla/dom/src/html/nsJSHTMLInputElement.cpp index 3531523be22..030573ab153 100644 --- a/mozilla/dom/src/html/nsJSHTMLInputElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLInputElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLInputElement.h" @@ -95,7 +92,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DEFAULTVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.defaultvalue", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTVALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DEFAULTCHECKED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.defaultchecked", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTCHECKED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -150,7 +147,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ACCEPT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.accept", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ACCEPT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -168,7 +165,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -186,7 +183,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -204,7 +201,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.alt", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ALT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -222,7 +219,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_CHECKED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.checked", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_CHECKED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -240,7 +237,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -258,7 +255,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_MAXLENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.maxlength", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_MAXLENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -276,7 +273,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -294,7 +291,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_READONLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.readonly", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_READONLY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -312,7 +309,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -330,7 +327,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -348,7 +345,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -366,7 +363,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -384,7 +381,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.usemap", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_USEMAP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -402,7 +399,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -420,7 +417,7 @@ GetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_AUTOCOMPLETE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.autocomplete", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_AUTOCOMPLETE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -470,7 +467,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DEFAULTVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.defaultvalue", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTVALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -484,7 +481,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DEFAULTCHECKED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.defaultchecked", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DEFAULTCHECKED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -500,7 +497,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ACCEPT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.accept", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ACCEPT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -514,7 +511,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -528,7 +525,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -542,7 +539,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_ALT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.alt", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_ALT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -556,7 +553,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_CHECKED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.checked", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_CHECKED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -572,7 +569,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -588,7 +585,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_MAXLENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.maxlength", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_MAXLENGTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -608,7 +605,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -622,7 +619,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_READONLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.readonly", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_READONLY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -638,7 +635,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -652,7 +649,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -666,7 +663,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -686,7 +683,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.usemap", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_USEMAP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -700,7 +697,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -714,7 +711,7 @@ SetHTMLInputElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLINPUTELEMENT_AUTOCOMPLETE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.autocomplete", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_AUTOCOMPLETE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -785,7 +782,7 @@ HTMLInputElementBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -828,7 +825,7 @@ HTMLInputElementFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -871,7 +868,7 @@ HTMLInputElementSelect(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.select",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_SELECT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -914,7 +911,7 @@ HTMLInputElementClick(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlinputelement.click",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLINPUTELEMENT_CLICK,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLIsIndexElement.cpp b/mozilla/dom/src/html/nsJSHTMLIsIndexElement.cpp index 96dfe7e5b31..9366c2dfc34 100644 --- a/mozilla/dom/src/html/nsJSHTMLIsIndexElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLIsIndexElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -78,7 +75,7 @@ GetHTMLIsIndexElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLISINDEXELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlisindexelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLISINDEXELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetHTMLIsIndexElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLISINDEXELEMENT_PROMPT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlisindexelement.prompt", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLISINDEXELEMENT_PROMPT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ SetHTMLIsIndexElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLISINDEXELEMENT_PROMPT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlisindexelement.prompt", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLISINDEXELEMENT_PROMPT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLLIElement.cpp b/mozilla/dom/src/html/nsJSHTMLLIElement.cpp index 11488db1ee5..5d3b95e32d0 100644 --- a/mozilla/dom/src/html/nsJSHTMLLIElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLLIElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLLIElement.h" @@ -75,7 +72,7 @@ GetHTMLLIElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLIELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllielement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLIELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLLIElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLIELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllielement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLIELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLLIElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLIELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllielement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLIELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -157,7 +154,7 @@ SetHTMLLIElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLIELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllielement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLIELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLLabelElement.cpp b/mozilla/dom/src/html/nsJSHTMLLabelElement.cpp index 86bb9e63ff7..cffac2b9eb5 100644 --- a/mozilla/dom/src/html/nsJSHTMLLabelElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLLabelElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -79,7 +76,7 @@ GetHTMLLabelElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLABELELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllabelelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLABELELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -98,7 +95,7 @@ GetHTMLLabelElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLABELELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllabelelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLABELELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -116,7 +113,7 @@ GetHTMLLabelElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLABELELEMENT_HTMLFOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllabelelement.htmlfor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLABELELEMENT_HTMLFOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -166,7 +163,7 @@ SetHTMLLabelElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLABELELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllabelelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLABELELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ SetHTMLLabelElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLABELELEMENT_HTMLFOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllabelelement.htmlfor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLABELELEMENT_HTMLFOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLLayerElement.cpp b/mozilla/dom/src/html/nsJSHTMLLayerElement.cpp index 0c9b9222218..2574b726e7f 100644 --- a/mozilla/dom/src/html/nsJSHTMLLayerElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLLayerElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMDocument.h" @@ -84,7 +81,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_TOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.top", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_TOP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -102,7 +99,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_LEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.left", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_LEFT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -120,7 +117,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_VISIBILITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.visibility", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_VISIBILITY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -138,7 +135,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.background", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_BACKGROUND, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -174,7 +171,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -192,7 +189,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_ZINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.zindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_ZINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -210,7 +207,7 @@ GetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_DOCUMENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.document", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_DOCUMENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -261,7 +258,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_TOP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.top", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_TOP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -281,7 +278,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_LEFT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.left", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_LEFT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -301,7 +298,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_VISIBILITY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.visibility", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_VISIBILITY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -315,7 +312,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_BACKGROUND: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.background", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_BACKGROUND, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -329,7 +326,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -357,7 +354,7 @@ SetHTMLLayerElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLAYERELEMENT_ZINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllayerelement.zindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLAYERELEMENT_ZINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLLegendElement.cpp b/mozilla/dom/src/html/nsJSHTMLLegendElement.cpp index 9c4d2d7130a..95e28c30ebc 100644 --- a/mozilla/dom/src/html/nsJSHTMLLegendElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLLegendElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -79,7 +76,7 @@ GetHTMLLegendElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLEGENDELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllegendelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLEGENDELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -98,7 +95,7 @@ GetHTMLLegendElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLEGENDELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllegendelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLEGENDELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -116,7 +113,7 @@ GetHTMLLegendElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLEGENDELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllegendelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLEGENDELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -166,7 +163,7 @@ SetHTMLLegendElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLEGENDELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllegendelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLEGENDELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ SetHTMLLegendElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLEGENDELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllegendelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLEGENDELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLLinkElement.cpp b/mozilla/dom/src/html/nsJSHTMLLinkElement.cpp index 50a48a7b80d..bd037ca3b3c 100644 --- a/mozilla/dom/src/html/nsJSHTMLLinkElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLLinkElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLLinkElement.h" @@ -82,7 +79,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.charset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_CHARSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -118,7 +115,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.href", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_HREF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -136,7 +133,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_HREFLANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.hreflang", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_HREFLANG, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -154,7 +151,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.media", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_MEDIA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -172,7 +169,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_REL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.rel", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_REL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_REV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.rev", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_REV, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -208,7 +205,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.target", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_TARGET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -226,7 +223,7 @@ GetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -276,7 +273,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -292,7 +289,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.charset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_CHARSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -306,7 +303,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_HREF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.href", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_HREF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -320,7 +317,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_HREFLANG: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.hreflang", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_HREFLANG, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -334,7 +331,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.media", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_MEDIA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -348,7 +345,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_REL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.rel", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_REL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -362,7 +359,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_REV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.rev", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_REV, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -376,7 +373,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_TARGET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.target", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_TARGET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -390,7 +387,7 @@ SetHTMLLinkElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLLINKELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmllinkelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLLINKELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLMapElement.cpp b/mozilla/dom/src/html/nsJSHTMLMapElement.cpp index e6b04ce2974..248b02eb151 100644 --- a/mozilla/dom/src/html/nsJSHTMLMapElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLMapElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLMapElement.h" @@ -78,7 +75,7 @@ GetHTMLMapElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMAPELEMENT_AREAS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmapelement.areas", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMAPELEMENT_AREAS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetHTMLMapElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMAPELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmapelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMAPELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ SetHTMLMapElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMAPELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmapelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMAPELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLMenuElement.cpp b/mozilla/dom/src/html/nsJSHTMLMenuElement.cpp index 82f02c6d4c2..474cc84b9f8 100644 --- a/mozilla/dom/src/html/nsJSHTMLMenuElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLMenuElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLMenuElement.h" @@ -74,7 +71,7 @@ GetHTMLMenuElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMENUELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmenuelement.compact", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMENUELEMENT_COMPACT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLMenuElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMENUELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmenuelement.compact", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMENUELEMENT_COMPACT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLMetaElement.cpp b/mozilla/dom/src/html/nsJSHTMLMetaElement.cpp index 48fa6e30272..79281413235 100644 --- a/mozilla/dom/src/html/nsJSHTMLMetaElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLMetaElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLMetaElement.h" @@ -77,7 +74,7 @@ GetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_CONTENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.content", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_CONTENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -95,7 +92,7 @@ GetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_HTTPEQUIV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.httpequiv", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_HTTPEQUIV, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_SCHEME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.scheme", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_SCHEME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -181,7 +178,7 @@ SetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_CONTENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.content", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_CONTENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ SetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_HTTPEQUIV: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.httpequiv", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_HTTPEQUIV, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -209,7 +206,7 @@ SetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -223,7 +220,7 @@ SetHTMLMetaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMETAELEMENT_SCHEME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmetaelement.scheme", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMETAELEMENT_SCHEME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLModElement.cpp b/mozilla/dom/src/html/nsJSHTMLModElement.cpp index 5d17878a1ce..cc5341feb29 100644 --- a/mozilla/dom/src/html/nsJSHTMLModElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLModElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLModElement.h" @@ -75,7 +72,7 @@ GetHTMLModElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMODELEMENT_CITE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmodelement.cite", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMODELEMENT_CITE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLModElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMODELEMENT_DATETIME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmodelement.datetime", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMODELEMENT_DATETIME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLModElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMODELEMENT_CITE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmodelement.cite", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMODELEMENT_CITE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -157,7 +154,7 @@ SetHTMLModElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLMODELEMENT_DATETIME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlmodelement.datetime", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLMODELEMENT_DATETIME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLOListElement.cpp b/mozilla/dom/src/html/nsJSHTMLOListElement.cpp index 7220635c1e0..301a109751b 100644 --- a/mozilla/dom/src/html/nsJSHTMLOListElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLOListElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLOListElement.h" @@ -76,7 +73,7 @@ GetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.compact", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_COMPACT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_START: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.start", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_START, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.compact", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_COMPACT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -178,7 +175,7 @@ SetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_START: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.start", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_START, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -198,7 +195,7 @@ SetHTMLOListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOLISTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlolistelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOLISTELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLObjectElement.cpp b/mozilla/dom/src/html/nsJSHTMLObjectElement.cpp index 7cedf271ee0..683c57ab8df 100644 --- a/mozilla/dom/src/html/nsJSHTMLObjectElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLObjectElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -94,7 +91,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.code", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -149,7 +146,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_ARCHIVE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.archive", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_ARCHIVE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -167,7 +164,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.border", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_BORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -185,7 +182,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODEBASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.codebase", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODEBASE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -203,7 +200,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.codetype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODETYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -221,7 +218,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.data", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_DATA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -239,7 +236,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_DECLARE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.declare", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_DECLARE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -257,7 +254,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -275,7 +272,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.hspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_HSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -293,7 +290,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -311,7 +308,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_STANDBY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.standby", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_STANDBY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -329,7 +326,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -347,7 +344,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -365,7 +362,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.usemap", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_USEMAP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -383,7 +380,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.vspace", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_VSPACE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -401,7 +398,7 @@ GetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -451,7 +448,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.code", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -465,7 +462,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -479,7 +476,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_ARCHIVE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.archive", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_ARCHIVE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -493,7 +490,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.border", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_BORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -507,7 +504,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODEBASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.codebase", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODEBASE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -521,7 +518,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_CODETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.codetype", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_CODETYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -535,7 +532,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_DATA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.data", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_DATA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -549,7 +546,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_DECLARE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.declare", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_DECLARE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -565,7 +562,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -579,7 +576,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_HSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.hspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_HSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -593,7 +590,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -607,7 +604,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_STANDBY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.standby", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_STANDBY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -621,7 +618,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -641,7 +638,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -655,7 +652,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_USEMAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.usemap", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_USEMAP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -669,7 +666,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_VSPACE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.vspace", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_VSPACE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -683,7 +680,7 @@ SetHTMLObjectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOBJECTELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlobjectelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOBJECTELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLOptGroupElement.cpp b/mozilla/dom/src/html/nsJSHTMLOptGroupElement.cpp index c6968fac22f..c525bc3d56c 100644 --- a/mozilla/dom/src/html/nsJSHTMLOptGroupElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLOptGroupElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLOptGroupElement.h" @@ -75,7 +72,7 @@ GetHTMLOptGroupElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLOPTGROUPELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptgroupelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTGROUPELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLOptGroupElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLOPTGROUPELEMENT_LABEL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptgroupelement.label", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTGROUPELEMENT_LABEL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLOptGroupElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLOPTGROUPELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptgroupelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTGROUPELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -159,7 +156,7 @@ SetHTMLOptGroupElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLOPTGROUPELEMENT_LABEL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptgroupelement.label", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTGROUPELEMENT_LABEL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLOptionElement.cpp b/mozilla/dom/src/html/nsJSHTMLOptionElement.cpp index 0b0f1623912..f0fa7035184 100644 --- a/mozilla/dom/src/html/nsJSHTMLOptionElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLOptionElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -91,7 +88,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -110,7 +107,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_DEFAULTSELECTED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.defaultselected", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_DEFAULTSELECTED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -128,7 +125,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.text", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_TEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -146,7 +143,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_INDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.index", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_INDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -164,7 +161,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -182,7 +179,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_LABEL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.label", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_LABEL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -200,7 +197,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_SELECTED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.selected", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_SELECTED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -218,7 +215,7 @@ GetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -268,7 +265,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_DEFAULTSELECTED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.defaultselected", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_DEFAULTSELECTED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -284,7 +281,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_INDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.index", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_INDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -304,7 +301,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -320,7 +317,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_LABEL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.label", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_LABEL, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -334,7 +331,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_SELECTED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.selected", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_SELECTED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -350,7 +347,7 @@ SetHTMLOptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLOPTIONELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmloptionelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLOPTIONELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLParagraphElement.cpp b/mozilla/dom/src/html/nsJSHTMLParagraphElement.cpp index 29b0cc929f2..7861b9ebfc1 100644 --- a/mozilla/dom/src/html/nsJSHTMLParagraphElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLParagraphElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLParagraphElement.h" @@ -74,7 +71,7 @@ GetHTMLParagraphElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLPARAGRAPHELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparagraphelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAGRAPHELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLParagraphElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLPARAGRAPHELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparagraphelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAGRAPHELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLParamElement.cpp b/mozilla/dom/src/html/nsJSHTMLParamElement.cpp index 98ff565e030..8ff18d4e6b9 100644 --- a/mozilla/dom/src/html/nsJSHTMLParamElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLParamElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLParamElement.h" @@ -77,7 +74,7 @@ GetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -95,7 +92,7 @@ GetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -113,7 +110,7 @@ GetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_VALUETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.valuetype", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_VALUETYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -181,7 +178,7 @@ SetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ SetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -209,7 +206,7 @@ SetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -223,7 +220,7 @@ SetHTMLParamElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPARAMELEMENT_VALUETYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlparamelement.valuetype", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPARAMELEMENT_VALUETYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLPreElement.cpp b/mozilla/dom/src/html/nsJSHTMLPreElement.cpp index b6dc9d80b76..b5a8d931343 100644 --- a/mozilla/dom/src/html/nsJSHTMLPreElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLPreElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLPreElement.h" @@ -74,7 +71,7 @@ GetHTMLPreElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPREELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlpreelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPREELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLPreElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLPREELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlpreelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLPREELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLQuoteElement.cpp b/mozilla/dom/src/html/nsJSHTMLQuoteElement.cpp index e94195381d0..b3a68b378fe 100644 --- a/mozilla/dom/src/html/nsJSHTMLQuoteElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLQuoteElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLQuoteElement.h" @@ -74,7 +71,7 @@ GetHTMLQuoteElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLQUOTEELEMENT_CITE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlquoteelement.cite", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLQUOTEELEMENT_CITE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLQuoteElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLQUOTEELEMENT_CITE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlquoteelement.cite", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLQUOTEELEMENT_CITE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLScriptElement.cpp b/mozilla/dom/src/html/nsJSHTMLScriptElement.cpp index ce9c69cce81..9ad057c8885 100644 --- a/mozilla/dom/src/html/nsJSHTMLScriptElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLScriptElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLScriptElement.h" @@ -80,7 +77,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.text", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_TEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -98,7 +95,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_HTMLFOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.htmlfor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_HTMLFOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -116,7 +113,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_EVENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.event", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_EVENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -134,7 +131,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.charset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_CHARSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -152,7 +149,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_DEFER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.defer", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_DEFER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -170,7 +167,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.src", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_SRC, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -188,7 +185,7 @@ GetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -238,7 +235,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.text", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_TEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -252,7 +249,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_HTMLFOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.htmlfor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_HTMLFOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -266,7 +263,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_EVENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.event", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_EVENT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -280,7 +277,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_CHARSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.charset", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_CHARSET, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -294,7 +291,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_DEFER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.defer", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_DEFER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -310,7 +307,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_SRC: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.src", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_SRC, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -324,7 +321,7 @@ SetHTMLScriptElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSCRIPTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlscriptelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSCRIPTELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLSelectElement.cpp b/mozilla/dom/src/html/nsJSHTMLSelectElement.cpp index 04a3a6b03c2..8a3705541d2 100644 --- a/mozilla/dom/src/html/nsJSHTMLSelectElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLSelectElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLSelectElement.h" @@ -99,7 +96,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -117,7 +114,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_SELECTEDINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.selectedindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_SELECTEDINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -135,7 +132,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -153,7 +150,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_LENGTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.length", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_LENGTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_OPTIONS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.options", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_OPTIONS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -209,7 +206,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -227,7 +224,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_MULTIPLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.multiple", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_MULTIPLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -245,7 +242,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -263,7 +260,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.size", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_SIZE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -281,7 +278,7 @@ GetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -350,7 +347,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_SELECTEDINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.selectedindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_SELECTEDINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -370,7 +367,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -384,7 +381,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -400,7 +397,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_MULTIPLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.multiple", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_MULTIPLE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -416,7 +413,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -430,7 +427,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_SIZE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.size", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_SIZE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -450,7 +447,7 @@ SetHTMLSelectElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSELECTELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -529,7 +526,7 @@ HTMLSelectElementAdd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.add",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_ADD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -591,7 +588,7 @@ HTMLSelectElementRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.remove",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_REMOVE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -641,7 +638,7 @@ HTMLSelectElementBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -684,7 +681,7 @@ HTMLSelectElementFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmlselectelement.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSELECTELEMENT_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -734,7 +731,7 @@ NSHTMLSelectElementItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmlselectelement.item",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSHTMLSELECTELEMENT_ITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLStyleElement.cpp b/mozilla/dom/src/html/nsJSHTMLStyleElement.cpp index 0a3fb184bf4..0ccdee73e8a 100644 --- a/mozilla/dom/src/html/nsJSHTMLStyleElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLStyleElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLStyleElement.h" @@ -76,7 +73,7 @@ GetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -94,7 +91,7 @@ GetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.media", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_MEDIA, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ SetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -178,7 +175,7 @@ SetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_MEDIA: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.media", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_MEDIA, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -192,7 +189,7 @@ SetHTMLStyleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLSTYLEELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlstyleelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLSTYLEELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableCaptionElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableCaptionElement.cpp index a7d8ce8528f..cae9951ee6f 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableCaptionElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableCaptionElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLTableCaptionElement.h" @@ -74,7 +71,7 @@ GetHTMLTableCaptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLECAPTIONELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecaptionelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECAPTIONELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLTableCaptionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLECAPTIONELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecaptionelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECAPTIONELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableCellElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableCellElement.cpp index 79a6884a4f2..00741c3889d 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableCellElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableCellElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLTableCellElement.h" @@ -88,7 +85,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CELLINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.cellindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CELLINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -106,7 +103,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ABBR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.abbr", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ABBR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -142,7 +139,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_AXIS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.axis", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_AXIS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -160,7 +157,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -178,7 +175,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.ch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -196,7 +193,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.choff", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CHOFF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -214,7 +211,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_COLSPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.colspan", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_COLSPAN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -232,7 +229,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_HEADERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.headers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_HEADERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -250,7 +247,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.height", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_HEIGHT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -268,7 +265,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_NOWRAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.nowrap", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_NOWRAP, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -286,7 +283,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ROWSPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.rowspan", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ROWSPAN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -304,7 +301,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_SCOPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.scope", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_SCOPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -322,7 +319,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.valign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_VALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -340,7 +337,7 @@ GetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -390,7 +387,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CELLINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.cellindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CELLINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -410,7 +407,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ABBR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.abbr", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ABBR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -424,7 +421,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -438,7 +435,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_AXIS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.axis", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_AXIS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -452,7 +449,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -466,7 +463,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.ch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -480,7 +477,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.choff", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_CHOFF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -494,7 +491,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_COLSPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.colspan", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_COLSPAN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -514,7 +511,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_HEADERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.headers", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_HEADERS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -528,7 +525,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_HEIGHT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.height", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_HEIGHT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -542,7 +539,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_NOWRAP: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.nowrap", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_NOWRAP, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -558,7 +555,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_ROWSPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.rowspan", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_ROWSPAN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -578,7 +575,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_SCOPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.scope", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_SCOPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -592,7 +589,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.valign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_VALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -606,7 +603,7 @@ SetHTMLTableCellElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case HTMLTABLECELLELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecellelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECELLELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableColElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableColElement.cpp index 3c7cd82fd94..b33297f929f 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableColElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableColElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLTableColElement.h" @@ -79,7 +76,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -97,7 +94,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.ch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_CH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.choff", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_CHOFF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -133,7 +130,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_SPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.span", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_SPAN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -151,7 +148,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.valign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_VALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -169,7 +166,7 @@ GetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -219,7 +216,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -233,7 +230,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.ch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_CH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -247,7 +244,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.choff", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_CHOFF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -261,7 +258,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_SPAN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.span", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_SPAN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -281,7 +278,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.valign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_VALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -295,7 +292,7 @@ SetHTMLTableColElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLECOLELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablecolelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLECOLELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableElement.cpp index f5397b936ed..fb425d5b437 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLElement.h" @@ -99,7 +96,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CAPTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.caption", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CAPTION, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -118,7 +115,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_THEAD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.thead", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_THEAD, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -137,7 +134,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_TFOOT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.tfoot", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_TFOOT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.rows", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_ROWS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -175,7 +172,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_TBODIES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.tbodies", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_TBODIES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -194,7 +191,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -212,7 +209,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -230,7 +227,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.border", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_BORDER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -248,7 +245,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CELLPADDING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.cellpadding", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CELLPADDING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -266,7 +263,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CELLSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.cellspacing", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CELLSPACING, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -284,7 +281,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_FRAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.frame", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_FRAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -302,7 +299,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_RULES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.rules", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_RULES, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -320,7 +317,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_SUMMARY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.summary", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_SUMMARY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -338,7 +335,7 @@ GetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.width", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_WIDTH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -388,7 +385,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CAPTION: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.caption", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CAPTION, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -406,7 +403,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_THEAD: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.thead", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_THEAD, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -424,7 +421,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_TFOOT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.tfoot", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_TFOOT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -442,7 +439,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -456,7 +453,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -470,7 +467,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_BORDER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.border", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_BORDER, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -484,7 +481,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CELLPADDING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.cellpadding", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CELLPADDING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -498,7 +495,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_CELLSPACING: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.cellspacing", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CELLSPACING, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -512,7 +509,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_FRAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.frame", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_FRAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -526,7 +523,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_RULES: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.rules", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_RULES, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -540,7 +537,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_SUMMARY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.summary", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_SUMMARY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -554,7 +551,7 @@ SetHTMLTableElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTABLEELEMENT_WIDTH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.width", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_WIDTH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -626,7 +623,7 @@ HTMLTableElementCreateTHead(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.createthead",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CREATETHEAD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -669,7 +666,7 @@ HTMLTableElementDeleteTHead(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.deletethead",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_DELETETHEAD,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -713,7 +710,7 @@ HTMLTableElementCreateTFoot(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.createtfoot",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CREATETFOOT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -756,7 +753,7 @@ HTMLTableElementDeleteTFoot(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.deletetfoot",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_DELETETFOOT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -800,7 +797,7 @@ HTMLTableElementCreateCaption(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.createcaption",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_CREATECAPTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -843,7 +840,7 @@ HTMLTableElementDeleteCaption(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.deletecaption",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_DELETECAPTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -888,7 +885,7 @@ HTMLTableElementInsertRow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.insertrow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_INSERTROW,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -939,7 +936,7 @@ HTMLTableElementDeleteRow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltableelement.deleterow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEELEMENT_DELETEROW,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableRowElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableRowElement.cpp index 8b1615fa990..1b995bdd320 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableRowElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableRowElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLElement.h" @@ -87,7 +84,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_ROWINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.rowindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_ROWINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -105,7 +102,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_SECTIONROWINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.sectionrowindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_SECTIONROWINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -123,7 +120,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.cells", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CELLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -142,7 +139,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -160,7 +157,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.bgcolor", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_BGCOLOR, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -178,7 +175,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.ch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -196,7 +193,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.choff", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CHOFF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -214,7 +211,7 @@ GetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.valign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_VALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -264,7 +261,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_ROWINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.rowindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_ROWINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -284,7 +281,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_SECTIONROWINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.sectionrowindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_SECTIONROWINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -304,7 +301,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.cells", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CELLS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -322,7 +319,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -336,7 +333,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_BGCOLOR: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.bgcolor", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_BGCOLOR, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -350,7 +347,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.ch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -364,7 +361,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.choff", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_CHOFF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -378,7 +375,7 @@ SetHTMLTableRowElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTABLEROWELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.valign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_VALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -451,7 +448,7 @@ HTMLTableRowElementInsertCell(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.insertcell",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_INSERTCELL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -502,7 +499,7 @@ HTMLTableRowElementDeleteCell(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablerowelement.deletecell",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLEROWELEMENT_DELETECELL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTableSectionElement.cpp b/mozilla/dom/src/html/nsJSHTMLTableSectionElement.cpp index 1f9790b95e9..2e20822261b 100644 --- a/mozilla/dom/src/html/nsJSHTMLTableSectionElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTableSectionElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLElement.h" @@ -84,7 +81,7 @@ GetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.align", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_ALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -102,7 +99,7 @@ GetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.ch", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CH, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -120,7 +117,7 @@ GetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.choff", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CHOFF, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -138,7 +135,7 @@ GetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.valign", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_VALIGN, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -156,7 +153,7 @@ GetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.rows", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_ROWS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -207,7 +204,7 @@ SetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_ALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.align", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_ALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -221,7 +218,7 @@ SetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_CH: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.ch", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CH, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -235,7 +232,7 @@ SetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_CHOFF: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.choff", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_CHOFF, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -249,7 +246,7 @@ SetHTMLTableSectionElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval case HTMLTABLESECTIONELEMENT_VALIGN: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.valign", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_VALIGN, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -322,7 +319,7 @@ HTMLTableSectionElementInsertRow(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.insertrow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_INSERTROW,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -373,7 +370,7 @@ HTMLTableSectionElementDeleteRow(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltablesectionelement.deleterow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTABLESECTIONELEMENT_DELETEROW,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTextAreaElement.cpp b/mozilla/dom/src/html/nsJSHTMLTextAreaElement.cpp index 506a1c4385b..b9c476bfb43 100644 --- a/mozilla/dom/src/html/nsJSHTMLTextAreaElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTextAreaElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLFormElement.h" @@ -94,7 +91,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_DEFAULTVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.defaultvalue", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_DEFAULTVALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -112,7 +109,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_FORM: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.form", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_FORM, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -131,7 +128,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.accesskey", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_ACCESSKEY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -149,7 +146,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_COLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.cols", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_COLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -167,7 +164,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.disabled", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_DISABLED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -185,7 +182,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.name", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_NAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -203,7 +200,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_READONLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.readonly", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_READONLY, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -221,7 +218,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.rows", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_ROWS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -239,7 +236,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.tabindex", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_TABINDEX, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -257,7 +254,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -275,7 +272,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.value", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_VALUE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -293,7 +290,7 @@ GetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case NSHTMLTEXTAREAELEMENT_CONTROLLERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "nshtmltextareaelement.controllers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_CONTROLLERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -352,7 +349,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_DEFAULTVALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.defaultvalue", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_DEFAULTVALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -366,7 +363,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_ACCESSKEY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.accesskey", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_ACCESSKEY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -380,7 +377,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_COLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.cols", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_COLS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -400,7 +397,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_DISABLED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.disabled", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_DISABLED, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -416,7 +413,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_NAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.name", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_NAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -430,7 +427,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_READONLY: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.readonly", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_READONLY, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -446,7 +443,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_ROWS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.rows", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_ROWS, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -466,7 +463,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_TABINDEX: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.tabindex", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_TABINDEX, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -486,7 +483,7 @@ SetHTMLTextAreaElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp case HTMLTEXTAREAELEMENT_VALUE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.value", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_VALUE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -557,7 +554,7 @@ HTMLTextAreaElementBlur(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.blur",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_BLUR,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -600,7 +597,7 @@ HTMLTextAreaElementFocus(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.focus",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_FOCUS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -643,7 +640,7 @@ HTMLTextAreaElementSelect(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "htmltextareaelement.select",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTEXTAREAELEMENT_SELECT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLTitleElement.cpp b/mozilla/dom/src/html/nsJSHTMLTitleElement.cpp index 931515b8336..3be1a2b9d1b 100644 --- a/mozilla/dom/src/html/nsJSHTMLTitleElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLTitleElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLTitleElement.h" @@ -74,7 +71,7 @@ GetHTMLTitleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTITLEELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltitleelement.text", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTITLEELEMENT_TEXT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -124,7 +121,7 @@ SetHTMLTitleElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLTITLEELEMENT_TEXT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmltitleelement.text", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLTITLEELEMENT_TEXT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/html/nsJSHTMLUListElement.cpp b/mozilla/dom/src/html/nsJSHTMLUListElement.cpp index 59bccd58dac..52f6d41f874 100644 --- a/mozilla/dom/src/html/nsJSHTMLUListElement.cpp +++ b/mozilla/dom/src/html/nsJSHTMLUListElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMHTMLUListElement.h" @@ -75,7 +72,7 @@ GetHTMLUListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLULISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlulistelement.compact", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLULISTELEMENT_COMPACT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -93,7 +90,7 @@ GetHTMLUListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLULISTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlulistelement.type", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLULISTELEMENT_TYPE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -143,7 +140,7 @@ SetHTMLUListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLULISTELEMENT_COMPACT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlulistelement.compact", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLULISTELEMENT_COMPACT, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -159,7 +156,7 @@ SetHTMLUListElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case HTMLULISTELEMENT_TYPE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "htmlulistelement.type", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_HTMLULISTELEMENT_TYPE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/range/nsJSRange.cpp b/mozilla/dom/src/range/nsJSRange.cpp index b8198452eda..47b87db9909 100644 --- a/mozilla/dom/src/range/nsJSRange.cpp +++ b/mozilla/dom/src/range/nsJSRange.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMNode.h" @@ -88,7 +85,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_STARTPARENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.startparent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_STARTPARENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -107,7 +104,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_STARTOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.startoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_STARTOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -125,7 +122,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_ENDPARENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.endparent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_ENDPARENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -144,7 +141,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_ENDOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.endoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_ENDOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -162,7 +159,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_ISCOLLAPSED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.iscollapsed", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_ISCOLLAPSED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -180,7 +177,7 @@ GetRangeProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case RANGE_COMMONPARENT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "range.commonparent", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_COMMONPARENT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -291,7 +288,7 @@ RangeSetStart(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setstart",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETSTART,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -349,7 +346,7 @@ RangeSetStartBefore(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setstartbefore",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETSTARTBEFORE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -404,7 +401,7 @@ RangeSetStartAfter(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setstartafter",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETSTARTAFTER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -460,7 +457,7 @@ RangeSetEnd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setend",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETEND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -518,7 +515,7 @@ RangeSetEndBefore(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setendbefore",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETENDBEFORE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -573,7 +570,7 @@ RangeSetEndAfter(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.setendafter",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SETENDAFTER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -628,7 +625,7 @@ RangeCollapse(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.collapse",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_COLLAPSE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -679,7 +676,7 @@ RangeSelectNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.selectnode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SELECTNODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -734,7 +731,7 @@ RangeSelectNodeContents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.selectnodecontents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SELECTNODECONTENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -791,7 +788,7 @@ RangeCompareEndPoints(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.compareendpoints",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_COMPAREENDPOINTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -848,7 +845,7 @@ RangeDeleteContents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.deletecontents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_DELETECONTENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -892,7 +889,7 @@ RangeExtractContents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.extractcontents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_EXTRACTCONTENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -936,7 +933,7 @@ RangeCloneContents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.clonecontents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_CLONECONTENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -980,7 +977,7 @@ RangeInsertNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.insertnode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_INSERTNODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1035,7 +1032,7 @@ RangeSurroundContents(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.surroundcontents",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_SURROUNDCONTENTS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1090,7 +1087,7 @@ RangeClone(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.clone",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_CLONE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1134,7 +1131,7 @@ RangeToString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "range.tostring",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_RANGE_TOSTRING,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1184,7 +1181,7 @@ NSRangeCreateContextualFragment(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nsrange.createcontextualfragment",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSRANGE_CREATECONTEXTUALFRAGMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -1239,7 +1236,7 @@ NSRangeIsValidFragment(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "nsrange.isvalidfragment",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_NSRANGE_ISVALIDFRAGMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/range/nsJSSelection.cpp b/mozilla/dom/src/range/nsJSSelection.cpp index d4fc1844542..fd7d4a5d1a3 100644 --- a/mozilla/dom/src/range/nsJSSelection.cpp +++ b/mozilla/dom/src/range/nsJSSelection.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMSelection.h" @@ -91,7 +88,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_ANCHORNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.anchornode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ANCHORNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -110,7 +107,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_ANCHOROFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.anchoroffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ANCHOROFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -128,7 +125,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_FOCUSNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.focusnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_FOCUSNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -147,7 +144,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_FOCUSOFFSET: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.focusoffset", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_FOCUSOFFSET, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -165,7 +162,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_ISCOLLAPSED: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.iscollapsed", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ISCOLLAPSED, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -183,7 +180,7 @@ GetSelectionProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case SELECTION_RANGECOUNT: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "selection.rangecount", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_RANGECOUNT, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -293,7 +290,7 @@ SelectionGetRangeAt(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.getrangeat",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_GETRANGEAT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -343,7 +340,7 @@ SelectionClearSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.clearselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_CLEARSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -388,7 +385,7 @@ SelectionCollapse(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.collapse",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_COLLAPSE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -447,7 +444,7 @@ SelectionExtend(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.extend",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_EXTEND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -504,7 +501,7 @@ SelectionCollapseToStart(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.collapsetostart",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_COLLAPSETOSTART,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -547,7 +544,7 @@ SelectionCollapseToEnd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.collapsetoend",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_COLLAPSETOEND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -593,7 +590,7 @@ SelectionContainsNode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.containsnode",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_CONTAINSNODE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -650,7 +647,7 @@ SelectionDeleteFromDocument(JSContext *cx, JSObject *obj, uintN argc, jsval *arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.deletefromdocument",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_DELETEFROMDOCUMENT,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -694,7 +691,7 @@ SelectionAddRange(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.addrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ADDRANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -748,7 +745,7 @@ SelectionStartBatchChanges(JSContext *cx, JSObject *obj, uintN argc, jsval *argv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.startbatchchanges",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_STARTBATCHCHANGES,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -791,7 +788,7 @@ SelectionEndBatchChanges(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.endbatchchanges",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ENDBATCHCHANGES,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -835,7 +832,7 @@ SelectionAddSelectionListener(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.addselectionlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_ADDSELECTIONLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -890,7 +887,7 @@ SelectionRemoveSelectionListener(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.removeselectionlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_REMOVESELECTIONLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -945,7 +942,7 @@ SelectionToString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selection.tostring",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTION_TOSTRING,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/range/nsJSSelectionListener.cpp b/mozilla/dom/src/range/nsJSSelectionListener.cpp index 502bb9703c8..abfb6b2c934 100644 --- a/mozilla/dom/src/range/nsJSSelectionListener.cpp +++ b/mozilla/dom/src/range/nsJSSelectionListener.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMSelectionListener.h" @@ -159,7 +156,7 @@ SelectionListenerNotifySelectionChanged(JSContext *cx, JSObject *obj, uintN argc } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "selectionlistener.notifyselectionchanged",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_SELECTIONLISTENER_NOTIFYSELECTIONCHANGED,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/xul/nsJSXULCommandDispatcher.cpp b/mozilla/dom/src/xul/nsJSXULCommandDispatcher.cpp index 9aae3f1f7ab..1a736702bd0 100644 --- a/mozilla/dom/src/xul/nsJSXULCommandDispatcher.cpp +++ b/mozilla/dom/src/xul/nsJSXULCommandDispatcher.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIController.h" @@ -86,7 +83,7 @@ GetXULCommandDispatcherProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case XULCOMMANDDISPATCHER_FOCUSEDNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.focusednode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_FOCUSEDNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -137,7 +134,7 @@ SetXULCommandDispatcherProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case XULCOMMANDDISPATCHER_FOCUSEDNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.focusednode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_FOCUSEDNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -215,7 +212,7 @@ XULCommandDispatcherAddCommandUpdater(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.addcommandupdater",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_ADDCOMMANDUPDATER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -272,7 +269,7 @@ XULCommandDispatcherRemoveCommandUpdater(JSContext *cx, JSObject *obj, uintN arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.removecommandupdater",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_REMOVECOMMANDUPDATER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -327,7 +324,7 @@ XULCommandDispatcherUpdateCommands(JSContext *cx, JSObject *obj, uintN argc, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.updatecommands",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_UPDATECOMMANDS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -377,7 +374,7 @@ XULCommandDispatcherGetControllerForCommand(JSContext *cx, JSObject *obj, uintN } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.getcontrollerforcommand",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERFORCOMMAND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -427,7 +424,7 @@ XULCommandDispatcherGetControllers(JSContext *cx, JSObject *obj, uintN argc, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.getcontrollers",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/xul/nsJSXULDocument.cpp b/mozilla/dom/src/xul/nsJSXULDocument.cpp index a0221213715..1a5fffc02a6 100644 --- a/mozilla/dom/src/xul/nsJSXULDocument.cpp +++ b/mozilla/dom/src/xul/nsJSXULDocument.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -88,7 +85,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_POPUPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.popupnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_POPUPNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -107,7 +104,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_TOOLTIPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.tooltipnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_TOOLTIPNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -126,7 +123,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_COMMANDDISPATCHER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.commanddispatcher", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_COMMANDDISPATCHER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -177,7 +174,7 @@ SetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_POPUPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.popupnode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_POPUPNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ SetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_TOOLTIPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.tooltipnode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_TOOLTIPNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -272,7 +269,7 @@ XULDocumentGetElementById(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.getelementbyid",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_GETELEMENTBYID,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -323,7 +320,7 @@ XULDocumentGetElementsByAttribute(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.getelementsbyattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_GETELEMENTSBYATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -374,7 +371,7 @@ XULDocumentPersist(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.persist",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_PERSIST,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/xul/nsJSXULElement.cpp b/mozilla/dom/src/xul/nsJSXULElement.cpp index ea88b1b316b..720d863d2a9 100644 --- a/mozilla/dom/src/xul/nsJSXULElement.cpp +++ b/mozilla/dom/src/xul/nsJSXULElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -97,7 +94,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.id", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.classname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CLASSNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -133,7 +130,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -152,7 +149,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_DATABASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.database", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DATABASE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_RESOURCE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.resource", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_RESOURCE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CONTROLLERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.controllers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CONTROLLERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -241,7 +238,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.id", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ID, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -255,7 +252,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.classname", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CLASSNAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -269,7 +266,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_DATABASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.database", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DATABASE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -345,7 +342,7 @@ XULElementAddBroadcastListener(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.addbroadcastlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ADDBROADCASTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -402,7 +399,7 @@ XULElementRemoveBroadcastListener(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.removebroadcastlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_REMOVEBROADCASTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -457,7 +454,7 @@ XULElementDoCommand(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.docommand",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DOCOMMAND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -503,7 +500,7 @@ XULElementGetElementsByAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.getelementsbyattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_GETELEMENTSBYATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/src/xul/nsJSXULTreeElement.cpp b/mozilla/dom/src/xul/nsJSXULTreeElement.cpp index f98c79bb4aa..d451997cd58 100644 --- a/mozilla/dom/src/xul/nsJSXULTreeElement.cpp +++ b/mozilla/dom/src/xul/nsJSXULTreeElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMXULElement.h" @@ -81,7 +78,7 @@ GetXULTreeElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULTREEELEMENT_SELECTEDITEMS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selecteditems", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTEDITEMS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetXULTreeElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULTREEELEMENT_SELECTEDCELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectedcells", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTEDCELLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -210,7 +207,7 @@ XULTreeElementSelectItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectitem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -265,7 +262,7 @@ XULTreeElementSelectCell(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectcell",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTCELL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -319,7 +316,7 @@ XULTreeElementClearItemSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.clearitemselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_CLEARITEMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -362,7 +359,7 @@ XULTreeElementClearCellSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.clearcellselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_CLEARCELLSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -406,7 +403,7 @@ XULTreeElementAddItemToSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.additemtoselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_ADDITEMTOSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -461,7 +458,7 @@ XULTreeElementRemoveItemFromSelection(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.removeitemfromselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_REMOVEITEMFROMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -516,7 +513,7 @@ XULTreeElementAddCellToSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.addcelltoselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_ADDCELLTOSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -571,7 +568,7 @@ XULTreeElementRemoveCellFromSelection(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.removecellfromselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_REMOVECELLFROMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -626,7 +623,7 @@ XULTreeElementToggleItemSelection(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.toggleitemselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_TOGGLEITEMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -681,7 +678,7 @@ XULTreeElementToggleCellSelection(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.togglecellselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_TOGGLECELLSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -737,7 +734,7 @@ XULTreeElementSelectItemRange(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectitemrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTITEMRANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -800,7 +797,7 @@ XULTreeElementSelectCellRange(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectcellrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTCELLRANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -861,7 +858,7 @@ XULTreeElementSelectAll(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectall",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTALL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -904,7 +901,7 @@ XULTreeElementInvertSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.invertselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_INVERTSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/dom/tools/JSStubGen.cpp b/mozilla/dom/tools/JSStubGen.cpp index ccceb748fb6..abb8e95fa75 100644 --- a/mozilla/dom/tools/JSStubGen.cpp +++ b/mozilla/dom/tools/JSStubGen.cpp @@ -103,6 +103,7 @@ static const char kIncludeDefaultsStr[] = "\n" "#include \"nsIScriptObjectOwner.h\"\n" "#include \"nsIScriptGlobalObject.h\"\n" "#include \"nsCOMPtr.h\"\n" +"#include \"nsDOMPropEnums.h\"\n" #ifndef USE_COMPTR "#include \"nsIPtr.h\"\n" #endif @@ -476,7 +477,7 @@ static const char kPropCaseBeginStr[] = " case %s_%s:\n" " {\n" " PRBool ok = PR_FALSE;\n" -" secMan->CheckScriptAccess(scriptCX, obj, \"%s.%s\", %s, &ok);\n" +" secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_%s_%s, %s, &ok);\n" " if (!ok) {\n" " return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR);\n" " }\n"; @@ -551,19 +552,19 @@ JSStubGen::GeneratePropertyFunc(IdlSpecification &aSpec, PRBool aIsGetter) any = PR_TRUE; - char lwr_attr_name[128]; - strcpy(lwr_attr_name, attr_name); - StrLwr(lwr_attr_name); + char upr_attr_name[128]; + strcpy(upr_attr_name, attr_name); + StrUpr(upr_attr_name); - char lwr_iface_name[128]; - strcpy(lwr_iface_name, iface_name); - StrLwr(lwr_iface_name); + char upr_iface_name[128]; + strcpy(upr_iface_name, iface_name); + StrUpr(upr_iface_name); if (aIsGetter) { - sprintf(buf, kPropCaseBeginStr, iface_name, attr_name, lwr_iface_name, lwr_attr_name, "PR_FALSE"); + sprintf(buf, kPropCaseBeginStr, iface_name, attr_name, upr_iface_name, upr_attr_name, "PR_FALSE"); } else { - sprintf(buf, kPropCaseBeginStr, iface_name, attr_name, lwr_iface_name, lwr_attr_name, "PR_TRUE"); + sprintf(buf, kPropCaseBeginStr, iface_name, attr_name, upr_iface_name, upr_attr_name, "PR_TRUE"); } *file << buf; @@ -1008,7 +1009,7 @@ static const char kMethodBodyBeginStr[] = "\n" " }\n" " {\n" " PRBool ok;\n" -" secMan->CheckScriptAccess(scriptCX, obj, \"%s.%s\",PR_FALSE , &ok);\n" +" secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_%s_%s,PR_FALSE , &ok);\n" " if (!ok) {\n" " return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR);\n" " }\n" @@ -1208,16 +1209,16 @@ JSStubGen::GenerateMethods(IdlSpecification &aSpec) *file << buf; } - char lwr_method_name[128]; - strcpy(lwr_method_name, method_name); - StrLwr(lwr_method_name); + char upr_method_name[128]; + strcpy(upr_method_name, method_name); + StrUpr(upr_method_name); - char lwr_iface_name[128]; - strcpy(lwr_iface_name, iface->GetName()); - StrLwr(lwr_iface_name); + char upr_iface_name[128]; + strcpy(upr_iface_name, iface->GetName()); + StrUpr(upr_iface_name); - sprintf(buf, kMethodBodyBeginStr, lwr_iface_name, - lwr_method_name); + sprintf(buf, kMethodBodyBeginStr, upr_iface_name, + upr_method_name); *file << buf; if (pcount > 0) { diff --git a/mozilla/modules/libpref/src/init/all.js b/mozilla/modules/libpref/src/init/all.js index c64d3fca8dd..eb2768b1f95 100644 --- a/mozilla/modules/libpref/src/init/all.js +++ b/mozilla/modules/libpref/src/init/all.js @@ -337,19 +337,65 @@ pref("security.policy.default.location.tostring", "sameOrigin"); pref("security.policy.default.nslocation.reload", "sameOrigin"); pref("security.policy.default.nslocation.replace", "sameOrigin"); +pref("security.policy.default.document.createattribute", "sameOrigin"); +pref("security.policy.default.document.createcdatasection", "sameOrigin"); +pref("security.policy.default.document.createcomment", "sameOrigin"); +pref("security.policy.default.document.createdocumentfragment", "sameOrigin"); +pref("security.policy.default.document.createelement", "sameOrigin"); +pref("security.policy.default.document.createentityreference", "sameOrigin"); +pref("security.policy.default.document.createprocessinginstruction", "sameOrigin"); +pref("security.policy.default.document.createtextnode", "sameOrigin"); +pref("security.policy.default.document.doctype", "sameOrigin"); +pref("security.policy.default.document.documentelement", "sameOrigin"); +pref("security.policy.default.document.getelementsbytagname", "sameOrigin"); +pref("security.policy.default.document.implementation", "sameOrigin"); pref("security.policy.default.htmldocument.anchors", "sameOrigin"); pref("security.policy.default.htmldocument.applets", "sameOrigin"); +pref("security.policy.default.htmldocument.body", "sameOrigin"); pref("security.policy.default.htmldocument.cookie", "sameOrigin"); pref("security.policy.default.htmldocument.domain", "sameOrigin"); +pref("security.policy.default.htmldocument.forms", "sameOrigin"); pref("security.policy.default.htmldocument.getelementbyid", "sameOrigin"); pref("security.policy.default.htmldocument.getelementsbyname", "sameOrigin"); -pref("security.policy.default.htmldocument.forms", "sameOrigin"); pref("security.policy.default.htmldocument.links", "sameOrigin"); pref("security.policy.default.htmldocument.referrer", "sameOrigin"); pref("security.policy.default.htmldocument.title", "sameOrigin"); pref("security.policy.default.htmldocument.url", "sameOrigin"); +pref("security.policy.default.nshtmldocument.alinkcolor.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.bgcolor.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.captureevents", "sameOrigin"); pref("security.policy.default.nshtmldocument.embeds", "sameOrigin"); +pref("security.policy.default.nshtmldocument.fgcolor.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.getselection", "sameOrigin"); pref("security.policy.default.nshtmldocument.lastmodified", "sameOrigin"); +pref("security.policy.default.nshtmldocument.layers.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.linkcolor.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.nameditem", "sameOrigin"); +pref("security.policy.default.nshtmldocument.open", "sameOrigin"); +pref("security.policy.default.nshtmldocument.plugins", "sameOrigin"); +pref("security.policy.default.nshtmldocument.releaseevents", "sameOrigin"); +pref("security.policy.default.nshtmldocument.routeevent", "sameOrigin"); +pref("security.policy.default.nshtmldocument.vlinkcolor.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.write", "sameOrigin"); +pref("security.policy.default.nshtmldocument.writeln", "sameOrigin"); pref("security.policy.default.navigator.preference.read", "UniversalPreferencesRead"); pref("security.policy.default.navigator.preference.write", "UniversalPreferencesWrite"); + +pref("security.policy.default.node.appendchild", "sameOrigin"); +pref("security.policy.default.node.attributes", "sameOrigin"); +pref("security.policy.default.node.childnodes", "sameOrigin"); +pref("security.policy.default.node.clonenode", "sameOrigin"); +pref("security.policy.default.node.firstchild", "sameOrigin"); +pref("security.policy.default.node.haschildnodes", "sameOrigin"); +pref("security.policy.default.node.insertbefore", "sameOrigin"); +pref("security.policy.default.node.lastchild", "sameOrigin"); +pref("security.policy.default.node.nextsibling", "sameOrigin"); +pref("security.policy.default.node.nodename", "sameOrigin"); +pref("security.policy.default.node.nodetype", "sameOrigin"); +pref("security.policy.default.node.nodevalue", "sameOrigin"); +pref("security.policy.default.node.ownerdocument", "sameOrigin"); +pref("security.policy.default.node.parentnode", "sameOrigin"); +pref("security.policy.default.node.previoussibling", "sameOrigin"); +pref("security.policy.default.node.removechild", "sameOrigin"); +pref("security.policy.default.node.replacechild", "sameOrigin"); diff --git a/mozilla/rdf/content/public/nsIDOMXULCommandDispatcher.h b/mozilla/rdf/content/public/nsIDOMXULCommandDispatcher.h index b8cb47453b2..93864e44fb4 100644 --- a/mozilla/rdf/content/public/nsIDOMXULCommandDispatcher.h +++ b/mozilla/rdf/content/public/nsIDOMXULCommandDispatcher.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/rdf/content/public/nsIDOMXULDocument.h b/mozilla/rdf/content/public/nsIDOMXULDocument.h index f88879301a7..09d3ed86bb1 100644 --- a/mozilla/rdf/content/public/nsIDOMXULDocument.h +++ b/mozilla/rdf/content/public/nsIDOMXULDocument.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/rdf/content/public/nsIDOMXULEditorElement.h b/mozilla/rdf/content/public/nsIDOMXULEditorElement.h index 54c298142d3..be62662814f 100644 --- a/mozilla/rdf/content/public/nsIDOMXULEditorElement.h +++ b/mozilla/rdf/content/public/nsIDOMXULEditorElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/rdf/content/public/nsIDOMXULElement.h b/mozilla/rdf/content/public/nsIDOMXULElement.h index 6cf47fee4f8..987b4c9bde8 100644 --- a/mozilla/rdf/content/public/nsIDOMXULElement.h +++ b/mozilla/rdf/content/public/nsIDOMXULElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/rdf/content/public/nsIDOMXULTreeElement.h b/mozilla/rdf/content/public/nsIDOMXULTreeElement.h index 6691e834ca9..1c5f6eb63a9 100644 --- a/mozilla/rdf/content/public/nsIDOMXULTreeElement.h +++ b/mozilla/rdf/content/public/nsIDOMXULTreeElement.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/rdf/content/src/nsJSXULCommandDispatcher.cpp b/mozilla/rdf/content/src/nsJSXULCommandDispatcher.cpp index 9aae3f1f7ab..1a736702bd0 100644 --- a/mozilla/rdf/content/src/nsJSXULCommandDispatcher.cpp +++ b/mozilla/rdf/content/src/nsJSXULCommandDispatcher.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIController.h" @@ -86,7 +83,7 @@ GetXULCommandDispatcherProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case XULCOMMANDDISPATCHER_FOCUSEDNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.focusednode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_FOCUSEDNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -137,7 +134,7 @@ SetXULCommandDispatcherProperty(JSContext *cx, JSObject *obj, jsval id, jsval *v case XULCOMMANDDISPATCHER_FOCUSEDNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.focusednode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_FOCUSEDNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -215,7 +212,7 @@ XULCommandDispatcherAddCommandUpdater(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.addcommandupdater",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_ADDCOMMANDUPDATER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -272,7 +269,7 @@ XULCommandDispatcherRemoveCommandUpdater(JSContext *cx, JSObject *obj, uintN arg } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.removecommandupdater",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_REMOVECOMMANDUPDATER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -327,7 +324,7 @@ XULCommandDispatcherUpdateCommands(JSContext *cx, JSObject *obj, uintN argc, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.updatecommands",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_UPDATECOMMANDS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -377,7 +374,7 @@ XULCommandDispatcherGetControllerForCommand(JSContext *cx, JSObject *obj, uintN } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.getcontrollerforcommand",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERFORCOMMAND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -427,7 +424,7 @@ XULCommandDispatcherGetControllers(JSContext *cx, JSObject *obj, uintN argc, jsv } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulcommanddispatcher.getcontrollers",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULCOMMANDDISPATCHER_GETCONTROLLERS,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/rdf/content/src/nsJSXULDocument.cpp b/mozilla/rdf/content/src/nsJSXULDocument.cpp index a0221213715..1a5fffc02a6 100644 --- a/mozilla/rdf/content/src/nsJSXULDocument.cpp +++ b/mozilla/rdf/content/src/nsJSXULDocument.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -88,7 +85,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_POPUPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.popupnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_POPUPNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -107,7 +104,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_TOOLTIPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.tooltipnode", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_TOOLTIPNODE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -126,7 +123,7 @@ GetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_COMMANDDISPATCHER: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.commanddispatcher", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_COMMANDDISPATCHER, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -177,7 +174,7 @@ SetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_POPUPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.popupnode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_POPUPNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -195,7 +192,7 @@ SetXULDocumentProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULDOCUMENT_TOOLTIPNODE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.tooltipnode", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_TOOLTIPNODE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -272,7 +269,7 @@ XULDocumentGetElementById(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.getelementbyid",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_GETELEMENTBYID,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -323,7 +320,7 @@ XULDocumentGetElementsByAttribute(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.getelementsbyattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_GETELEMENTSBYATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -374,7 +371,7 @@ XULDocumentPersist(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xuldocument.persist",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULDOCUMENT_PERSIST,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/rdf/content/src/nsJSXULEditorElement.cpp b/mozilla/rdf/content/src/nsJSXULEditorElement.cpp index 967b4f71561..3d133caf129 100644 --- a/mozilla/rdf/content/src/nsJSXULEditorElement.cpp +++ b/mozilla/rdf/content/src/nsJSXULEditorElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMXULEditorElement.h" @@ -77,7 +74,7 @@ GetXULEditorElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULEDITORELEMENT_EDITORSHELL: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xuleditorelement.editorshell", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULEDITORELEMENT_EDITORSHELL, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/rdf/content/src/nsJSXULElement.cpp b/mozilla/rdf/content/src/nsJSXULElement.cpp index ea88b1b316b..720d863d2a9 100644 --- a/mozilla/rdf/content/src/nsJSXULElement.cpp +++ b/mozilla/rdf/content/src/nsJSXULElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMElement.h" @@ -97,7 +94,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.id", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ID, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -115,7 +112,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.classname", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CLASSNAME, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -133,7 +130,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_STYLE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.style", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_STYLE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -152,7 +149,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_DATABASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.database", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DATABASE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -171,7 +168,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_RESOURCE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.resource", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_RESOURCE, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -190,7 +187,7 @@ GetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CONTROLLERS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.controllers", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CONTROLLERS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -241,7 +238,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.id", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ID, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -255,7 +252,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_CLASSNAME: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.classname", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_CLASSNAME, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -269,7 +266,7 @@ SetXULElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULELEMENT_DATABASE: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.database", PR_TRUE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DATABASE, PR_TRUE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -345,7 +342,7 @@ XULElementAddBroadcastListener(JSContext *cx, JSObject *obj, uintN argc, jsval * } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.addbroadcastlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_ADDBROADCASTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -402,7 +399,7 @@ XULElementRemoveBroadcastListener(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.removebroadcastlistener",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_REMOVEBROADCASTLISTENER,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -457,7 +454,7 @@ XULElementDoCommand(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.docommand",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_DOCOMMAND,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -503,7 +500,7 @@ XULElementGetElementsByAttribute(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xulelement.getelementsbyattribute",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULELEMENT_GETELEMENTSBYATTRIBUTE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/rdf/content/src/nsJSXULTreeElement.cpp b/mozilla/rdf/content/src/nsJSXULTreeElement.cpp index f98c79bb4aa..d451997cd58 100644 --- a/mozilla/rdf/content/src/nsJSXULTreeElement.cpp +++ b/mozilla/rdf/content/src/nsJSXULTreeElement.cpp @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ @@ -31,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMXULElement.h" @@ -81,7 +78,7 @@ GetXULTreeElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULTREEELEMENT_SELECTEDITEMS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selecteditems", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTEDITEMS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -100,7 +97,7 @@ GetXULTreeElementProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) case XULTREEELEMENT_SELECTEDCELLS: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectedcells", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTEDCELLS, PR_FALSE, &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -210,7 +207,7 @@ XULTreeElementSelectItem(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectitem",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTITEM,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -265,7 +262,7 @@ XULTreeElementSelectCell(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectcell",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTCELL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -319,7 +316,7 @@ XULTreeElementClearItemSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.clearitemselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_CLEARITEMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -362,7 +359,7 @@ XULTreeElementClearCellSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.clearcellselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_CLEARCELLSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -406,7 +403,7 @@ XULTreeElementAddItemToSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.additemtoselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_ADDITEMTOSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -461,7 +458,7 @@ XULTreeElementRemoveItemFromSelection(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.removeitemfromselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_REMOVEITEMFROMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -516,7 +513,7 @@ XULTreeElementAddCellToSelection(JSContext *cx, JSObject *obj, uintN argc, jsval } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.addcelltoselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_ADDCELLTOSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -571,7 +568,7 @@ XULTreeElementRemoveCellFromSelection(JSContext *cx, JSObject *obj, uintN argc, } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.removecellfromselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_REMOVECELLFROMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -626,7 +623,7 @@ XULTreeElementToggleItemSelection(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.toggleitemselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_TOGGLEITEMSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -681,7 +678,7 @@ XULTreeElementToggleCellSelection(JSContext *cx, JSObject *obj, uintN argc, jsva } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.togglecellselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_TOGGLECELLSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -737,7 +734,7 @@ XULTreeElementSelectItemRange(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectitemrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTITEMRANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -800,7 +797,7 @@ XULTreeElementSelectCellRange(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectcellrange",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTCELLRANGE,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -861,7 +858,7 @@ XULTreeElementSelectAll(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.selectall",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_SELECTALL,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } @@ -904,7 +901,7 @@ XULTreeElementInvertSelection(JSContext *cx, JSObject *obj, uintN argc, jsval *a } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "xultreeelement.invertselection",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_XULTREEELEMENT_INVERTSELECTION,PR_FALSE , &ok); if (!ok) { return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } diff --git a/mozilla/xpfe/AppCores/public/nsIDOMAppCoresManager.h b/mozilla/xpfe/AppCores/public/nsIDOMAppCoresManager.h index 2ebe7e0301a..5d7a24c444c 100644 --- a/mozilla/xpfe/AppCores/public/nsIDOMAppCoresManager.h +++ b/mozilla/xpfe/AppCores/public/nsIDOMAppCoresManager.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/xpfe/AppCores/public/nsIDOMBaseAppCore.h b/mozilla/xpfe/AppCores/public/nsIDOMBaseAppCore.h index 382e6867bb3..0951d980272 100644 --- a/mozilla/xpfe/AppCores/public/nsIDOMBaseAppCore.h +++ b/mozilla/xpfe/AppCores/public/nsIDOMBaseAppCore.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/xpfe/AppCores/public/nsIDOMToolkitCore.h b/mozilla/xpfe/AppCores/public/nsIDOMToolkitCore.h index a6e9ee4efca..fbaf66a69f7 100644 --- a/mozilla/xpfe/AppCores/public/nsIDOMToolkitCore.h +++ b/mozilla/xpfe/AppCores/public/nsIDOMToolkitCore.h @@ -1,23 +1,19 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ diff --git a/mozilla/xpfe/AppCores/src/nsJSAppCoresManager.cpp b/mozilla/xpfe/AppCores/src/nsJSAppCoresManager.cpp index c6e28c3ac45..0c6af71d3a2 100644 --- a/mozilla/xpfe/AppCores/src/nsJSAppCoresManager.cpp +++ b/mozilla/xpfe/AppCores/src/nsJSAppCoresManager.cpp @@ -1,28 +1,25 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ #include "jsapi.h" #include "nsJSUtils.h" +#include "nsDOMError.h" #include "nscore.h" #include "nsIScriptContext.h" #include "nsIScriptSecurityManager.h" @@ -30,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMAppCoresManager.h" @@ -64,7 +62,7 @@ GetAppCoresManagerProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case 0: @@ -97,7 +95,7 @@ SetAppCoresManagerProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case 0: @@ -150,20 +148,20 @@ PR_STATIC_CALLBACK(JSBool) AppCoresManagerStartup(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMAppCoresManager *nativeThis = (nsIDOMAppCoresManager*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; *rval = JSVAL_NULL; nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "appcoresmanager.startup",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_APPCORESMANAGER_STARTUP,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -174,8 +172,9 @@ AppCoresManagerStartup(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js { - if (NS_OK != nativeThis->Startup()) { - return JS_FALSE; + result = nativeThis->Startup(); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -192,20 +191,20 @@ PR_STATIC_CALLBACK(JSBool) AppCoresManagerShutdown(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMAppCoresManager *nativeThis = (nsIDOMAppCoresManager*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; *rval = JSVAL_NULL; nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "appcoresmanager.shutdown",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_APPCORESMANAGER_SHUTDOWN,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -216,8 +215,9 @@ AppCoresManagerShutdown(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, j { - if (NS_OK != nativeThis->Shutdown()) { - return JS_FALSE; + result = nativeThis->Shutdown(); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -234,6 +234,7 @@ PR_STATIC_CALLBACK(JSBool) AppCoresManagerAdd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMAppCoresManager *nativeThis = (nsIDOMAppCoresManager*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsIDOMBaseAppCorePtr b0; *rval = JSVAL_NULL; @@ -241,14 +242,13 @@ AppCoresManagerAdd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "appcoresmanager.add",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_APPCORESMANAGER_ADD,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -259,8 +259,7 @@ AppCoresManagerAdd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval { if (argc < 1) { - JS_ReportError(cx, "Function Add requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } if (JS_FALSE == nsJSUtils::nsConvertJSValToObject((nsISupports **)&b0, @@ -268,11 +267,12 @@ AppCoresManagerAdd(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval "BaseAppCore", cx, argv[0])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->Add(b0)) { - return JS_FALSE; + result = nativeThis->Add(b0); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -289,6 +289,7 @@ PR_STATIC_CALLBACK(JSBool) AppCoresManagerRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMAppCoresManager *nativeThis = (nsIDOMAppCoresManager*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsIDOMBaseAppCorePtr b0; *rval = JSVAL_NULL; @@ -296,14 +297,13 @@ AppCoresManagerRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "appcoresmanager.remove",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_APPCORESMANAGER_REMOVE,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -314,8 +314,7 @@ AppCoresManagerRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv { if (argc < 1) { - JS_ReportError(cx, "Function Remove requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } if (JS_FALSE == nsJSUtils::nsConvertJSValToObject((nsISupports **)&b0, @@ -323,11 +322,12 @@ AppCoresManagerRemove(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv "BaseAppCore", cx, argv[0])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->Remove(b0)) { - return JS_FALSE; + result = nativeThis->Remove(b0); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -344,6 +344,7 @@ PR_STATIC_CALLBACK(JSBool) AppCoresManagerFind(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMAppCoresManager *nativeThis = (nsIDOMAppCoresManager*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsIDOMBaseAppCore* nativeRet; nsAutoString b0; @@ -352,14 +353,13 @@ AppCoresManagerFind(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "appcoresmanager.find",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_APPCORESMANAGER_FIND,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -370,14 +370,14 @@ AppCoresManagerFind(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval { if (argc < 1) { - JS_ReportError(cx, "Function Find requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); - if (NS_OK != nativeThis->Find(b0, &nativeRet)) { - return JS_FALSE; + result = nativeThis->Find(b0, &nativeRet); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } nsJSUtils::nsConvertObjectToJSVal(nativeRet, cx, rval); diff --git a/mozilla/xpfe/AppCores/src/nsJSBaseAppCore.cpp b/mozilla/xpfe/AppCores/src/nsJSBaseAppCore.cpp index 5345ff635ad..6d6f80a9b23 100644 --- a/mozilla/xpfe/AppCores/src/nsJSBaseAppCore.cpp +++ b/mozilla/xpfe/AppCores/src/nsJSBaseAppCore.cpp @@ -1,28 +1,25 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ #include "jsapi.h" #include "nsJSUtils.h" +#include "nsDOMError.h" #include "nscore.h" #include "nsIScriptContext.h" #include "nsIScriptSecurityManager.h" @@ -30,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMBaseAppCore.h" @@ -71,23 +69,24 @@ GetBaseAppCoreProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case BASEAPPCORE_ID: { PRBool ok = PR_FALSE; - secMan->CheckScriptAccess(scriptCX, obj, "baseappcore.id", PR_FALSE, &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_BASEAPPCORE_ID, PR_FALSE, &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } nsAutoString prop; - if (NS_SUCCEEDED(a->GetId(prop))) { + nsresult result = NS_OK; + result = a->GetId(prop); + if (NS_SUCCEEDED(result)) { nsJSUtils::nsConvertStringToJSVal(prop, cx, vp); } else { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, result); } break; } @@ -120,7 +119,7 @@ SetBaseAppCoreProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case 0: @@ -173,6 +172,7 @@ PR_STATIC_CALLBACK(JSBool) BaseAppCoreInit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMBaseAppCore *nativeThis = (nsIDOMBaseAppCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; *rval = JSVAL_NULL; @@ -180,14 +180,13 @@ BaseAppCoreInit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "baseappcore.init",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_BASEAPPCORE_INIT,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -198,14 +197,14 @@ BaseAppCoreInit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rv { if (argc < 1) { - JS_ReportError(cx, "Function Init requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); - if (NS_OK != nativeThis->Init(b0)) { - return JS_FALSE; + result = nativeThis->Init(b0); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -222,6 +221,7 @@ PR_STATIC_CALLBACK(JSBool) BaseAppCoreSetDocumentCharset(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMBaseAppCore *nativeThis = (nsIDOMBaseAppCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; *rval = JSVAL_NULL; @@ -229,14 +229,13 @@ BaseAppCoreSetDocumentCharset(JSContext *cx, JSObject *obj, uintN argc, jsval *a nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "baseappcore.setdocumentcharset",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_BASEAPPCORE_SETDOCUMENTCHARSET,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -247,14 +246,14 @@ BaseAppCoreSetDocumentCharset(JSContext *cx, JSObject *obj, uintN argc, jsval *a { if (argc < 1) { - JS_ReportError(cx, "Function SetDocumentCharset requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); - if (NS_OK != nativeThis->SetDocumentCharset(b0)) { - return JS_FALSE; + result = nativeThis->SetDocumentCharset(b0); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; diff --git a/mozilla/xpfe/AppCores/src/nsJSToolkitCore.cpp b/mozilla/xpfe/AppCores/src/nsJSToolkitCore.cpp index 1ad297cb7bd..fd9a83c5c7c 100644 --- a/mozilla/xpfe/AppCores/src/nsJSToolkitCore.cpp +++ b/mozilla/xpfe/AppCores/src/nsJSToolkitCore.cpp @@ -1,28 +1,25 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * - * The contents of this file are subject to the Netscape Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. * - * The Original Code is mozilla.org code. - * - * The Initial Developer of the Original Code is Netscape + * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All - * Rights Reserved. - * - * Contributor(s): + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ #include "jsapi.h" #include "nsJSUtils.h" +#include "nsDOMError.h" #include "nscore.h" #include "nsIScriptContext.h" #include "nsIScriptSecurityManager.h" @@ -30,6 +27,7 @@ #include "nsIScriptObjectOwner.h" #include "nsIScriptGlobalObject.h" #include "nsCOMPtr.h" +#include "nsDOMPropEnums.h" #include "nsIPtr.h" #include "nsString.h" #include "nsIDOMToolkitCore.h" @@ -68,7 +66,7 @@ GetToolkitCoreProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case 0: @@ -101,7 +99,7 @@ SetToolkitCoreProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp) nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } switch(JSVAL_TO_INT(id)) { case 0: @@ -154,6 +152,7 @@ PR_STATIC_CALLBACK(JSBool) ToolkitCoreShowDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMToolkitCore *nativeThis = (nsIDOMToolkitCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; nsIDOMWindowPtr b1; @@ -162,14 +161,13 @@ ToolkitCoreShowDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "toolkitcore.showdialog",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TOOLKITCORE_SHOWDIALOG,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -180,8 +178,7 @@ ToolkitCoreShowDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv { if (argc < 2) { - JS_ReportError(cx, "Function ShowDialog requires 2 parameters"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); @@ -190,11 +187,12 @@ ToolkitCoreShowDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv "Window", cx, argv[1])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->ShowDialog(b0, b1)) { - return JS_FALSE; + result = nativeThis->ShowDialog(b0, b1); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -211,6 +209,7 @@ PR_STATIC_CALLBACK(JSBool) ToolkitCoreShowWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMToolkitCore *nativeThis = (nsIDOMToolkitCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; nsIDOMWindowPtr b1; @@ -219,14 +218,13 @@ ToolkitCoreShowWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "toolkitcore.showwindow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TOOLKITCORE_SHOWWINDOW,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -237,8 +235,7 @@ ToolkitCoreShowWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv { if (argc < 2) { - JS_ReportError(cx, "Function ShowWindow requires 2 parameters"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); @@ -247,11 +244,12 @@ ToolkitCoreShowWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv "Window", cx, argv[1])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->ShowWindow(b0, b1)) { - return JS_FALSE; + result = nativeThis->ShowWindow(b0, b1); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -268,6 +266,7 @@ PR_STATIC_CALLBACK(JSBool) ToolkitCoreShowWindowWithArgs(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMToolkitCore *nativeThis = (nsIDOMToolkitCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; nsIDOMWindowPtr b1; nsAutoString b2; @@ -277,14 +276,13 @@ ToolkitCoreShowWindowWithArgs(JSContext *cx, JSObject *obj, uintN argc, jsval *a nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "toolkitcore.showwindowwithargs",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TOOLKITCORE_SHOWWINDOWWITHARGS,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -295,8 +293,7 @@ ToolkitCoreShowWindowWithArgs(JSContext *cx, JSObject *obj, uintN argc, jsval *a { if (argc < 3) { - JS_ReportError(cx, "Function ShowWindowWithArgs requires 3 parameters"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); @@ -305,12 +302,13 @@ ToolkitCoreShowWindowWithArgs(JSContext *cx, JSObject *obj, uintN argc, jsval *a "Window", cx, argv[1])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } nsJSUtils::nsConvertJSValToString(b2, cx, argv[2]); - if (NS_OK != nativeThis->ShowWindowWithArgs(b0, b1, b2)) { - return JS_FALSE; + result = nativeThis->ShowWindowWithArgs(b0, b1, b2); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -327,6 +325,7 @@ PR_STATIC_CALLBACK(JSBool) ToolkitCoreShowModalDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMToolkitCore *nativeThis = (nsIDOMToolkitCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsAutoString b0; nsIDOMWindowPtr b1; @@ -335,14 +334,13 @@ ToolkitCoreShowModalDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "toolkitcore.showmodaldialog",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TOOLKITCORE_SHOWMODALDIALOG,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -353,8 +351,7 @@ ToolkitCoreShowModalDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv { if (argc < 2) { - JS_ReportError(cx, "Function ShowModalDialog requires 2 parameters"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]); @@ -363,11 +360,12 @@ ToolkitCoreShowModalDialog(JSContext *cx, JSObject *obj, uintN argc, jsval *argv "Window", cx, argv[1])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->ShowModalDialog(b0, b1)) { - return JS_FALSE; + result = nativeThis->ShowModalDialog(b0, b1); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID; @@ -384,6 +382,7 @@ PR_STATIC_CALLBACK(JSBool) ToolkitCoreCloseWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { nsIDOMToolkitCore *nativeThis = (nsIDOMToolkitCore*)nsJSUtils::nsGetNativeThis(cx, obj); + nsresult result = NS_OK; nsIDOMWindowPtr b0; *rval = JSVAL_NULL; @@ -391,14 +390,13 @@ ToolkitCoreCloseWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js nsIScriptContext *scriptCX = (nsIScriptContext *)JS_GetContextPrivate(cx); nsCOMPtr secMan; if (NS_OK != scriptCX->GetSecurityManager(getter_AddRefs(secMan))) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECMAN_ERR); } { PRBool ok; - secMan->CheckScriptAccess(scriptCX, obj, "toolkitcore.closewindow",PR_FALSE , &ok); + secMan->CheckScriptAccess(scriptCX, obj, NS_DOM_PROP_TOOLKITCORE_CLOSEWINDOW,PR_FALSE , &ok); if (!ok) { - //Need to throw error here - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_SECURITY_ERR); } } @@ -409,8 +407,7 @@ ToolkitCoreCloseWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js { if (argc < 1) { - JS_ReportError(cx, "Function CloseWindow requires 1 parameter"); - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR); } if (JS_FALSE == nsJSUtils::nsConvertJSValToObject((nsISupports **)&b0, @@ -418,11 +415,12 @@ ToolkitCoreCloseWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, js "Window", cx, argv[0])) { - return JS_FALSE; + return nsJSUtils::nsReportError(cx, NS_ERROR_DOM_NOT_OBJECT_ERR); } - if (NS_OK != nativeThis->CloseWindow(b0)) { - return JS_FALSE; + result = nativeThis->CloseWindow(b0); + if (NS_FAILED(result)) { + return nsJSUtils::nsReportError(cx, result); } *rval = JSVAL_VOID;