summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/resources/presentation-receiver-inner.html
blob: 2e170dd91bb32b896f72d20e5e064347c6558491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<script src="utils.js"></script>
<title>Fenced frame content to report the result of navigator.presentation.receiver</title>

<body>
<script>
(async () => {
  const [presentation_receiver_key] = parseKeylist();
  const result = await navigator.presentation.receiver;
  if (result == null) {
    writeValueToServer(presentation_receiver_key, "denied");
  } else {
    writeValueToServer(presentation_receiver_key, "allowed");
  }
})();
</script>
</body>