add a use_alsa gyp setting
[chromium-blink-merge.git] / content / test / data / browser_plugin_naming_guest.html
blob5b2b8a3bc1ecb2c7cb06e7fcf63444a95606ff66
1 <html>
2 <body>
3 <script>
4 var embedder = null;
5 var lastName = '';
6 function SetWindowName(name) {
7 window.name = name;
8 lastName = name;
9 embedder.postMessage(name, '*');
12 function pollName() {
13 if (window.name != lastName) {
14 lastName = window.name;
15 // Signal the embedder with the new window name.
16 embedder.postMessage(lastName, '*');
17 setTimeout(pollName, 100);
21 window.addEventListener('message', function(e) {
22 console.log('test');
23 embedder = e.source;
24 SetWindowName('guest');
25 setTimeout(pollName, 100);
26 });
27 </script>
28 </body>
29 </html>