1 description("Exceptions thrown in javascript URLs should not propagate to the main script.")
3 var subframe
= document
.createElement("iframe");
4 document
.body
.appendChild(subframe
);
6 var caughtException
= false;
10 subframe
.src
= 'javascript:throw 42';
12 caughtException
= true;
14 shouldBeFalse('caughtException');
16 // Compile-time exception.
18 subframe
.src
= 'javascript:<html></html>';
20 caughtException
= true;
22 shouldBeFalse('caughtException');