Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / sandboxed-iframe-scripting-01.html
blob7c0f67b8cd1c51138647d37e2d3d67504bb4a4a8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 var allowedExecuted = 0;
7 var disallowedExecuted = 0;
8 window.onload = function() {
9 shouldBe("disallowedExecuted", "0");
10 shouldBe("allowedExecuted", "1");
12 isSuccessfullyParsed();
14 </script>
15 </head>
16 <body>
17 <iframe sandbox="allow-same-origin allow-scripts"
18 src="javascript: ++window.top.allowedExecuted;">
19 </iframe>
20 <script>
21 description("Verify that sandboxed frames with sandbox='allow-scripts' can execute script.");
22 </script>
23 </body>
24 </html>