Unregister from GCM when the only GCM app is removed
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_plugin_nacl_disabled.html
blob2d8a2da591d0fe6b1f56ecbf107d7f36fe9b798e
1 <html>
2 <!--
3 Make sure prerendering doesn't load NaCl plugins when disabled.
4 -->
5 <head>
6 <title>Prerender NaCl Disabled</title>
7 </head>
8 <body>
10 <script>
11 var pluginLoadStarted = false;
13 function eventListener(event) {
14 var targetElement = event.target;
15 if (event.target.id != 'naclPlugin')
16 return;
17 pluginLoadStarted = true;
20 document.body.addEventListener('loadstart', eventListener, true);
22 function DidPrerenderPass() {
23 return !pluginLoadStarted;
26 function DidDisplayPass() {
27 return !pluginLoadStarted;
29 </script>
31 <embed id="naclPlugin" type="application/x-nacl" src="dummy.nmf"></embed>
32 </body>
33 </html>