diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/controllers | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/window/controllers')
-rw-r--r-- | files/ja/web/api/window/controllers/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/ja/web/api/window/controllers/index.html b/files/ja/web/api/window/controllers/index.html new file mode 100644 index 0000000000..1dc286147a --- /dev/null +++ b/files/ja/web/api/window/controllers/index.html @@ -0,0 +1,42 @@ +--- +title: window.controllers +slug: Web/API/Window/controllers +tags: + - DOM + - Gecko + - 要更新 +translation_of: Web/API/Window/controllers +--- +<div>{{ApiRef}}</div> + +<h2 id="Summary" name="Summary">概要</h2> + +<p>Returns the XUL controllers of the chrome window.</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><var>controllers</var> = window.controllers +</pre> + +<ul> + <li><code>controllers</code> is an object of type <a href="/ja/docs/XULControllers"><code>XULControllers</code></a> (<a href="/ja/docs/XPCOM_Interface_Reference/nsIControllers"><code>nsIControllers</code></a>).</li> +</ul> + +<h2 id="Specification" name="Specification">仕様</h2> + +<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).</p> + +<p>However, the added controllers must be explicitly removed when the window is unloaded, as this is not done automatically.</p> + +<p>Each missing removal can cause</p> +<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=415775">bug 415775</a>: + +<pre class="bz_comment_text" id="comment_text_0">ASSERTION: XPConnect is being called on a scope without a 'Components' property!</pre> +</div> + +<p> </p> |