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

Side by Side Diff: chrome/test/data/load_npapi_plugin.html

Issue 645203002: Block NPAPI plugins by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move UMA outside ifdef 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Initial Title</title>
4 <script>
5 function PluginCreated() {
6 document.title = "Loaded";
7 }
8
9 function injectPlugin() {
10 var child = document.createElement('div');
11 child.innerHTML = '<embed type="application/vnd.npapi-test" src="foo"' +
12 ' name="invoke_js_function_on_create" id="plugin"' +
13 ' mode="np_embed"></embed>';
14 document.getElementById('content').appendChild(child);
15 // Plugins are loaded synchronously during layout, so the plugin has either
16 // been loaded or blocked at this point.
17 var plugin = document.getElementById('plugin');
18 // Check for the "loadedProperty" to determine if plugin is loaded.
19 if (plugin.loadedProperty == true) {
20 document.title = "Loaded";
21 } else {
22 document.title = "Not Loaded";
23 }
24 }
25 </script>
26 </head>
27 <body onload='injectPlugin();'>
28 <div id='content'></div>
29 </embed>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698