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.

Enforce service worker security boundaries #214

open opened by pierrelf.com

Harden Service Worker scope, origin, and persistence boundaries.

Scope:

  • Enforce same-origin script and scope restrictions, path scope limits, secure-context requirements, and scheme restrictions.
  • Keep file: URL service workers disabled except where explicit test hooks allow them.
  • Origin-key registration stores, Cache API stores, and clients so cross-origin access is impossible.
  • Add private browsing/session isolation hooks where the browser storage model supports them.
  • Add Clear-Site-Data integration points for registrations and caches.

Acceptance criteria:

  • Tests cover cross-origin script rejection, illegal scope rejection, unsupported schemes, origin-isolated cache access, private store separation, and clear-site-data deletion.
  • Error names/messages are useful enough for e2e assertions.
  • No security checks are bypassed for normal network URLs.
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/3mm26wdx6qj2x