4 https://bugzilla.mozilla.org/show_bug.cgi?id=505915
7 <title>Test for Bug
505915</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=505915">Mozilla Bug
505915</a>
14 <div id=
"content" style=
"display: none">
18 <script type=
"application/javascript">
20 /** Test for Bug
505915 **/
21 var url =
"file_bug605167.html";
22 var targetUrl =
"http://example.com";
29 frames[
0].location = url;
32 frames[
0].location = targetUrl;
36 f().cross_origin_property;
37 ok(false,
"should have thrown an exception");
39 ok(/Permission denied/.test(e) || /attempt to run compile-and-go script/.test(e),
40 "threw the correct exception");
48 SimpleTest.waitForExplicitFinish();
53 <iframe id=
"ifr" onload=
"go();"></iframe>