← Back to release summary

Service Worker client URL ignore history.pushState changes

Category
Service Worker
Type
Chromium catches up
Status
Enabled by default (Chrome 135)
Intent stage
None

WPT details: This Web Platform test below validates aspects of the service worker Client API. Currently Chromium is failing this test because the Client.url is the document's URL when it should be the creation URL which ignores document URL changes via the history API. https://results.web-platform-tests.org/results/service-workers/service-worker/clients-matchall-client-types.https.html?label=experimental&label=master&aligned&q=service-workers%2Fservice-worker%2Fclients-matchall-client-types.https

Summary

Modify the service worker Client.url property to ignore document URL changes via history.pushState() and other similar history APIs. The Client.url property is intended to be the creation URL of the HTML document which ignores such changes.

Motivation

Match the spec described behavior implemented by Firefox and Safari to improve compatibility.

Standards & signals

Ecosystem

View on chromestatus.com