Merge "[CherryPick] [WEBGL] Rename WEBKIT_WEBGL_compressed_texture_s3tc to WEBGL_comp...
[framework/web/webkit-efl.git] / LayoutTests / plugins / plugin-document-load-prevented-userscript.html
1 <html>\r
2 <head>\r
3     <script>\r
4         if (window.testRunner) {\r
5             window.testRunner.dumpAsText();\r
6             window.testRunner.addUserScript("document.addEventListener('beforeload', function(event) { if (event.url.indexOf('swf') >= 0) event.preventDefault(); }, true);", true, true);\r
7         }\r
8     </script>\r
9 </head>\r
10 <body>\r
11     This tests https://bugs.webkit.org/show_bug.cgi?id=46773 by having the load of the plugin\r
12     inside the plugin document be cancelled. If there is no crash, the test passed.\r
13     <iframe src="resources/simple_blank.swf"></iframe>\r
14 </body>\r
15 </html>\r