toolkit.singletonWindowType

  • Revision slug: toolkit.singletonWindowType
  • Revision title: toolkit.singletonWindowType
  • Revision id: 187384
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment

Revision Content

Preference

Type: String
Specified by: default prefs of XULRunner applications
Default: none
Example: <tt>pref("toolkit.singletonWindowType", "xulmine");</tt>

By default, the <tt>toolkit.defaultChromeURI</tt> preference will cause XULRunner to open a new main application window each time an application is invoked. The <tt>toolkit.singletonWindowType</tt> preference causes XULRunner to search for a window with the attribute <tt>windowtype</tt> as specified in this preference (e.g. <tt><window windowtype="xulmine"></tt> in our example). If such a window is found, it will be re-used, otherwise a new window will be opened. More information on this can be found in {{ Bug("317811") }}.

See also: XULRunner:Specifying Startup Chrome Window, <tt>toolkit.defaultChromeURI</tt>

Revision Source

<p><b>Preference</b>
</p><p>Type: String<br>
Specified by: default prefs of <a href="en/XULRunner">XULRunner</a> applications<br>
Default: <i>none</i><br>
Example: <tt>pref("toolkit.singletonWindowType", "xulmine");</tt>
</p><p>By default, the <tt><a href="en/Toolkit.defaultChromeURI">toolkit.defaultChromeURI</a></tt> preference will cause XULRunner to open a new main application window each time an application is invoked. The <tt>toolkit.singletonWindowType</tt> preference causes XULRunner to search for a window with the attribute <tt>windowtype</tt> as specified in this preference (e.g. <tt>&lt;window windowtype="xulmine"&gt;</tt> in our example). If such a window is found, it will be re-used, otherwise a new window will be opened. More information on this can be found in {{ Bug("317811") }}. </p><p>See also: <a href="en/XULRunner/Specifying_Startup_Chrome_Window">XULRunner:Specifying Startup Chrome Window</a>, <tt><a href="en/Toolkit.defaultChromeURI">toolkit.defaultChromeURI</a></tt>
</p>
Revert to this revision