Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1860)

Side by Side Diff: LayoutTests/fast/frames/sandboxed-iframe-history-denied.html

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/frames/sandboxed-iframe-history-denied-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function loaded() { 9 function loaded() {
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.notifyDone(); 11 testRunner.notifyDone();
12 } 12 }
13 </script> 13 </script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <p>This test verifies that a sandboxed IFrame cannot access the history object of the top-level frame. 16 <p>This test verifies that a sandboxed IFrame cannot access the history object of the top-level frame.
17 It passes if a console error is present, noting that the inner frame cannot ac cess the outer.</p> 17 It passes if an uncaught exception is present, noting that the inner frame can not access the outer.</p>
18 <iframe sandbox="allow-scripts" src="data:text/html,<script>top.history</script> " onload="loaded()"> 18 <iframe sandbox="allow-scripts" src="data:text/html,<script>top.history</script> " onload="loaded()">
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/frames/sandboxed-iframe-history-denied-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698