Skip to content

Commit 0e8ffa1

Browse files
authored
Accept URLs with local schemes. (#17)
Local schemes do not create connections, so they should match any connection allowlist. Closes #16.
1 parent 669e4c2 commit 0e8ffa1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,15 @@ To <dfn abstract-op local-lt="matches">match a URL to a Connection Allowlist</df
327327
(|url|) and a [=connection allowlist=] (|connection allowlist|), execute the following steps,
328328
which return [=success=] or [=failure=].
329329

330-
1. [=list/iterate|For each=] |pattern| in |connection allowlist|'s
330+
1. If |url| [=is local=], return [=success=].
331+
332+
2. [=list/iterate|For each=] |pattern| in |connection allowlist|'s
331333
[=Connection Allowlist/allowlist=]:
332334

333335
1. If [=URL pattern/match|URL pattern matching=] given |pattern| and |url| does not return
334336
`null`, return [=success=].
335337

336-
2. Return [=failure=].
338+
3. Return [=failure=].
337339

338340
</div>
339341

0 commit comments

Comments
 (0)