test_resource_timing_cross_origin.html (1167B)
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 var subwindow = null; 24 SpecialPowers.pushPrefEnv({"set": [ 25 ["dom.enable_resource_timing", true], 26 ["privacy.reduceTimerPrecision", false]]}, start); 27 28 function start() { 29 subwindow = window.open("resource_timing_cross_origin.html"); 30 } 31 32 function finishTests() { 33 subwindow.close(); 34 SpecialPowers.pushPrefEnv({"clear":[["dom.enable_resource_timing"]]}, SimpleTest.finish); 35 } 36 37 </script> 38 </pre> 39 40 <a target="_blank" 41 href="https://bugzilla.mozilla.org/show_bug.cgi?id=936814" 42 title="Cross origin resource timing"> 43 Bug #936814 - Implement the "timing allow check algorithm" for cross-origin Resource Timing 44 </a> 45 46 </body> 47 </html>