From e0b8101f2b2f63991ccfba3f5b923cf420933d84 Mon Sep 17 00:00:00 2001 From: Antonio Sartori Date: Thu, 23 May 2024 06:27:02 +0200 Subject: [PATCH] Fix check of request initiator being "fetch" --- index.bs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.bs b/index.bs index b84d46a98b..16e4180a88 100644 --- a/index.bs +++ b/index.bs @@ -4350,12 +4350,12 @@ this algorithm returns normally if compilation is allowed, and throws a 1. If |request|'s [=request/initiator=] is "`prefetch`" or "`prerender`", return `default-src`. - 2. If |request|'s initiator is "`fetch`" or its - destination is "", return `connect-src`. - - 3. Switch on |request|'s destination, and execute + 2. Switch on |request|'s destination, and execute the associated steps: + : the empty string + :: + 1. Return `connect-src`. : "`manifest`" :: 1. Return `manifest-src`. @@ -4409,7 +4409,7 @@ this algorithm returns normally if compilation is allowed, and throws a :: 1. Return null. - 4. Return `connect-src`. + 3. Return `connect-src`. Note: The algorithm returns `connect-src` as a default fallback. This is intended for new fetch destinations that are added and which don't explicitly