dom/workers/test/terminateSyncXHR_frame.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/workers/test/terminateSyncXHR_frame.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!--
     1.5 +  Any copyright is dedicated to the Public Domain.
     1.6 +  http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +<!DOCTYPE HTML>
     1.9 +<html>
    1.10 +  <head>
    1.11 +    <title>Test for SharedWorker</title>
    1.12 +  </head>
    1.13 +  <body>
    1.14 +    <script type="text/javascript">
    1.15 +      function doStuff() {
    1.16 +        var worker = new Worker("terminateSyncXHR_worker.js");
    1.17 +
    1.18 +        worker.onmessage = function(event) {
    1.19 +          parent.postMessage(event.data, "*");
    1.20 +        };
    1.21 +
    1.22 +        worker.onerror = function(event) {
    1.23 +          parent.postMessage("ERROR!", "*");
    1.24 +        }
    1.25 +      }
    1.26 +    </script>
    1.27 +  </body>
    1.28 +</html>

mercurial