summaryrefslogtreecommitdiffstats
path: root/dom/xhr/tests/worker_terminateSyncXHR_frame.html
blob: 04bd53ff1ddcc2bfd24b5c8e62f2863efd693449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
  <head>
    <title>Test for SharedWorker</title>
  </head>
  <body>
    <script type="text/javascript">
      function doStuff() {
        var worker = new Worker("terminateSyncXHR_worker.js");

        worker.onmessage = function(event) {
          parent.postMessage(event.data, "*");
        };

        worker.onerror = function(event) {
          parent.postMessage("ERROR!", "*");
        }
      }
    </script>
  </body>
</html>