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

Unified Diff: LayoutTests/http/tests/security/XFrameOptions/x-frame-options-ancestors-same-origin-deny.html

Issue 20822002: 'X-Frame-Options: SAMEORIGIN' should check all ancestor frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests. 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/XFrameOptions/x-frame-options-ancestors-same-origin-deny.html
diff --git a/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-ancestors-same-origin-deny.html b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-ancestors-same-origin-deny.html
new file mode 100644
index 0000000000000000000000000000000000000000..53910f0331a04bbfd8cb64287096baf39e5bc6db
--- /dev/null
+++ b/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-ancestors-same-origin-deny.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.dumpResourceLoadCallbacks();
+ }
+ </script>
+</head>
+<body>
+ <p>This tests verifies that 'X-Frame-Options: SAMEORIGIN' blocks
+ sameorigin.com -&gt; crossorigin.com -&gt; sameorigin.com ancestor chains.</p>
+ <p>There should be content in the iframe below, but not in its child frame.</p>
+ <iframe style="width:500px; height:500px" src="http://localhost:8000/security/XFrameOptions/resources/x-frame-options-parent-same-origin-ancestor.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698