tor-browser

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

test_resource_timing.html (864B)


      1 <!--
      2  Any copyright is dedicated to the Public Domain.
      3  http://creativecommons.org/publicdomain/zero/1.0/
      4 -->
      5 
      6 <!DOCTYPE HTML>
      7 <html>
      8 <!--
      9 https://bugzilla.mozilla.org/show_bug.cgi?id=822480
     10 -->
     11 <head>
     12  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     13  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     14 </head>
     15 <body>
     16 
     17 <pre id="test">
     18 <script type="application/javascript">
     19 
     20 SimpleTest.waitForExplicitFinish();
     21 
     22 // Resource timing is prefed off by default, so we had to use this workaround
     23 SpecialPowers.pushPrefEnv({"set": [
     24 ["dom.enable_resource_timing", true],
     25 ["privacy.reduceTimerPrecision", false]]}, start);
     26 var subwindow = null;
     27 
     28 function start() {
     29  subwindow = window.open("resource_timing_main_test.html");
     30 }
     31 
     32 function finishTests() {
     33  subwindow.close();
     34  SimpleTest.finish();
     35 }
     36 </script>
     37 </pre>
     38 
     39 </body>
     40 </html>