chromium/third_party/blink/web_tests/external/wpt/permissions-policy/resources/permissions-policy-serial-worker.html

<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>