Skip to content

Commit d04904e

Browse files
Set request's initiator and destination to empty string in cache.addAll()
As pointed out in #1718, "fetch" is not a valid value for a request's initiator, and "subresource" is not a valid destination in the Fetch specification. Following the discussion in the issue, cache.addAll() should function the same as if a script ran fetch() directly. Therefore, both initiator and destination should be set to the empty string, which is an initial value. i.e. removed the initialization. Fixes #1718
1 parent c9b4790 commit d04904e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

index.bs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,6 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
20992099
1. [=list/For each=] |fetchController| of |fetchControllers|, [=fetch controller/abort=] |fetchController|.
21002100
1. Return [=a promise rejected with=] a `TypeError`.
21012101
1. If |r|'s [=request/client=]'s [=environment settings object/global object=] is a {{ServiceWorkerGlobalScope}} object, set |request|'s [=service-workers mode=] to "`none`".
2102-
1. Set |r|'s [=request/initiator=] to "`fetch`" and [=request/destination=] to "`subresource`".
21032102
1. Add |r| to |requestList|.
21042103
1. Let |responsePromise| be [=a new promise=].
21052104
1. Run the following substeps [=in parallel=]:

0 commit comments

Comments
 (0)