summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/prerender/prerender_no_referrer.html
blob: e8a67d13aa9107aa5b50b1c3754b0a9fa80be1e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<!-- 
This test makes sure that referrer is not set when it shouldn't be,
such as when the referrer uses https and the destination page does
not.
-->
<head>
<title>Prerender No Referrer Test</title>
<script>
// Check there is no referrer.
function DidPrerenderPass() {
  return document.referrer == "";
}

// Check there is no referrer.
function DidDisplayPass() {
  return document.referrer == "";
}
</script>
</head>
<body></body>
</html>