4 https://bugzilla.mozilla.org/show_bug.cgi?id=504877
5 test by moz_bug_r_a4@yahoo.com
8 <title>Test for Bug
504877</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=504877">Mozilla Bug
504877</a>
15 <div id=
"content" style=
"display: none">
19 <script type=
"application/javascript">
21 /** Test for Bug
504877 **/
22 SimpleTest.waitForExplicitFinish();
24 var targetUrl =
"http://example.com/";
33 if (/denied|insecure/.test(e))
38 is(r,
"PASS",
"should have thrown an exception");
46 frames[
0].location =
"about:blank";
49 l = frames[
0].location;
50 frames[
0].location = targetUrl;
60 <iframe onload=
"b()"></iframe>