Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / sandboxed-iframe-history-denied.html
blob5f12cf40d087587dedcf62941a462226d3113c6b
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function loaded() {
10 if (window.testRunner)
11 testRunner.notifyDone();
13 </script>
14 </head>
15 <body>
16 <p>This test verifies that a sandboxed IFrame cannot access the history object of the top-level frame.
17 It passes if an uncaught exception is present, noting that the inner frame cannot access the outer.</p>
18 <iframe sandbox="allow-scripts" src="data:text/html,<script>top.history</script>" onload="loaded()">
19 </body>
20 </html>