| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test file causes Chrome to attempt to create the NaCl plugin as a simple | 3 This test file causes Chrome to attempt to create the NaCl plugin as a simple |
| 4 embed and as a content type handler. The script allows the test to check if | 4 embed and as a content type handler. The script allows the test to check if |
| 5 the plugin was created or blocked in either case. | 5 the plugin was created or blocked in either case. |
| 6 --> | 6 --> |
| 7 <head> | 7 <head> |
| 8 <title>Native Client CWS Restriction</title> | 8 <title>Native Client CWS Restriction</title> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 function ContentHandlerPluginCreated() { | 34 function ContentHandlerPluginCreated() { |
| 35 return content_handler_event != undefined; | 35 return content_handler_event != undefined; |
| 36 } | 36 } |
| 37 | 37 |
| 38 </script> | 38 </script> |
| 39 | 39 |
| 40 </head> | 40 </head> |
| 41 <body> | 41 <body> |
| 42 <script> |
| 43 setListeners(document.body); |
| 44 </script> |
| 42 <embed id="embedded" | 45 <embed id="embedded" |
| 43 class="naclModule" | 46 class="naclModule" |
| 44 type="application/x-nacl" | 47 type="application/x-nacl" |
| 45 src="dummy.nmf"> | 48 src="dummy.nmf"> |
| 46 </embed> | 49 </embed> |
| 47 <embed id="content_handler" | 50 <embed id="content_handler" |
| 48 class="naclModule" | 51 class="naclModule" |
| 49 type="application/pdf" | 52 type="application/pdf" |
| 50 src="test.pdf"> | 53 src="test.pdf"> |
| 51 </embed> | 54 </embed> |
| 52 <script> | |
| 53 setListeners(document.body); | |
| 54 </script> | |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |