12016-02-24 Daniel Bates <dabates@apple.com>
2
3 CSP: Make SecurityPolicyViolationEvent more closely conform to CSP spec and enable it by default
4 https://bugs.webkit.org/show_bug.cgi?id=154522
5 <rdar://problem/24762078>
6
7 Reviewed by NOBODY (OOPS!).
8
9 Add new test http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https.html
10 to ensure that SecurityPolicyViolationEvent.statusCode is 0 when dispatched for a violation on an HTTPS-served
11 document per section Reporting of the Content Security Policy 2.0 spec, <https://www.w3.org/TR/2015/CR-CSP2-20150721/>.
12 Update existing test results and mark more tests as PASS in file LayoutTests/TestExpectations.
13
14 * TestExpectations: Mark tests http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation*.html as PASS
15 so that we run them.
16 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics-expected.txt: Update expected result to
17 reflect failing sub-test. We do not support the experimental JavaScript event listener onsecuritypolicyviolation when
18 building with ENABLE(CSP_NEXT) disabled.
19 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-expected.txt: Update line and column numbers.
20 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script-expected.txt: Ditto.
21 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script.html: Ditto.
22 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image.html: Ditto.
23 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt: Ditto.
24 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script-expected.txt: Ditto.
25 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script.html: Ditto.
26 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https-expected.txt: Added.
27 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-https.html: Added.
28 * http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image.html: Update line and column numbers.
29 * js/dom/global-constructors-attributes-expected.txt: Update expected results now that we expose SecurityPolicyViolationEvent.
30 * platform/efl/js/dom/global-constructors-attributes-expected.txt: Ditto.
31 * platform/mac-mavericks/js/dom/global-constructors-attributes-expected.txt: Ditto.
32 * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: Ditto.
33 * platform/mac/js/dom/global-constructors-attributes-expected.txt: Ditto.
34