summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/thirdparty/iframe2.html
blob: 8013899195112ed5d0af508e03801d5da9e32224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<script>
  window.parent.postMessage({
    source: "iframe",
    status: "networkresponse"
  }, "*");
  var w = new Worker('worker.js');
  w.onmessage = function(evt) {
    window.parent.postMessage({
      source: 'worker',
      status: evt.data,
    }, '*');
  };
</script>