Window.controllers

  • Revision slug: DOM/window.controllers
  • Revision title: window.controllers
  • Revision id: 143628
  • Created:
  • Creator: SergeG
  • Is current revision? No
  • Comment 23 words added, 3 words removed

Revision Content

{{ DomRef() }}

Summary

Returns the XUL controllers of the chrome window.

Syntax

controllers = window.controllers
 

Specification

XUL-specific. Not part of specification.

By default a window's controller contains the code that supports the global window commands.

Chrome code can add controllers (to be used in conjunction with the goDoCommand and goUpdateCommand functions in globalOverlay.js). However the extra controllers must be removed when the window is unloaded as this is not done automatically

Each missing removal can cause

ASSERTION: XPConnect is being called on a scope without a 'Components' property!

{{ languages( { "ja": "ja/DOM/window.controllers", "pl": "pl/DOM/window.controllers" } ) }}

Revision Source

<p>{{ DomRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>Returns the XUL controllers of the chrome window.</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval"><em>controllers</em> = window.controllers
 </pre>
<ul><code>controllers</code> is an object of type <code><a href="/en/XULControllers" title="en/XULControllers">XULControllers</a></code> (<code><a href="/en/NsIControllers" title="en/NsIControllers">nsIControllers</a></code>).</ul> <h3 name="Specification">Specification</h3> <p>XUL-specific. Not part of specification.</p> <div class="note"> <p>By default a window's controller contains the code that supports the global window commands.</p> <p>Chrome code can add controllers (to be used in conjunction with the goDoCommand and goUpdateCommand functions in globalOverlay.js). However the extra controllers must be removed when the window is unloaded as this is not done automatically</p> <p>Each missing removal can cause</p> <pre class="bz_comment_text" id="comment_text_0">ASSERTION: XPConnect is being called on a scope without a 'Components' property!</pre> </div> <p>{{ languages( { "ja": "ja/DOM/window.controllers", "pl": "pl/DOM/window.controllers" } ) }}</p>
Revert to this revision