summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/cookie2.html
blob: aa13434aa10f9236fa4cfc503baa2697d39cface (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<script>
function setCookie() {
  document.cookie = 'foo=baz';

  // If there is a cookie prompt showing, then reading from document.cookie
  // should block until the dialog is closed.
  if (document.cookie.indexOf('foo') == -1) {
    document.title = 'cookie blocked';
  } else {
    document.title = 'cookie allowed';
  }
}
</script>
</head>
<body onload="setCookie();">
</body>
</html>