CSP: sandbox directive should be ignored when contained in a policy defined via a...
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Feb 2016 01:30:43 +0000 (01:30 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Feb 2016 01:30:43 +0000 (01:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154299
<rdar://problem/24680433>

Add iOS Simulator-specific expected result for test http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe.html.

* platform/ios-simulator/http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196885 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/ios-simulator/http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe-expected.txt [new file with mode: 0644]

index aeeeb6c..bc3aa06 100644 (file)
@@ -1,3 +1,13 @@
+2016-02-21  Daniel Bates  <dabates@apple.com>
+
+        CSP: sandbox directive should be ignored when contained in a policy defined via a meta element
+        https://bugs.webkit.org/show_bug.cgi?id=154299
+        <rdar://problem/24680433>
+
+        Add iOS Simulator-specific expected result for test http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe.html.
+
+        * platform/ios-simulator/http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe-expected.txt: Added.
+
 2016-02-21  Ryan Haddad  <ryanhaddad@apple.com>
 
         Adding ios-simulator baseline for js/number-toLocaleString.html
diff --git a/LayoutTests/platform/ios-simulator/http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe-expected.txt b/LayoutTests/platform/ios-simulator/http/tests/security/contentSecurityPolicy/sandbox-empty-in-http-header-inherited-by-subframe-expected.txt
new file mode 100644 (file)
index 0000000..9d6fae8
--- /dev/null
@@ -0,0 +1,13 @@
+CONSOLE MESSAGE: Blocked script execution in 'data:text/html,<script>alert('FAIL');</script>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x125
+  RenderBlock {HTML} at (0,0) size 800x125
+    RenderBody {BODY} at (8,8) size 784x109
+      RenderPartObject {IFRAME} at (0,0) size 104x104 [border: (2px inset #000000)]
+        layer at (0,0) size 100x100
+          RenderView at (0,0) size 100x100
+        layer at (0,0) size 100x100
+          RenderBlock {HTML} at (0,0) size 100x100
+            RenderBody {BODY} at (8,8) size 84x84
+      RenderText {#text} at (0,0) size 0x0