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

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

Issue 1062163004: Plugins: Move Prerender tests to PPAPI and some refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
(Empty)
1 <html>
2 <!--
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.
6
7 This test relies on the Pepper plugin (but not the placeholder) implementing
8 the postMessage() function on the plugin object.
9 -->
10 <head>
11 <title>Prerender Plugin Never Load</title>
12
13 <script>
14 // Make sure plugin was not loaded while prerendering.
15 function DidPrerenderPass() {
16 // |plugin| should be the blocked plugin placeholder, rather than the
17 // test plugin.
18 var plugin = window.document['plugin'];
19 return plugin.postMessage == undefined;
20 }
21
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;
26 }
27 </script>
28
29 </head>
30 <body>
31 <embed name="plugin" type="application/x-ppapi-tests"></embed>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698