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

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

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test checks to make sure that plugins in an iframe are only 3 This test checks to make sure that plugins in an iframe are only
4 loaded once a page is displayed. 4 loaded once a page is displayed.
5 --> 5 -->
6 <head> 6 <head>
7 <title>Prerender Iframe Plugins</title> 7 <title>Prerender Iframe Plugins</title>
8 </head> 8 </head>
9 <script> 9 <script>
10 // Make sure plugin was not loaded while prerendering. 10 // Make sure plugin was not loaded while prerendering.
11 function DidPrerenderPass() { 11 function DidPrerenderPass() {
12 var plugin_iframe = document.getElementById('plugin_iframe'); 12 var plugin_iframe = document.getElementById('plugin_iframe');
13 return plugin_iframe.contentWindow.DidPrerenderPass(); 13 return plugin_iframe.contentWindow.DidPrerenderPass();
14 } 14 }
15 15
16 // Make sure plugin loads once the page is displayed. 16 // Make sure plugin loads once the page is displayed.
17 function DidDisplayPass() { 17 function DidDisplayPass() {
18 var plugin_iframe = document.getElementById('plugin_iframe'); 18 var plugin_iframe = document.getElementById('plugin_iframe');
19 return plugin_iframe.contentWindow.DidDisplayPass(); 19 return plugin_iframe.contentWindow.DidDisplayPass();
20 } 20 }
21 </script> 21 </script>
22 <body> 22 <body>
23 <iframe src="plugin_delay_load.html" id="plugin_iframe"></iframe> 23 <iframe src="prerender_plugin_delay_load.html" id="plugin_iframe"></iframe>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/prerender/plugin_never_load.html ('k') | chrome/test/data/prerender/prerender_plugin_delay_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698