blob: 5d5c720bd8694d3891f8d9e1c2b0c166bb0008d5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head><title>Page with access to document.cookie</title>
</head>
<body>
<div>Cookie Read: <span id="readCookie"></span></div>
<script type="text/javascript">
try
{
cookie = document.cookie;
document.cookie = "name=browser";
parent.window.postMessage("cookies are R/W", "*");
}catch(e)
{
parent.window.postMessage("cookies are not R/W", "*");
}
</script>
</body>
</html>