Skip to content

Clients.claim() does not deal with a client already controlled by another registration #682

@nikhilm

Description

@nikhilm

Consider a page located at /a/b/c/d.html

  1. Register SW for /a
  2. Load d.html -> d is controlled by /a
  3. Register another SW for /a/b. Now d is still controlled by /a but the 'matching registration for scope' will be '/a/b'
  4. Register another SW for '/a/b/c'. This SW calls claim() in onactivate.
    At this point, we should first run Handle Service Worker Client Unload steps with the client, then change the client's active worker. The former is not being done right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions