w3c / w3c/ServiceWorker

respondWith is not implementable as written

Open
#1,168 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
3.6k
Forks
324
Avg merge
14d 22h
Merged PRs (30d)
1

Description

https://w3c.github.io/ServiceWorker/v1/#fetch-event-respondwith step 10.3.1.2.5.1 calls https://fetch.spec.whatwg.org/#concept-get-reader which calls https://streams.spec.whatwg.org/#acquire-readable-stream-reader

This last expects to be called in the usual ES way, with a current Realm and whatnot. But the above-cited step is running "in parallel", and hence has no current Realm.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read Service Worker fetch-event respondWith step 10.3.1.2.5.1 and follow its references into the Fetch and Streams specifications. Determine how the cited reader acquisition can operate while the step runs in parallel without a current Realm; the issue is done when the specification inconsistency has a documented resolution.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.