Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<meta charset="utf-8">
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script>
(async function() {
test_driver.set_test_context(window.opener);
// Step 7 (partitioned-popins/partitioned-popins.localStorage.tentative.sub.https.window.js)
const id = (new URLSearchParams(window.location.search)).get("id");
let message = "Found:";
if (window.localStorage.getItem("first-party") == id) {
message += "FirstParty-";
} else if (window.localStorage.getItem("third-party") == id) {
message += "ThirdParty-";
}
window.opener.postMessage({type: "popin-read", message: message}, "*");
window.close();
})();
</script>