| <html> | |
| <!-- | |
| This test checks to make sure that plugins in an iframe are only | |
| loaded once a page is displayed. | |
| --> | |
| <head> | |
| <title>Prerender Iframe Plugins</title> | |
| </head> | |
| <script> | |
| // Make sure plugin was not loaded while prerendering. | |
| function DidPrerenderPass() { | |
| var plugin_iframe = document.getElementById('plugin_iframe'); | |
| return plugin_iframe.contentWindow.DidPrerenderPass(); | |
| } | |
| // Make sure plugin loads once the page is displayed. | |
| function DidDisplayPass() { | |
| var plugin_iframe = document.getElementById('plugin_iframe'); | |
| return plugin_iframe.contentWindow.DidDisplayPass(); | |
| } | |
| </script> | |
| <body> | |
| <iframe src="prerender_plugin_delay_load.html" id="plugin_iframe"></iframe> | |
| </body> | |
| </html> |