summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/shared-storage/resources/embedder-context-inner.https.html
blob: e4b59f7f7a028f55a9511654234200959e18a5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<script src="/shared-storage/resources/util.js"></script>
<script src="/fenced-frame/resources/utils.js"></script>
<body>
<script>

async function init() {
  const [ancestorKey] = parseKeylist();

  await addModuleOnce("/shared-storage/resources/embedder-context-module.js");
  await sharedStorage.run("report-context",
                          {
                            data: {'ancestorKey': ancestorKey}
                          });

  await writeValueToServer(ancestorKey, "embedder_context_inner_loaded");
}

init();
</script>
</body>
</html>