[w3c/ServiceWorker] Update WindowClient visibility state enum (PR #1860)

Closes #1616.

The Page Visibility references were previously redirected to the HTML Standard, but `WindowClient.visibilityState` still used the retired `VisibilityState` enum and its old Page Visibility section anchor.

This updates the IDL and reference to HTML's `DocumentVisibilityState` enum. This also matches the current Web Platform Tests service worker IDL.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.w3.org/monica-ch/ServiceWorker/pull/1860.html" title="Last updated on Nov 13, 2026, 5:55 AM UTC (ff9f6d4)">Preview</a> | <a href="https://pr-preview.w3.org/w3c/ServiceWorker/1860/57dfd24...monica-ch:ff9f6d4.html" title="Last updated on Nov 13, 2026, 5:55 AM UTC (ff9f6d4)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1860

-- Commit Summary --

  * Update WindowClient visibility state enum

-- File Changes --

    M index.bs (6)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1860.patch
https://github.com/w3c/ServiceWorker/pull/1860.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1860
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1860@github.com>

Received on Friday, 13 November 2026 05:56:31 UTC