| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head></head> | 2 <head></head> |
| 3 <body> | 3 <body> |
| 4 | 4 |
| 5 <textarea id='id_message'> | 5 <textarea id='id_message'> |
| 6 </textarea> | 6 </textarea> |
| 7 | 7 |
| 8 <object id="plugin" | 8 <object id="plugin" |
| 9 tabindex="0" | 9 tabindex="0" |
| 10 type="application/browser-plugin" | 10 type="application/browser-plugin" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 plugin.offsetTop + plugin.offsetHeight / 2]; | 25 plugin.offsetTop + plugin.offsetHeight / 2]; |
| 26 } | 26 } |
| 27 | 27 |
| 28 function SetSrc(src) { | 28 function SetSrc(src) { |
| 29 plugin = document.getElementById('plugin'); | 29 plugin = document.getElementById('plugin'); |
| 30 plugin.src = src; | 30 plugin.src = src; |
| 31 } | 31 } |
| 32 | 32 |
| 33 var plugin = document.getElementById('plugin'); | 33 var plugin = document.getElementById('plugin'); |
| 34 plugin.addEventListener('-internal-instanceid-allocated', function(e) { | 34 plugin.addEventListener('-internal-instanceid-allocated', function(e) { |
| 35 plugin['-internal-attach']({}); | 35 var detail = e.detail ? JSON.parse(e.detail) : {}; |
| 36 plugin['-internal-attach'](detail.windowId, {}); |
| 36 }); | 37 }); |
| 37 </script> | 38 </script> |
| 38 | 39 |
| 39 </body> | 40 </body> |
| 40 </html> | 41 </html> |
| OLD | NEW |