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.

Route navigations and subresources through active service workers #209

open opened by pierrelf.com

Add the fetch interception pipeline for controlled clients.

Scope:

  • During document navigation and subresource loading, find the longest-matching active service worker registration for the request URL origin/scope.
  • Construct Request objects for intercepted document, CSS, script, image, and fetch() requests.
  • Dispatch FetchEvent to the active worker and use respondWith() Response values as the browser response.
  • Support network fallback when no worker controls the request or when the worker deliberately falls through.
  • Propagate redirects, cancellation, body stream errors, and network failures consistently.

Acceptance criteria:

  • Tests cover scope matching, controlled vs uncontrolled clients, synthetic HTML responses, subresource interception, and network fallback.
  • Existing loader behavior is unchanged when no service worker registration matches.
  • Add or extend e2e coverage for a page whose worker intercepts a navigation and a subresource.
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/3mm26v2pbgo2e