4 type=
"application/browser-plugin"
10 var requestCommChannel
= false;
11 function SetSrc(src
) {
12 var plugin
= document
.getElementById('plugin');
15 // Open a two-way communication channel with the guest.
16 function OpenCommChannel() {
18 requestCommChannel
= true;
21 var plugin
= document
.getElementById('plugin');
22 plugin
.contentWindow
.frames
.postMessage('test', '*');
25 // Establish a two-way channel with the guest.
26 window
.addEventListener('message', function(e
) {
27 document
.title
= event
.data
;
29 var plugin
= document
.getElementById('plugin');
30 plugin
.addEventListener('-internal-loadstop', function(e
) {
32 if (requestCommChannel
) {
33 plugin
.contentWindow
.frames
.postMessage('test', '*');