JavaScript
The following are JavaScript and XPConnect interfaces. Although Mozilla uses JavaScript as its default scripting language, these interfaces are not necessarily specific to JavaScript and may apply to other languages as well.
Jump to:
JavaScript
These interfaces are used to load and evaluate JavaScript. You wouldn't use most of them in JavaScript but native code can use them to execute blocks of script. Use the mozIJSSubScriptLoader to load a JavaScript file.
mozIJSSubScriptLoadernsIJSContextStack
nsIJSContextStackIterator
nsIJSON
nsIJSRuntimeService
nsIScriptError
nsIScriptEventHandler
nsIScriptEventManager
nsIScriptLoader
nsIScriptLoaderObserver
nsIScriptSecurityManager
XPConnect
These interfaces are used by XPConnect, which is the JavaScript connection to XPCOM. This allows JavaScript to call XPCOM components. The nsIXPCComponents interface is directly accessible in JavaScript as the Components object.
IDispatchnsIJSCID
nsIJSID
nsIJSIID
nsIScriptableConstant
nsIScriptableDataType
nsIScriptableInterfaces
nsIScriptableMethodInfo
nsIScriptableParamInfo
nsIXPCComponents
nsIXPCComponents_Classes
nsIXPCComponents_ClassesByID
nsIXPCComponents_Constructor
nsIXPCComponents_Exception
nsIXPCComponents_ID
nsIXPCComponents_Results
nsIXPCComponents_Utils
nsIXPCComponents_utils_Sandbox
nsIXPCConstructor
nsIXPCException
nsIXPCFunctionThisTranslator
nsIXPCNativeCallContext
nsIXPCScriptNotify
nsIXPCScriptable
nsIXPCSecurityManager
nsIXPCWrappedJSObjectGetter
nsIXPConnect
nsIXPConnectJSObjectHolder
nsIXPConnectWrappedJS
nsIXPConnectWrappedNative
xpcIJSModuleLoader
xpcIJSWeakReference
JavaScript and XPConnect Components
JavaScript and XPConnect components
@mozilla.org/consoleservice;1@mozilla.org/dom/json;1
@mozilla.org/embedcomp/jsconsole-service;1
@mozilla.org/globalprefsecuritycheck;1
@mozilla.org/js/xpc/ContextStack;1
@mozilla.org/js/xpc/ContextStackIterator;1
@mozilla.org/js/xpc/Exception;1
@mozilla.org/js/xpc/ID;1
@mozilla.org/js/xpc/RuntimeService;1
@mozilla.org/js/xpc/XPConnect;1
@mozilla.org/liveconnect/liveconnect;1
@mozilla.org/moz/jsloader;1
@mozilla.org/moz/jssubscript-loader;1
@mozilla.org/scriptableinterfaces;1
@mozilla.org/scripterror;1
@mozilla.org/scriptsecuritymanager;1
@mozilla.org/xptinfo/loader;1&type=zip
Reference documentation is generated from Mozilla's source.
