Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Warning: This object is only intended for code running with chrome privileges. Exposing the object to regular web code was a mistake. If you use this object on your web page, your site might break at any time! In current versions of Firefox only a few interfaces required for compatibility are still accessible. Don't use Components!
The Components object is the object through which XPConnect functionality is reflected into JavaScript. The Components object is actually a native instance of the nsIXPCComponents interface which is reflected into JavaScript as a top level object using XPConnect.
Some properties of Components require advanced privileges and may not work in web pages.
The Components object has the following members:
classesclassesByIDConstructorExceptionIDinterfacesinterfacesByIDisSuccessCodelastResultmanagerresultsreturnCodestackutilsutils.atline atline property in the JavaScript environment.utils.createObjectIn utils.evalInSandboxutils.forceGC utils.getGlobalForObject utils.getWeakReference utils.import utils.lookupMethodutils.methodjit Obsolete since Gecko 24.0methodjit property in the JavaScript environment.utils.methodjit_always Obsolete since Gecko 24.0methodjit_always property in the JavaScript environment.utils.relimit relimit property in the JavaScript environment.utils.reportErrorutils.schedulePreciseGC utils.setGCZeal() utils.strict strict property in the JavaScript environment.utils.werror werror property in the JavaScript environment.utils.SandboxevalInSandbox.utils.xml xml property in the JavaScript environment.