<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Disallow an empty host in a CSP host-source directive"
href="https://bugs.webkit.org/show_bug.cgi?id=153168">153168</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Disallow an empty host in a CSP host-source directive
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Local Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>BlinkMergeCandidate
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebCore Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dbates@webkit.org
</td>
</tr></table>
<p>
<div>
<pre>We should merge <<a href="https://src.chromium.org/viewvc/blink?view=rev&revision=180407">https://src.chromium.org/viewvc/blink?view=rev&revision=180407</a>>.
Disallow an empty host in a CSP host-source directive
Currently "https://" is accepted and treated like "https:". This behavior has never been part of any standard.
The syntax is specified in <a href="http://www.w3.org/TR/CSP11/#source-list-syntax">http://www.w3.org/TR/CSP11/#source-list-syntax</a>
host-source = [ scheme-part "://" ] host-part [ port-part ] [ path-part ]
host-part = "*" / [ "*." ] 1*host-char *( "." 1*host-char )
As you can see, the host-part is NOT optional.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>