WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIXULRuntime

IID:2848AB92-D912-11D9-89F7-001124787B2E
Inherits From:nsISupports
Status:UNSTABLE - This interface is not frozen and will probably change in future releases. If you need this functionality to be stable/frozen, please contact Benjamin Smedberg.

Provides information about the XUL runtime.

This interface is implemented by the following components:


Properties

readonly PRBool inSafeMode

Whether the application was launched in safe mode.

PRBool logConsoleErrors

Whether to write console errors to a log file. If a component encounters startup errors that might prevent the app from showing proper UI, it should set this flag to "true".

readonly AUTF8String OS

A string tag identifying the current operating system. This is taken from the OS_TARGET configure variable. It will always be available.

readonly AUTF8String XPCOMABI

A string tag identifying the binary ABI of the current processor and compiler vtable. This is taken from the TARGET_XPCOM_ABI configure variable. It may not be available on all platforms, especially unusual processor or compiler combinations.

The result takes the form -, for example: x86-msvc ppc-gcc3

This value should almost always be used in combination with "OS".

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com