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

  • Revision slug: Mozilla/Add-ons/SDK/Low-Level_APIs/chrome
  • Revision title: chrome
  • Revision id: 925519
  • Created:
  • Creator: maybe
  • Is current revision? No
  • Comment Add warning about chrome namespacing issue with upcoming web extensions API

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.

This API is in conflict with the upcoming Web Extensions Namespacing.

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>

<div class="warning">
<p>This API is in conflict with the upcoming <a href="https://wiki.mozilla.org/WebExtensions#Namespacing">Web Extensions Namespacing</a>.</p>
</div>
Revert to this revision