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 925915 of chrome

  • Revision slug: Mozilla/Add-ons/SDK/Low-Level_APIs/chrome
  • Revision title: chrome
  • Revision id: 925915
  • Created:
  • Creator: maybe
  • Is current revision? No
  • Comment As per [Comment 3](https://bugzil.la/1208888#c3)

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 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.

This is not to be confused with the "chrome" global variable that WebExtensions can use to access APIs.

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 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>

<div class="warning">
<p>This is not to be confused with the "chrome" global variable that <a href="https://wiki.mozilla.org/WebExtensions#Namespacing">WebExtensions</a> can use to access APIs.</p>
</div>
Revert to this revision