tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_display_mode_reflow.html (1399B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1256084
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Display Mode</title>
      9  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
     10  <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
     11  <link rel="stylesheet" type="text/css" href="chrome://global/skin"/>
     12  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
     13  <script type="application/javascript">
     14    SimpleTest.waitForExplicitFinish();
     15    async function startTest() {
     16      await new Promise(r => {
     17        SpecialPowers.pushPrefEnv(
     18          {
     19            set: [
     20              ["dom.security.featurePolicy.header.enabled", true],
     21              ["dom.security.featurePolicy.webidl.enabled", true],
     22            ],
     23          },
     24          r
     25        );
     26      });
     27      // Chrome test run tests in iframe, and fullscreen is disabled by default.
     28      // So run the test in a separate window.
     29      window.open("display_mode_reflow.html", "display_mode_reflow", "width=500,height=500,resizable");
     30    }
     31  </script>
     32 </head>
     33 <body onload="startTest();">
     34 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256084">Mozilla Bug 1256084</a>
     35 <p id="display"></p>
     36 <div id="content" style="display: none">
     37 </div>
     38 <pre id="test">
     39 </pre>
     40 </body>
     41 </html>