← Back to release summary

Reflect redirects to worker global scope's URL

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 74)
Intent stage
None

Summary

Worker global scope's URL (self.location, referrer, and base URL) should reflect redirects (i.e. should be the response URL, not the request URL), according to the spec. The worker global scope's URL has been the response URL in Firefox and the request URL in Chromium/Safari/Edge. Chromium is changing it to the response URL to match with the spec. Spec issue: https://github.com/whatwg/html/issues/3760

Standards & signals

Docs: https://docs.google.com/document/d/1lGBoqIfcQJk1z1ffv-v7GVFJdYw78tXUCRKcAba6nyg/edit?usp=sharing

View on chromestatus.com