we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

ExtendableEvent and FetchEvent promise handling #208

open opened by pierrelf.com

Implement the event primitives service workers need for lifecycle and fetch interception.

Scope:

  • Add ExtendableEvent with waitUntil() promise tracking and rejection handling.
  • Add FetchEvent with request, clientId/resultingClientId placeholders, respondWith(), preloadResponse placeholder, and handled promise semantics.
  • Enforce single respondWith() call, call timing rules, and timeout/error propagation appropriate for the existing event loop.
  • Integrate these events with ServiceWorkerGlobalScope dispatch.

Acceptance criteria:

  • Unit tests cover waitUntil fulfillment, rejection, multiple promises, timeout/error paths, and deterministic completion.
  • Tests cover respondWith fulfillment, rejection, duplicate calls, and late-call errors.
  • Lifecycle activation waits for accepted waitUntil() promises before state changes.
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:meotu43t6usg4qdwzenk4s2t/sh.tangled.repo.issue/3mm26urhfjz2l