test_bug1063538.html (1124B)
1 <!-- 2 2 Any copyright is dedicated to the Public Domain. 3 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 4 --> 5 <!DOCTYPE HTML> 6 <html> 7 <!-- 8 https://bugzilla.mozilla.org/show_bug.cgi?id=1063538 9 --> 10 <head> 11 <meta charset="utf-8"> 12 <title>Test for Bug 1063538</title> 13 <script src="/tests/SimpleTest/SimpleTest.js"></script> 14 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 15 </head> 16 <body> 17 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1063538">Mozilla Bug 1063538</a> 18 <p id="display"></p> 19 <div id="content" style="display: none"> 20 21 </div> 22 <pre id="test"> 23 <script type="application/javascript"> 24 25 function runTest() { 26 var worker = new Worker("bug1063538_worker.js"); 27 28 worker.onmessage = function(e) { 29 if (e.data.type == 'finish') { 30 ok(e.data.progressFired, "Progress was fired."); 31 SimpleTest.finish(); 32 } 33 }; 34 35 worker.postMessage(true); 36 } 37 38 SimpleTest.waitForExplicitFinish(); 39 40 addLoadEvent(function() { 41 SpecialPowers.pushPermissions([{'type': 'systemXHR', 'allow': true, 'context': document}], runTest); 42 }); 43 44 </script> 45 </pre> 46 </body> 47 </html>