<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196875] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196875">196875</a></dd>
<dt>Author</dt> <dd>dbates@webkit.org</dd>
<dt>Date</dt> <dd>2016-02-21 11:04:15 -0800 (Sun, 21 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>CSP: report-url directive should be ignored when contained in a policy defined via a meta element
https://bugs.webkit.org/show_bug.cgi?id=154307
&lt;rdar://problem/24684817&gt;

Reviewed by Brent Fulgham.

Source/WebCore:

The Content Security Policy report-uri directive should only be honored when defined via an HTTP header
as per section report-uri of the Content Security Policy 2.0 spec., &lt;https://www.w3.org/TR/2015/CR-CSP2-20150721/&gt;.

Currently we honor the report-uri directive when enforcing or monitoring a policy defined either via
an HTML meta element or an HTTP header. Instead we should only honor this directive when defined
via an HTTP header and log a message to the Web Inspector console to explain that the directive
was ignored as suggested in &lt;https://www.w3.org/TR/2015/CR-CSP2-20150721/#delivery-html-meta-element&gt;.

Test: http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html

* page/csp/ContentSecurityPolicyDirectiveList.cpp:
(WebCore::ContentSecurityPolicyDirectiveList::parse): Modified to ignore the directive report-uri when
the Content Security Policy came from an HTML meta element.

LayoutTests:

Add new test http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html and rename and modify
existing tests to make them PHP scripts that emit a Content Security Policy HTTP header.

In addition, remove file http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html that
is no longer meaningful now that we do not honor the report-uri directive defined in a policy via a meta
element. Moreover, we have not made use of this file since &lt;http://trac.webkit.org/changeset/176413&gt;.

* TestExpectations: Update entries for renames.
* http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt:
* http/tests/security/contentSecurityPolicy/report-and-enforce.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html.
* http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt:
* http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html.
* http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt:
* http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html.
* http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt:
* http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html.
* http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt:
* http/tests/security/contentSecurityPolicy/report-blocked-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html.
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt:
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt:
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html.
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt:
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html.
* http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html.
* http/tests/security/contentSecurityPolicy/report-only-expected.txt:
* http/tests/security/contentSecurityPolicy/report-only.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html.
* http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt:
* http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html.
* http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt:
* http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt:
* http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html.
* http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html.
* http/tests/security/contentSecurityPolicy/report-uri-expected.txt:
* http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt:
* http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html.
* http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt:
* http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html.
* http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html: Added.
* http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt:
* http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html: Removed.
* http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php: Added.
* http/tests/security/contentSecurityPolicy/report-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html.
* http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html: Removed. For completeness, we have
not made use of this file since &lt;http://trac.webkit.org/changeset/176413&gt;.
* http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php:
* http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html.
* platform/wk2/TestExpectations: Update entries for renames.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforceexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddatauriexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileuriexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduriexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookiesexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookiesexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascriptexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascriptexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativeexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyresourcesgeneratecspreportphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php</a></li>
<li><a href="#trunkLayoutTestsplatformwk2TestExpectations">trunk/LayoutTests/platform/wk2/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepagecspContentSecurityPolicyDirectiveListcpp">trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforcephp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddatauriphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileuriphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduriphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookiesphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookiesphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascriptphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascriptphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiinmetatagignoredexpectedtxt">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiinmetatagignoredhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativephp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyuserstylesheetfontcrasherphp">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforcehtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddataurihtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileurihtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedurihtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieshtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieshtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascripthtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascripthtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativehtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturihtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyresourcesgeneratecspreporthtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html</a></li>
<li><a href="#trunkLayoutTestshttptestssecuritycontentSecurityPolicyuserstylesheetfontcrasherhtml">trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/ChangeLog        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,5 +1,62 @@
</span><span class="cx"> 2016-02-21  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        CSP: report-url directive should be ignored when contained in a policy defined via a meta element
+        https://bugs.webkit.org/show_bug.cgi?id=154307
+        &lt;rdar://problem/24684817&gt;
+
+        Reviewed by Brent Fulgham.
+
+        Add new test http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html and rename and modify
+        existing tests to make them PHP scripts that emit a Content Security Policy HTTP header.
+
+        In addition, remove file http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html that
+        is no longer meaningful now that we do not honor the report-uri directive defined in a policy via a meta
+        element. Moreover, we have not made use of this file since &lt;http://trac.webkit.org/changeset/176413&gt;.
+
+        * TestExpectations: Update entries for renames.
+        * http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-and-enforce.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html.
+        * http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html.
+        * http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html.
+        * http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html.
+        * http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-blocked-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html.
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html.
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html.
+        * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html.
+        * http/tests/security/contentSecurityPolicy/report-only-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-only.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html.
+        * http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html.
+        * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html.
+        * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html.
+        * http/tests/security/contentSecurityPolicy/report-uri-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html.
+        * http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html.
+        * http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt: Added.
+        * http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html: Added.
+        * http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt:
+        * http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html: Removed.
+        * http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php: Added.
+        * http/tests/security/contentSecurityPolicy/report-uri.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html.
+        * http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html: Removed. For completeness, we have
+        not made use of this file since &lt;http://trac.webkit.org/changeset/176413&gt;.
+        * http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php:
+        * http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php: Renamed from LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html.
+        * platform/wk2/TestExpectations: Update entries for renames.
+
+2016-02-21  Daniel Bates  &lt;dabates@apple.com&gt;
+
</ins><span class="cx">         CSP: sandbox directive should be ignored when contained in a policy defined via a meta element
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=154299
</span><span class="cx">         &lt;rdar://problem/24680433&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/TestExpectations        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -808,9 +808,9 @@
</span><span class="cx"> webkit.org/b/154203 http/tests/security/contentSecurityPolicy/1.1/stylehash-default-src.html
</span><span class="cx"> webkit.org/b/111869 http/tests/security/contentSecurityPolicy/eval-blocked-and-sends-report.html
</span><span class="cx"> webkit.org/b/115700 http/tests/security/contentSecurityPolicy/inline-event-handler-blocked-after-injecting-meta.html [ Failure ]
</span><del>-webkit.org/b/115702 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html [ Failure ]
-webkit.org/b/115702 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html [ Failure ]
-webkit.org/b/115707 http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html [ Failure ]
</del><ins>+webkit.org/b/115702 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php [ Failure ]
+webkit.org/b/115702 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php [ Failure ]
+webkit.org/b/115707 http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php [ Failure ]
</ins><span class="cx"> webkit.org/b/153148 http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report.html
</span><span class="cx"> webkit.org/b/153150 http/tests/security/contentSecurityPolicy/frame-src-cross-origin-load.html
</span><span class="cx"> webkit.org/b/153150 http/tests/security/contentSecurityPolicy/1.1/child-src/frame-fires-load-event-when-blocked.html
</span><span class="lines">@@ -831,17 +831,17 @@
</span><span class="cx"> webkit.org/b/153161 http/tests/security/contentSecurityPolicy/register-bypassing-scheme-partial.html [ Failure ]
</span><span class="cx"> webkit.org/b/153162 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-multiple-violations-01.html [ Failure ]
</span><span class="cx"> webkit.org/b/153162 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-multiple-violations-02.html [ Failure ]
</span><del>-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-uri.html [ Failure ]
</del><ins>+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-uri.php [ Failure ]
</ins><span class="cx"> webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-only-from-header.php [ Failure ]
</span><del>-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-only.html [ Failure ]
</del><ins>+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-only.php [ Failure ]
</ins><span class="cx"> webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri-from-child-frame.html [ Failure ]
</span><del>-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-and-enforce.html [ Failure ]
-webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html [ Failure ]
</del><ins>+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-uri.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-and-enforce.php [ Failure ]
+webkit.org/b/153242 webkit.org/b/154288 http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php [ Failure ]
</ins><span class="cx"> http/tests/security/contentSecurityPolicy/script-src-blocked-error-event.html [ Pass Failure ]
</span><span class="cx"> 
</span><span class="cx"> # These state object tests purposefully stress a resource limit, and take multiple seconds to run.
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforceexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx"> ALERT: PASS
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-and-enforce.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-and-enforce.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-and-enforce.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-and-enforce.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforcehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'&quot;&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy-Report-Only&quot; content=&quot;script-src 'self'; report-uri resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-    This image should be blocked, but should not show up in the violation report.
-    &lt;img src=&quot;../resources/abe.png&quot;&gt;
-    &lt;script&gt;
-        // This script block will trigger a violation report but shouldn't be blocked.
-        alert('PASS');
-    &lt;/script&gt;
-    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforcephpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportandenforcehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy-Report-Only: script-src 'self'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'&quot;&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    This image should be blocked, but should not show up in the violation report.
+    &lt;img src=&quot;../resources/abe.png&quot;&gt;
+    &lt;script&gt;
+        // This script block will trigger a violation report but shouldn't be blocked.
+        alert('PASS');
+    &lt;/script&gt;
+    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddatauriexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-data-uri.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-data-uri.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-data-uri.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;data&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-data-uri.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;data&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddataurihtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-    &lt;img src=&quot;data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==&quot;&gt;
-    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddatauriphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeddataurihtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+    &lt;img src=&quot;data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==&quot;&gt;
+    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileuriexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-file-uri.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-file-uri.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-file-uri.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;file&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-file-uri.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;file&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileurihtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,17 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-    &lt;script&gt;
-        testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file', '', true);
-        var localImageLocation = testRunner.pathToLocalResource('file:///tmp/LayoutTests/http/tests/security/resources/compass.jpg');
-
-        var localImageElement = document.createElement('img');
-        localImageElement.src = localImageLocation;
-        document.body.appendChild(localImageElement);
-    &lt;/script&gt;
-    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileuriphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedfileurihtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+    &lt;script&gt;
+        testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file', '', true);
+        var localImageLocation = testRunner.pathToLocalResource('file:///tmp/LayoutTests/http/tests/security/resources/compass.jpg');
+
+        var localImageElement = document.createElement('img');
+        localImageElement.src = localImageLocation;
+        document.body.appendChild(localImageElement);
+    &lt;/script&gt;
+    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://localhost:8080&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://localhost:8080&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy-Report-Only&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-The origin of this image should show up in the violation report.
-&lt;img src=&quot;http://localhost:8080/security/resources/abe.png&quot;&gt;
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduricrossoriginhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy-Report-Only: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+The origin of this image should show up in the violation report.
+&lt;img src=&quot;http://localhost:8080/security/resources/abe.png&quot;&gt;
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduriexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-blocked-uri.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedurihtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy-Report-Only&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-The URI of this image should show up in the violation report.
-&lt;img src=&quot;../resources/abe.png#the-fragment-should-not-be-in-report&quot;&gt;
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockeduriphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportblockedurihtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy-Report-Only: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+The URI of this image should show up in the violation report.
+&lt;img src=&quot;../resources/abe.png#the-fragment-should-not-be-in-report&quot;&gt;
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookiesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,22 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    if (window.testRunner)
-        testRunner.setPrivateBrowsingEnabled(true);
-
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingenabledhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.setPrivateBrowsingEnabled(true);
+
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    // Normal browsing mode
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-
-    if (window.testRunner)
-        testRunner.setPrivateBrowsingEnabled(true);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieswhenprivatebrowsingtoggledhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    // Normal browsing mode
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+
+    if (window.testRunner)
+        testRunner.setPrivateBrowsingEnabled(true);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,19 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookiesphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportcrossoriginnocookieshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri http://localhost:8080/security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;http://localhost:8080/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> ALERT: PASS
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-only.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy-Report-Only&quot; content=&quot;script-src 'self'; report-uri resources/save-report.php&quot;&gt;
-&lt;script&gt;
-// This script block will trigger a violation report but shouldn't be blocked.
-alert('PASS');
-&lt;/script&gt;
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportonlyhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-only.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy-Report-Only: script-src 'self'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;script&gt;
+// This script block will trigger a violation report but shouldn't be blocked.
+alert('PASS');
+&lt;/script&gt;
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,23 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    // Normal browsing mode
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-
-    if (window.testRunner)
-        testRunner.setPrivateBrowsingEnabled(true);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginnocookieswhenprivatebrowsingtoggledhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    // Normal browsing mode
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+
+    if (window.testRunner)
+        testRunner.setPrivateBrowsingEnabled(true);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookiesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><span class="cx"> HTTP_COOKIE: hello=world
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><span class="cx"> HTTP_COOKIE: hello=world
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,22 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    if (window.testRunner)
-        testRunner.setPrivateBrowsingEnabled(true);
-
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieswhenprivatebrowsingenabledhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.setPrivateBrowsingEnabled(true);
+
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,19 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;script&gt;
-    var xhr = new XMLHttpRequest();
-    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
-    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
-    xhr.send(null);
-&lt;/script&gt;
-
-&lt;!-- This image will generate a CSP violation report. --&gt;
-&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
-
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookiesphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreportsameoriginwithcookieshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;script&gt;
+    var xhr = new XMLHttpRequest();
+    xhr.open(&quot;GET&quot;, &quot;/cookies/resources/setCookies.cgi&quot;, false);
+    xhr.setRequestHeader(&quot;SET-COOKIE&quot;, &quot;hello=world;path=/&quot;);
+    xhr.send(null);
+&lt;/script&gt;
+
+&lt;!-- This image will generate a CSP violation report. --&gt;
+&lt;img src=&quot;/security/resources/abe.png&quot;&gt;
+
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascriptexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-inline-javascript.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-inline-javascript.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-inline-javascript.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-inline-javascript.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascripthtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,15 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-    &lt;script&gt;
-        // This script block will trigger a violation report.
-        var i = document.createElement('img');
-        i.src = '/security/resources/abe.png';
-        document.body.appendChild(i);
-    &lt;/script&gt;
-    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascriptphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifrominlinejavascripthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+    &lt;script&gt;
+        // This script block will trigger a violation report.
+        var i = document.createElement('img');
+        i.src = '/security/resources/abe.png';
+        document.body.appendChild(i);
+    &lt;/script&gt;
+    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascriptexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-javascript.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-javascript.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-javascript.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-from-javascript.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;img-src 'none'&quot;,&quot;effective-directive&quot;:&quot;img-src&quot;,&quot;original-policy&quot;:&quot;img-src 'none'; report-uri resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;http://127.0.0.1:8000/security/resources/abe.png&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascripthtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;head&gt;
-    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;img-src 'none'; report-uri resources/save-report.php&quot;&gt;
-&lt;/head&gt;
-&lt;body&gt;
-    &lt;script src=&quot;resources/inject-image.js&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascriptphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturifromjavascripthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: img-src 'none'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+    &lt;script src=&quot;resources/inject-image.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiinmetatagignoredexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+CONSOLE MESSAGE: The Content Security Policy directive 'report-uri' is ignored when delivered via an HTML meta element.
+This tests that a console message is logged to explain that the Content Security Policy report-uri directive is ignored when contained in a policy defined via an HTML meta element.
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiinmetatagignoredhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;report-uri /security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
+&lt;script&gt;
+if (window.testRunner)
+    testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;p&gt;This tests that a console message is logged to explain that the Content Security Policy &lt;code&gt;report-uri&lt;/code&gt; directive is ignored when contained in a policy defined via an HTML meta element.&lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx"> 
</span><span class="cx"> CSP report received:
</span><span class="cx"> CONTENT_TYPE: application/csp-report
</span><del>-HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-scheme-relative.html
</del><ins>+HTTP_REFERER: http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-scheme-relative.php
</ins><span class="cx"> REQUEST_METHOD: POST
</span><span class="cx"> === POST DATA ===
</span><del>-{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-scheme-relative.html&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri //127.0.0.1:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</del><ins>+{&quot;csp-report&quot;:{&quot;document-uri&quot;:&quot;http://127.0.0.1:8000/security/contentSecurityPolicy/report-uri-scheme-relative.php&quot;,&quot;referrer&quot;:&quot;&quot;,&quot;violated-directive&quot;:&quot;script-src 'self'&quot;,&quot;effective-directive&quot;:&quot;script-src&quot;,&quot;original-policy&quot;:&quot;script-src 'self'; report-uri //127.0.0.1:8080/security/contentSecurityPolicy/resources/save-report.php&quot;,&quot;blocked-uri&quot;:&quot;&quot;,&quot;status-code&quot;:200}}
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;script-src 'self'; report-uri //127.0.0.1:8080/security/contentSecurityPolicy/resources/save-report.php&quot;&gt;
-&lt;script&gt;
-// This script block will trigger a violation report.
-alert('FAIL');
-&lt;/script&gt;
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturischemerelativephp"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: script-src 'self'; report-uri //127.0.0.1:8080/security/contentSecurityPolicy/resources/save-report.php&quot;);
+?&gt;
+&lt;script&gt;
+// This script block will trigger a violation report.
+alert('FAIL');
+&lt;/script&gt;
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturihtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;script-src 'self'; report-uri resources/save-report.php&quot;&gt;
-&lt;script&gt;
-// This script block will trigger a violation report.
-alert('FAIL');
-&lt;/script&gt;
-&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturiphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyreporturihtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: script-src 'self'; report-uri resources/save-report.php&quot;);
+?&gt;
+&lt;script&gt;
+// This script block will trigger a violation report.
+alert('FAIL');
+&lt;/script&gt;
+&lt;script src=&quot;resources/go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyresourcesgeneratecspreporthtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;script-src 'self'; report-uri save-report.php?test=generate-csp-report.html&quot;&gt;
-&lt;script&gt;
-// This script block will trigger a violation report.
-alert('FAIL');
-&lt;/script&gt;
-&lt;script src=&quot;go-to-echo-report.js&quot;&gt;&lt;/script&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyresourcesgeneratecspreportphp"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,4 +1,6 @@
</span><del>-&lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;script-src 'self'; report-uri save-report.php?test=&lt;?php echo $_GET['test']; ?&gt;&quot;&gt;
</del><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: script-src 'self'; report-uri save-report.php?test=&quot; . $_GET['test']);
+?&gt;
</ins><span class="cx"> &lt;script&gt;
</span><span class="cx"> // This script block will trigger a violation report.
</span><span class="cx"> alert('FAIL');
</span></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyuserstylesheetfontcrasherhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-&lt;html&gt;
-&lt;head&gt;
-&lt;meta content=&quot;font-src http://webkit.org; report-uri http://webkit.org/report;&quot; http-equiv=&quot;Content-Security-Policy&quot;&gt;
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-    testRunner.addUserStyleSheet(&quot;@font-face { font-family: ExampleFont; src: url(example_font.woff); }&quot;, true);
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-The iframe below triggers a violation report creating the initial empty document. It should not crash the web process.&lt;br&gt;
-&lt;iframe src=&quot;http://127.0.0.1:8000/resources/notify-done.html&quot;&gt;&lt;/iframe&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestshttptestssecuritycontentSecurityPolicyuserstylesheetfontcrasherphpfromrev196874trunkLayoutTestshttptestssecuritycontentSecurityPolicyuserstylesheetfontcrasherhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php (from rev 196874, trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.html) (0 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php                                (rev 0)
+++ trunk/LayoutTests/http/tests/security/contentSecurityPolicy/user-style-sheet-font-crasher.php        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?php
+    header(&quot;Content-Security-Policy: font-src http://webkit.org; report-uri http://webkit.org/report;&quot;);
+?&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+    testRunner.addUserStyleSheet(&quot;@font-face { font-family: ExampleFont; src: url(example_font.woff); }&quot;, true);
+}
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+The iframe below triggers a violation report creating the initial empty document. It should not crash the web process.&lt;br&gt;
+&lt;iframe src=&quot;http://127.0.0.1:8000/resources/notify-done.html&quot;&gt;&lt;/iframe&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/wk2/TestExpectations (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/wk2/TestExpectations        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/LayoutTests/platform/wk2/TestExpectations        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -714,10 +714,10 @@
</span><span class="cx"> # WebKitTestRunner testRunner.setPrivateBrowsingEnabled doesn't work with NetworkProcess.
</span><span class="cx"> # We explicitly Skip the following tests instead of marking them as Failure because some of these tests will naturally pass
</span><span class="cx"> # as a consequence of testRunner.setPrivateBrowsingEnabled() effectively being a no-op as of the time of writing (07/08/2015).
</span><del>-webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html [ Skip ]
-webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html [ Skip ]
-webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html [ Skip ]
-webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html [ Skip ]
</del><ins>+webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.php [ Skip ]
+webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php [ Skip ]
+webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.php [ Skip ]
+webkit.org/b/115274 http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.php [ Skip ]
</ins><span class="cx"> 
</span><span class="cx"> # Legacy IndexedDB will never properly support IDB in private browsing
</span><span class="cx"> imported/w3c/indexeddb/abort-in-initial-upgradeneeded-private.html [ Skip ]
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/Source/WebCore/ChangeLog        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -1,5 +1,27 @@
</span><span class="cx"> 2016-02-21  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        CSP: report-url directive should be ignored when contained in a policy defined via a meta element
+        https://bugs.webkit.org/show_bug.cgi?id=154307
+        &lt;rdar://problem/24684817&gt;
+
+        Reviewed by Brent Fulgham.
+
+        The Content Security Policy report-uri directive should only be honored when defined via an HTTP header
+        as per section report-uri of the Content Security Policy 2.0 spec., &lt;https://www.w3.org/TR/2015/CR-CSP2-20150721/&gt;.
+
+        Currently we honor the report-uri directive when enforcing or monitoring a policy defined either via
+        an HTML meta element or an HTTP header. Instead we should only honor this directive when defined
+        via an HTTP header and log a message to the Web Inspector console to explain that the directive
+        was ignored as suggested in &lt;https://www.w3.org/TR/2015/CR-CSP2-20150721/#delivery-html-meta-element&gt;.
+
+        Test: http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html
+
+        * page/csp/ContentSecurityPolicyDirectiveList.cpp:
+        (WebCore::ContentSecurityPolicyDirectiveList::parse): Modified to ignore the directive report-uri when
+        the Content Security Policy came from an HTML meta element.
+
+2016-02-21  Daniel Bates  &lt;dabates@apple.com&gt;
+
</ins><span class="cx">         CSP: sandbox directive should be ignored when contained in a policy defined via a meta element
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=154299
</span><span class="cx">         &lt;rdar://problem/24680433&gt;
</span></span></pre></div>
<a id="trunkSourceWebCorepagecspContentSecurityPolicyDirectiveListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp (196874 => 196875)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp        2016-02-21 18:52:51 UTC (rev 196874)
+++ trunk/Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp        2016-02-21 19:04:15 UTC (rev 196875)
</span><span class="lines">@@ -408,8 +408,7 @@
</span><span class="cx">             ASSERT(!name.isEmpty());
</span><span class="cx">             switch (policyFrom) {
</span><span class="cx">             case ContentSecurityPolicy::PolicyFrom::HTTPEquivMeta:
</span><del>-                // FIXME: We also need to ignore directive report-uri (https://bugs.webkit.org/show_bug.cgi?id=154307).
-                if (equalLettersIgnoringASCIICase(name, sandbox)) {
</del><ins>+                if (equalLettersIgnoringASCIICase(name, sandbox) || equalLettersIgnoringASCIICase(name, reportURI)) {
</ins><span class="cx">                     m_policy.reportInvalidDirectiveInHTTPEquivMeta(name);
</span><span class="cx">                     break;
</span><span class="cx">                 }
</span></span></pre>
</div>
</div>

</body>
</html>