3 This test checks to make sure plugins aren't loaded when a page is prerendered,
4 and are also not loaded once the page is displayed. This is used to test certain
5 content settings that do not allow plugin loading.
7 This test relies on the Pepper plugin (but not the placeholder) implementing
8 the postMessage() function on the plugin object.
11 <title>Prerender Plugin Never Load
</title>
14 // Make sure plugin was not loaded while prerendering.
15 function DidPrerenderPass() {
16 // |plugin| should be the blocked plugin placeholder, rather than the
18 var plugin
= window
.document
['plugin'];
19 return plugin
.postMessage
== undefined;
22 // Make sure plugin still does not load once the page is displayed.
23 function DidDisplayPass() {
24 var plugin
= window
.document
['plugin'];
25 return plugin
.postMessage
== undefined;
31 <embed name=
"plugin" type=
"application/x-ppapi-tests"></embed>