Skip to content

Commit e0b8101

Browse files
committed
Fix check of request initiator being "fetch"
1 parent ce17e10 commit e0b8101

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4350,12 +4350,12 @@ this algorithm returns normally if compilation is allowed, and throws a
43504350
1. If |request|'s [=request/initiator=] is "`prefetch`" or "`prerender`",
43514351
return `default-src`.
43524352

4353-
2. If |request|'s <a for="request">initiator</a> is "`fetch`" or its
4354-
<a for="request">destination</a> is "", return `connect-src`.
4355-
4356-
3. Switch on |request|'s <a for="request">destination</a>, and execute
4353+
2. Switch on |request|'s <a for="request">destination</a>, and execute
43574354
the associated steps:
43584355

4356+
: the empty string
4357+
::
4358+
1. Return `connect-src`.
43594359
: "`manifest`"
43604360
::
43614361
1. Return `manifest-src`.
@@ -4409,7 +4409,7 @@ this algorithm returns normally if compilation is allowed, and throws a
44094409
::
44104410
1. Return null.
44114411

4412-
4. Return `connect-src`.
4412+
3. Return `connect-src`.
44134413

44144414
Note: The algorithm returns `connect-src` as a default fallback. This is
44154415
intended for new fetch destinations that are added and which don't explicitly

0 commit comments

Comments
 (0)