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

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

Issue 829113004: Plugin Power Saver: Add back 'Click to play' option as 4th for plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test checks to make sure plugins aren't loaded when a page is prerendered, 3 This test checks to make sure plugins aren't loaded when prerendered page
4 but are loaded once the page is displayed and Plugin Power Saver is enabled. 4 is displayed and click-to-play is enabled.
5 --> 5 -->
6 <head> 6 <head>
7 <title>Prerender Plugin Power Saver</title> 7 <title>Prerender click-to-play</title>
8 8
9 <script> 9 <script>
10 // Make sure plugin was not loaded while prerendering. 10 // Make sure plugin was not loaded while prerendering.
11 function DidPrerenderPass() { 11 function DidPrerenderPass() {
12 // |plugin| should be the blocked plugin placeholder, rather than the 12 // |plugin| should be the blocked plugin placeholder, rather than the
13 // test plugin. 13 // test plugin.
14 var plugin = window.document['plugin']; 14 var plugin = window.document['plugin'];
15 return plugin.getURL == undefined; 15 return plugin.getURL == undefined;
16 } 16 }
17 17
18 // Make sure plugin loads once the page is displayed. 18 // Make sure plugin still hasn't loaded once the page is displayed.
19 function DidDisplayPass() { 19 function DidDisplayPass() {
20 // |plugin| should be the blocked plugin placeholder, rather than the
21 // test plugin.
20 var plugin = window.document['plugin']; 22 var plugin = window.document['plugin'];
21 return plugin.getURL != undefined; 23 return plugin.getURL == undefined;
22 } 24 }
23 </script> 25 </script>
24 26
25 </head> 27 </head>
26 <body> 28 <body>
27 <embed name="plugin" type="application/x-webkit-test-netscape"></embed> 29 <embed name="plugin" type="application/x-webkit-test-netscape"></embed>
28 </body> 30 </body>
29 </html> 31 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698