summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/permissions-policy-serial-worker.html
blob: 56bcfaede954faaa93f6395775a8ecab2b7e33d4 (plain)
1
2
3
4
5
6
7
8
9
10
<script>
'use strict';

let worker = new Worker('permissions-policy-serial-worker.js');

worker.onmessage = event => {
  window.parent.postMessage(event.data, '*');
};
worker.postMessage({ type: 'ready' });
</script>