Fix build break
[chromium-blink-merge.git] / content / test / data / browser_plugin_embedder_guest_unresponsive.html
blob734878cb0019bb416522bd6d9544d901ccaa27eb
1 <script type="text/javascript">
2 var unresponsiveCalled = false;
3 var responsiveCalled = false;
4 function SetSrc(src) {
5 plugin = document.getElementById('plugin');
6 plugin.src = src;
8 function GuestUnresponsive(evt) {
9 unresponsiveCalled = true;
12 function GuestResponsive(evt) {
13 responsiveCalled = true;
14 document.title = "done";
16 </script>
18 <!-- The plugin size is same as the browser's size -->
19 <object id="plugin"
20 tabindex="0"
21 type="application/browser-plugin"
22 style="height: 100%; width: 100%; border: 0px"></object>
24 <script>
25 var plugin = document.getElementById('plugin');
26 plugin.addEventListener('-internal-unresponsive', GuestUnresponsive);
27 plugin.addEventListener('-internal-responsive', GuestResponsive);
28 </script>