Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / test_bug912322.html
blob84ec5f7bbcc698501194a5ffa06e0bd37112e6bb
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=912322
5 -->
6 <head>
7 <meta charset="utf-8">
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");
19 } else {
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");
24 </script>
25 </head>
26 <body>
27 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=912322">Mozilla Bug 912322</a>
28 <p id="display"></p>
29 <div id="content" style="display: none">
31 </div>
32 <pre id="test">
33 </pre>
34 </body>
35 </html>