Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 925503 of chrome

  • Revision slug: Mozilla/Add-ons/SDK/Low-Level_APIs/chrome
  • Revision title: chrome
  • Revision id: 925503
  • Created:
  • Creator: maybe
  • Is current revision? No
  • Comment

Revision Content

The chrome module is the only way to access chrome functionality using the Add-on SDK.

chome is a built-in pseudo module of the toolkit loader. It is used to when chrome authority is needed by an Add-on and causes an extra security review.

require("chrome");

is the only way to access chrome functionality using the Add-on SDK.

 

Revision Source

<p><span class="seoSummary">The chrome module is the only way to access chrome functionality using the Add-on SDK.</span></p>

<p>chome is a built-in pseudo module of the toolkit <a href="/en-US/Add-ons/SDK/Low-Level_APIs/_loader#chrome">loader</a>. It is used to when <a href="/en-US/Add-ons/SDK/Tutorials/Chrome_Authority">chrome authority</a> is needed by an Add-on and causes an extra security review.</p>

<pre class="brush: js">
require("chrome");
</pre>

<p>is the only way to access chrome functionality using the Add-on SDK.</p>

<p>&nbsp;</p>
Revert to this revision