var { AppConstants } = SpecialPowers.ChromeUtils.importESModule( "resource://gre/modules/AppConstants.sys.mjs"
);
// Test window.controllers.
if (AppConstants.RELEASE_OR_BETA) {
is(typeof window.controllers, 'object', "shimmed controllers should be available to content in beta and release");
} else {
is(typeof window.controllers, 'undefined', "controllers should not be available to content in Nightly");
}
is(typeof SpecialPowers.wrap(window).controllers, 'object', "controllers should be available over Xray");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.