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

Side by Side Diff: content/test/data/browser_plugin_naming_embedder.html

Issue 11821028: Browser Plugin: Make sure name attribute is propagated to guest if it's set prior to initializing p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed breakage on certain compilers Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | no next file » | 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 <body> 2 <body>
3 <object id="plugin" 3 <object id="plugin"
4 type="application/browser-plugin" 4 type="application/browser-plugin"
5 name="start"
5 width="640" 6 width="640"
6 height="480"></object> 7 height="480"></object>
7 <script> 8 <script>
8 var loadstop = false; 9 var loadstop = false;
9 var requestCommChannel = false; 10 var requestCommChannel = false;
10 function SetSrc(src) { 11 function SetSrc(src) {
11 var plugin = document.getElementById('plugin'); 12 var plugin = document.getElementById('plugin');
12 plugin.src = src; 13 plugin.src = src;
13 } 14 }
14 // Open a two-way communication channel with the guest. 15 // Open a two-way communication channel with the guest.
(...skipping 13 matching lines...) Expand all
28 var plugin = document.getElementById('plugin'); 29 var plugin = document.getElementById('plugin');
29 plugin.addEventListener('-internal-loadstop', function(e) { 30 plugin.addEventListener('-internal-loadstop', function(e) {
30 loadstop = true; 31 loadstop = true;
31 if (requestCommChannel) { 32 if (requestCommChannel) {
32 plugin.contentWindow.frames.postMessage('test', '*'); 33 plugin.contentWindow.frames.postMessage('test', '*');
33 } 34 }
34 }); 35 });
35 </script> 36 </script>
36 </body> 37 </body>
37 </html> 38 </html>
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698