frame-ancestors-sandbox-same-origin-self.html (580B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="support/frame-ancestors-test.sub.js"></script> 7 </head> 8 <body> 9 <script> 10 test = async_test("A 'frame-ancestors' CSP directive with a 'self' value " + 11 "should compare the child URL (self) against each parent's origin's URL" + 12 " rather then URL. When the ancestors are sandboxed, they never match."); 13 14 testNestedSandboxedIFrame("'self'", SAME_ORIGIN, SAME_ORIGIN, EXPECT_BLOCK); 15 </script> 16 </body> 17 </html>