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", "1");
25 <iframe sandbox=
"allow-same-origin allow-scripts"
26 src=
"data:text/html,<script>console.log('PASS: Executed script in data URL');window.parent.postMessage({'pass': true}, '*');</script>">
29 description("Verify that sandboxed frames with sandbox='allow-scripts' can execute script from data: URLs.");