Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_iframe_plugin_delay_load.html
blobdfa02544c50736f23d2519ccab55cd374aa77b51
1 <html>
2 <!--
3 This test checks to make sure that plugins in an iframe are only
4 loaded once a page is displayed.
5 -->
6 <head>
7 <title>Prerender Iframe Plugins</title>
8 </head>
9 <script>
10 // Make sure plugin was not loaded while prerendering.
11 function DidPrerenderPass() {
12 var plugin_iframe = document.getElementById('plugin_iframe');
13 return plugin_iframe.contentWindow.DidPrerenderPass();
16 // Make sure plugin loads once the page is displayed.
17 function DidDisplayPass() {
18 var plugin_iframe = document.getElementById('plugin_iframe');
19 return plugin_iframe.contentWindow.DidDisplayPass();
21 </script>
22 <body>
23 <iframe src="prerender_plugin_delay_load.html" id="plugin_iframe"></iframe>
24 </body>
25 </html>