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.

Service worker registration store and scope matching #206

open opened by pierrelf.com

Implement the persistent registration model for Phase 21.

Scope:

  • Add origin-keyed service worker registration records with script URL, scope URL, lifecycle state, and install/waiting/active slots.
  • Implement navigator.serviceWorker.register(), getRegistration(), getRegistrations(), ready, and unregister semantics at the DOM/JS boundary.
  • Resolve script and scope URLs, enforce same-origin rules, and reject unsupported schemes.
  • Add byte-for-byte script update detection plumbing, even if worker execution remains stubbed until later issues.
  • Persist registrations using only std filesystem APIs in the existing browser storage area.

Acceptance criteria:

  • Unit tests cover scope normalization, longest-prefix scope matching, same-origin failures, unregister, and persistence reload.
  • JS-facing tests demonstrate register/getRegistration/getRegistrations/ready behavior with resolved promises or clear errors.
  • No external crate dependencies and unsafe remains limited to allowed crates.
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/3mm26ubuvj62e