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