5 <title>Test for Bug
341604</title>
6 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
9 <script type=
"text/javascript">
10 function ok(result
, desc
) {
11 window
.parent
.postMessage({ok
: result
, desc
}, "*");
15 ok(false, "documents sandboxed without allow-scripts should NOT be able to run inline scripts");
18 <script src='file_iframe_sandbox_fail.js'
></script>
19 <body onLoad='window.parent.postmessage({ok: false, desc:
"documents sandboxed without allow-scripts should NOT be able to run script from event handlers"},
"*");doStuff();'
>
20 I am sandboxed with no permissions
21 <img src=
"about:blank" onerror='ok(false,
"documents sandboxed without allow-scripts should NOT be able to run script from event handlers");')
>