⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 196878 in webkit


Ignore:
Timestamp:
Feb 21, 2016, 1:37:42 PM (11 years ago)
Author:
dbates@webkit.org
Message:

Attempt to fix the Content Extension test failures following <​https://trac.webkit.org/changeset/196875>
(​https://bugs.webkit.org/show_bug.cgi?id=154307)

Convert Content Extension tests that use the Content Security Policy directive report-uri from HTML files
to PHP scripts and modified them to define the content security policy for the page via the Content-Security-Policy
HTTP header instead of via a meta element so that the report-uri directive is honored. Following
<​https://trac.webkit.org/changeset/196875> the directive report-uri is only honored when contained in a
policy that is delivered via an HTTP header. That is, it is no longer honored when delivered in a meta element.

  • http/tests/contentextensions/block-cookies-in-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/block-cookies-in-csp-report.html.
  • http/tests/contentextensions/block-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/block-csp-report.html.
  • http/tests/contentextensions/hide-on-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/hide-on-csp-report.html.
Location:
trunk/LayoutTests
Files:
1 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r196877 r196878  
     12016-02-21  Daniel Bates  <dabates@apple.com>
     2
     3        Attempt to fix the Content Extension test failures following <https://trac.webkit.org/changeset/196875>
     4        (https://bugs.webkit.org/show_bug.cgi?id=154307)
     5
     6        Convert Content Extension tests that use the Content Security Policy directive report-uri from HTML files
     7        to PHP scripts and modified them to define the content security policy for the page via the Content-Security-Policy
     8        HTTP header instead of via a meta element so that the report-uri directive is honored. Following
     9        <https://trac.webkit.org/changeset/196875> the directive report-uri is only honored when contained in a
     10        policy that is delivered via an HTTP header. That is, it is no longer honored when delivered in a meta element.
     11
     12        * http/tests/contentextensions/block-cookies-in-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/block-cookies-in-csp-report.html.
     13        * http/tests/contentextensions/block-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/block-csp-report.html.
     14        * http/tests/contentextensions/hide-on-csp-report.php: Renamed from LayoutTests/http/tests/contentextensions/hide-on-csp-report.html.
     15
    1162016-02-21  Daniel Bates  <dabates@apple.com>
    217
  • trunk/LayoutTests/http/tests/contentextensions/block-cookies-in-csp-report.php

    r196877 r196878  
     1<?php
     2    header("Content-Security-Policy: img-src 'self'; report-uri /contentextensions/resources/save-ping.php?test=contentextensions-block-cookies-in-csp-report");
     3?>
    14<head>
    2 <meta http-equiv="Content-Security-Policy" content="img-src 'self'; report-uri /contentextensions/resources/save-ping.php?test=contentextensions-block-cookies-in-csp-report">
    35<script>
    46if (window.testRunner) {
  • trunk/LayoutTests/http/tests/contentextensions/block-csp-report.php

    r196877 r196878  
     1<?php
     2    header("Content-Security-Policy: img-src 'self'; report-uri http://localhost:8000/contentextensions/resources/save-ping.php?test=contentextensions-block-csp-report");
     3?>
    14<head>
    2 <meta http-equiv="Content-Security-Policy" content="img-src 'self'; report-uri http://localhost:8000/contentextensions/resources/save-ping.php?test=contentextensions-block-csp-report">
    35<script>
    46if (window.testRunner) {
  • trunk/LayoutTests/http/tests/contentextensions/hide-on-csp-report.php

    r196877 r196878  
     1<?php
     2    header("Content-Security-Policy: img-src 'self'; report-uri http://localhost:8000/contentextensions/resources/save-ping.php?test=contentextensions-hide-on-csp-report");
     3?>
    14<head>
    2 <meta http-equiv="Content-Security-Policy" content="img-src 'self'; report-uri http://localhost:8000/contentextensions/resources/save-ping.php?test=contentextensions-hide-on-csp-report">
    35<script>
    46if (window.testRunner) {
Note: See TracChangeset for help on using the changeset viewer.