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 992945 of system/runtime

  • Revision slug: Mozilla/Add-ons/SDK/Low-Level_APIs/system_runtime
  • Revision title: system/runtime
  • Revision id: 992945
  • Created:
  • Creator: wbamberg
  • Is current revision? Yes
  • Comment

Revision Content

{{AddonSidebar}}

Unstable

Access to information about Firefox's runtime environment. All properties exposed are read-only.

For more information, see nsIXULRuntime.

Globals

Properties

inSafeMode

This value is true if Firefox was started in safe mode, otherwise false.

OS

A string identifying the current operating system. For example, . "WINNT", "Darwin", or "Linux". See OS_TARGET for a more complete list of possible values.

processType

The type of the caller's process, which will be one of these constants:

Constant Value Description
PROCESS_TYPE_DEFAULT 0 The default (chrome) process.
PROCESS_TYPE_PLUGIN 1 A plugin subprocess.
PROCESS_TYPE_CONTENT 2 A content subprocess.
PROCESS_TYPE_IPDLUNITTEST 3 An IPDL unit testing subprocess.

widgetToolkit

A string identifying the target widget toolkit in use.

XPCOMABI

A string identifying the ABI of the current processor and compiler vtable. This string takes the form <processor>-<compilerABI>, for example: "x86-msvc" or "ppc-gcc3".

Revision Source

{{AddonSidebar}}

<div class="note">
<p>Unstable</p>
</div>

<p><span class="seoSummary">Access to information about Firefox's runtime environment.</span> All properties exposed are read-only.</p>

<p>For more information, see <a href="https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIXULRuntime">nsIXULRuntime</a>.</p>

<h2 id="Globals">Globals</h2>

<h3 id="Properties">Properties</h3>

<h4 class="addon-sdk-api-name" id="inSafeMode"><code>inSafeMode</code></h4>

<p>This value is <code>true</code> if Firefox was started in safe mode, otherwise <code>false</code>.</p>

<h4 class="addon-sdk-api-name" id="OS"><code>OS</code></h4>

<p>A string identifying the current operating system. For example, . <code>"WINNT"</code>, <code>"Darwin"</code>, or <code>"Linux"</code>. See <a href="https://developer.mozilla.org/en/OS_TARGET">OS_TARGET</a> for a more complete list of possible values.</p>

<h4 class="addon-sdk-api-name" id="processType"><code>processType</code></h4>

<p>The type of the caller's process, which will be one of these constants:</p>

<table>
 <tbody>
  <tr>
   <th>Constant</th>
   <th>Value</th>
   <th>Description</th>
  </tr>
  <tr>
   <td>PROCESS_TYPE_DEFAULT</td>
   <td>0</td>
   <td>The default (chrome) process.</td>
  </tr>
  <tr>
   <td>PROCESS_TYPE_PLUGIN</td>
   <td>1</td>
   <td>A plugin subprocess.</td>
  </tr>
  <tr>
   <td>PROCESS_TYPE_CONTENT</td>
   <td>2</td>
   <td>A content subprocess.</td>
  </tr>
  <tr>
   <td>PROCESS_TYPE_IPDLUNITTEST</td>
   <td>3</td>
   <td>An IPDL unit testing subprocess.</td>
  </tr>
 </tbody>
</table>

<h4 class="addon-sdk-api-name" id="widgetToolkit"><code>widgetToolkit</code></h4>

<p>A string identifying the target widget toolkit in use.</p>

<h4 class="addon-sdk-api-name" id="XPCOMABI"><code>XPCOMABI</code></h4>

<p>A string identifying the <a href="https://developer.mozilla.org/en/XPCOM_ABI">ABI</a> of the current processor and compiler vtable. This string takes the form &lt;<code>processor</code>&gt;-&lt;<code>compilerABI</code>&gt;, for example: "<code>x86-msvc</code>" or "<code>ppc-gcc3</code>".</p>
Revert to this revision