4 https://bugzilla.mozilla.org/show_bug.cgi?id=1126911
8 <title>Test for Bug
1126911</title>
9 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://global/skin"/>
11 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css"/>
12 <script type=
"application/javascript">
14 /** Test for Bug
1126911 **/
15 var sb = new Cu.Sandbox(null);
18 function checkThrows(expr) {
20 Cu.evalInSandbox(expr, sb);
21 ok(false,
"Should have thrown: " + expr);
23 ok(/denied|insecure/.test(e),
"should get security exception: " + e);
26 checkThrows('win.top');
27 checkThrows('loc.replace');
32 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1126911">Mozilla Bug
1126911</a>
34 <div id=
"content" style=
"display: none">