Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_localstorage_read.html
blob24799469a84cdd2a3b03d0f55cf25bde6dbd972a
1 <html>
2 <!--
3 This test checks to make sure that a page that reads from localstorage fails to
4 prerender.
5 -->
6 <head>
7 <title>Prerender local storage read</title>
9 <script>
10 window.localStorage.getItem("prerender_test");
11 var pageWasPrerendered = false;
13 // Make sure plugin was not loaded while prerendering.
14 function DidPrerenderPass() {
15 pageWasPrerendered = true;
16 return true;
19 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
20 // most likely reloaded instead of using the prerendered page.
21 function DidDisplayPass() {
22 return pageWasPrerendered;
24 </script>
26 </head>
27 <body></body>
28 </html>