Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_loader_with_session_storage.html
blob956b9ef8433e0bae2d7af812fcfa93780e011403
1 <html>
2 <head>
3 <title>Preloader</title>
4 <script src="prerender_events_common.js"></script>
5 </head>
6 <body>
7 <script>
8 function loader() {
9 var storage = window.sessionStorage;
10 var oldCounter = 0;
11 if (storage.counter) {
12 oldCounter = parseInt(storage.counter);
13 } else {
14 AddPrerender('REPLACE_WITH_PRERENDER_URL', 0);
16 storage.counter = oldCounter + 1;
19 function DidBackToOriginalPagePass() {
20 return window.sessionStorage.counter == '2';
23 window.onload = loader;
24 </script>
25 </body>
26 </html>