summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/resources/serviceWorker-navigate-inner.html
blob: aaf330f4f6721ff1d560ae5f967bf6e9bd026dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<script src="utils.js"></script>
<body>
<script>

(async function() {
  await navigator.serviceWorker.register('serviceWorker-navigate.js');
  const registration = await navigator.serviceWorker.ready;
  const service_worker = registration.active;

  const [navigate_key] = parseKeylist();

  service_worker.postMessage({key:navigate_key, url:location.href});
})();
</script>
</body>