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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-overrides-xfo.html

Issue 2798353002: Un-skipped wpt frame-ancestors tests (Closed)
Patch Set: Rebase-update Created 3 years, 8 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: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-overrides-xfo.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-overrides-xfo.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-overrides-xfo.html
deleted file mode 100644
index 2205b5a1900a8678d5e54fb4c904b3a38e839d0f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-overrides-xfo.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
- <script>
- async_test(function (t) {
- var i = document.createElement('iframe');
- i.src = "../../resources/frame-ancestors-and-x-frame-options.pl?policy='self'&xfo=DENY";
- i.onload = t.step_func_done(function () {
- assert_equals(i.contentDocument.origin, document.origin, "The same-origin page loaded.");
- });
- document.body.appendChild(i);
- }, "A 'frame-ancestors' CSP directive overrides an 'x-frame-options' header which would block the page.");
-
- async_test(function (t) {
- var i = document.createElement('iframe');
- i.src = "../../resources/frame-ancestors-and-x-frame-options.pl?policy=other-origin.com&xfo=SAMEORIGIN";
- i.onload = t.step_func_done(function () {
- assert_throws(
- "SecurityError",
- function () { i.contentDocument.origin },
- "The same-origin page was blocked and sandboxed.");
- });
- document.body.appendChild(i);
- }, "A 'frame-ancestors' CSP directive overrides an 'x-frame-options' header which would allow the page.");
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698