Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / test / data / workers / shutdown_shared_worker.html
blob7fd20156f343341b44ea4349ffece808815fa9bd
1 <html>
2 <body>
3 <div id=result></div>
4 <script>
5 function log(message)
7 document.getElementById("result").innerHTML += message + "<br>";
10 var url = document.location.toString();
11 var id = parseInt(url.substr(url.search("id=") + 3));
12 log("Shutting down worker #" + id);
13 var worker = new SharedWorker("worker_common.js?id=" + id);
14 worker.port.postMessage("close");
15 </script>
17 </body>
18 </html>