Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<head>
<meta charset="utf-8"/>
<script src="/common/get-host-info.sub.js"></script>
<title>Test partitioned cookies ancestor chain: cross site embed</title>
</head>
<body>
<script>
// Cross-site middle frame: it only embeds a same-site (to the top-level page)
// grandchild frame so that the grandchild has a cross-site ancestor. The
// grandchild reports its result straight to window.top.
const iframe = document.createElement("iframe");
const url = new URL(
"./ancestor-chain-same-site-embed.html",
get_host_info().ORIGIN + self.location.pathname);
iframe.src = url.href;
document.body.appendChild(iframe);
</script>
</body>