blob: dfa02544c50736f23d2519ccab55cd374aa77b51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<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>
|