Skip to content
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ spec:reporting; urlPrefix: https://w3c.github.io/reporting/
spec: HEADER-STRUCTURE; urlPrefix: https://httpwg.org/http-extensions/draft-ietf-httpbis-header-structure.html#
type: dfn
text: sh-dictionary; url: dictionary
spec: CSP; urlPrefix: https://www.w3.org/TR/CSP3/#
type: dfn
text: scheme-source; url: grammardef-scheme-source
text: host-source; url: grammardef-host-source
text: Does url match expression in origin with redirect count?; url: match-url-to-source-expression
</pre>
<pre class="biblio">
{
Expand Down Expand Up @@ -351,10 +346,13 @@ spec: CSP; urlPrefix: https://www.w3.org/TR/CSP3/#

1. If <var>origin</var> is an [=opaque origin=], return false.

1. Let <var>url</var> be the result of calling the [=url parser=] on the
[=serialization of an origin|serialization=] of <var>origin</var>.

1. Otherwise, [=set/for each=] <a>permissions-source-expression</a> |item| in the <a>allowlist</a>'s <a>expressions</a>:

1. If the result of running <a>Does url match expression in origin with redirect count?</a>
on <var>origin</var>, |item|, <var>origin</var>, and 0 is true then return true.
1. If the result of running [=Does url match expression in origin with redirect count?=]
on <var>url</var>, |item|, <var>origin</var>, and 0 is true then return true.

1. Return false.
</div>
Expand Down