Compare Revisions

Components.utils.import

Revision 310379:

Revision 310379 by Hans.Hokke on

Revision 329049:

Revision 329049 by kmaglione on

Title:
Components.utils.import
Components.utils.import
Slug:
Components.utils.import
Components.utils.import
Tags:
"NeedsContent","XPConnect","XPCOM:Language Bindings"
"NeedsContent","XPConnect","XPCOM:Language Bindings"
Content:

Revision 310379
Revision 329049
n24    <div class="warning">n
25      <p name="Syntax">
26        Due to <a href="https://developer.mozilla.org/docs/Bypass
>ing_Security_Restrictions_and_Signing_Code" title="https://develo 
>per.mozilla.org/en-US/docs/Bypassing_Security_Restrictions_and_Si 
>gning_Code">deprecation of enablePrivilege</a> this functionality 
> can not be used in web pages. EnablePrivilege is disabled in Fir 
>efox 15 and will be removed in Firefox 17. 
27      </p>
28      <p name="Syntax">
29        Use in extensions is unrestricted.
30      </p>
31    </div>
n36Components.utils.import<em>url</em> [, <em>scope</em> ] );n28Components.utils.import<em>(url</em> [, <em>scope</em>]);
n38or (if you want to avoid getting pesky compiler erros about missin30// Or, if you use a tool such as jslint which reports compiler er
>ng . after operator)>rors for the above,
t40Components.utils["import"]( <em>url</em> [, <em>scope</em> ] );t32Components.utils["import"](<em>url </em>[, <em>scope</em>]);

Back to History