4 <script src=
"../../resources/js-test.js"></script>
6 window
.jsTestIsAsync
= true;
8 var allowedExecuted
= 0;
9 var disallowedExecuted
= 0;
10 window
.addEventListener('message', function () {
17 shouldBe("disallowedExecuted", "0");
18 shouldBe("allowedExecuted", "0");
25 <iframe sandbox=
"allow-same-origin"
27 src=
"data:text/html,<script>alert('FAIL: Executed script without allow-scripts in data URL');window.parent.postMessage({'fail': true}, '*');</script>">
30 description("Verify that sandboxed frames without sandbox='allow-scripts' cannot execute script from data: URLs.");