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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/prerender/prerender_redirect.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/prerender/prerender_with_iframe.html
diff --git a/chrome/test/data/prerender/prerender_with_iframe.html b/chrome/test/data/prerender/prerender_with_iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..e265118c0f0019517062c954f5ecbb7947981e86
--- /dev/null
+++ b/chrome/test/data/prerender/prerender_with_iframe.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+ <title>Prerender with iframe</title>
+ <script>
+ var pageWasPrerendered = false;
+
+ function DidPrerenderPass() {
+ pageWasPrerendered = true;
+ return true;
+ }
+
+ // Make sure DidPrerenderPass() was called first. Otherwise, the page was
+ // most likely reloaded instead of using the prerendered page.
+ function DidDisplayPass() {
+ return pageWasPrerendered;
+ }
+ </script>
+</head>
+<body>
+ <iframe name="iframe"
+ src="REPLACE_WITH_URL"
+ width="0"
+ height="0"
+ frameborder="0">
+ </iframe>
+</body>
+</html>
« 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