w3c / w3c/ServiceWorker

windowClients state change events - loaded/unloaded

Open
#1,269 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
3.6k
Forks
324
Avg merge
14d 22h
Merged PRs (30d)
1

Description

From the service worker, I'd like to be notified when a new controlled windowClient is added. Similarly for windowClient removal.

At the moment, in order to know whether windowClients being controlled has changed, you need either to poll the API or work around it via postMessage from the windowClient itself.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Start by reviewing the service worker windowClients API and the existing controlled-window behavior; the work is complete when the service worker can receive notifications for windowClient additions and removals without polling or relying on postMessage.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.