4 https://bugzilla.mozilla.org/show_bug.cgi?id=912322
8 <title>Test for Bug
912322</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
13 var { AppConstants } = SpecialPowers.ChromeUtils.importESModule(
14 "resource://gre/modules/AppConstants.sys.mjs"
16 // Test window.controllers.
17 if (AppConstants.RELEASE_OR_BETA) {
18 is(typeof window.controllers, 'object',
"shimmed controllers should be available to content in beta and release");
20 is(typeof window.controllers, 'undefined',
"controllers should not be available to content in Nightly");
22 is(typeof SpecialPowers.wrap(window).controllers, 'object',
"controllers should be available over Xray");
27 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=912322">Mozilla Bug
912322</a>
29 <div id=
"content" style=
"display: none">