Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / popup_blocker / check-referrer.html
blob70b5dbed6c29f28d133ef4a6784c013ec7a60084
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Check that the referrer header is correct</title>
5 </head>
6 <body>
7 <div id="console"></div>
8 <script>
9 var log = document.querySelector("#console");
10 var result;
11 if (document.referrer == "")
12 result = "FAIL: no referrer";
13 else if (document.referrer.indexOf(".html") !== -1)
14 result = "FAIL: referrer contains more than just the origin";
15 else
16 result = "PASS";
17 log.innerText = result;
18 document.title = result;
19 </script>
20 </body>
21 </html>