summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_spawn_shared_worker.js
blob: 00063bc5ceb119cc26a4fc6324cd4c35cd813290 (plain)
1
2
3
4
5
6
7
onconnect = function(e) {
  var port = e.ports[0];
  port.addEventListener("message", function(e) {
  	port.postMessage("shared worker is executing");
  });
  port.start();
}