| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| description("Exceptions thrown in javascript URLs should not propagate to the main script.") |
| var subframe = document.createElement("iframe"); |
| document.body.appendChild(subframe); |
| var caughtException = false; |
| subframe.src = 'javascript:throw 42'; |
| shouldBeFalse('caughtException'); |
| var subframe2 = document.createElement("iframe"); |
| document.body.appendChild(subframe2); |
| // Compile-time exception. |
| subframe2.src = 'javascript:<html></html>'; |
| shouldBeFalse('caughtException'); |
| <script src="../../resources/js-test-post.js"></script> |