blob: b902fb24bcc022601316620c8b76e1a8b3908d66 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/cookie-utilities.js"></script>
<body>
<script>
async function runTest()
{
await resetCookies();
await setCookie("strict", "6", {"SameSite": "Strict", "Max-Age": 100, "path": "/"});
await setCookie("implicit-strict", "6", {"SameSite": null, "Max-Age": 100, "path": "/"});
await setCookie("strict-because-invalid-SameSite-value", "6", {"SameSite": "invalid", "Max-Age": 100, "path": "/"});
await setCookie("lax", "6", {"SameSite": "Lax", "Max-Age": 100, "path": "/"});
window.location.href = "http://localhost:8000/resources/echo-iframe-src.php?src=http%3A//127.0.0.1%3A8000/cookies/same-site/resources/click-hyperlink.php%3Fhref%3Dfetch-after-navigating-iframe-in-cross-origin-page.php";
}
runTest();
</script>
</body>
</html>