Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: chrome/test/data/prerender/prerender_with_iframe.html

Issue 6824054: PrerenderContents uses RESOURCE_RECEIVED_REDIRECT notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/prerender/prerender_redirect.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Prerender with iframe</title>
4 <script>
5 var pageWasPrerendered = false;
6
7 function DidPrerenderPass() {
8 pageWasPrerendered = true;
9 return true;
10 }
11
12 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
13 // most likely reloaded instead of using the prerendered page.
14 function DidDisplayPass() {
15 return pageWasPrerendered;
16 }
17 </script>
18 </head>
19 <body>
20 <iframe name="iframe"
21 src="REPLACE_WITH_URL"
22 width="0"
23 height="0"
24 frameborder="0">
25 </iframe>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/prerender/prerender_redirect.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698