Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_loader_with_session_storage.html
blob0442b960fe5f24a3ce24fc4242ea4914bb756a75
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_DESTINATION_URL', 0);
16 storage.counter = oldCounter + 1;
19 function DidBackToOriginalPagePass() {
20 return window.sessionStorage.counter == '2';
23 window.onload = loader;
24 </script>
25 <a id="toClick" href="REPLACE_WITH_DESTINATION_URL">Link to click</a>
26 </body>
27 </html>