summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/serviceworkers/fetch/context/parentsharedworker.js
blob: eac8d5e717415fb9a82809f7ee5831e721eb48d2 (plain)
1
2
3
4
5
6
7
8
onconnect = function(e) {
  e.ports[0].start();
  var worker = new Worker("myworker?shared");
  worker.onmessage = function(e2) {
    e.ports[0].postMessage(e2.data);
    self.close();
  };
};