New issue
Advanced search Search tips

Issue 869222 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Client#url doesn't return creation URL

Reported by carl...@gmail.com, Jul 31

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Steps to reproduce the problem:
1 - Load index.html
2 - Open the console
3 - Push the button

What is the expected behavior?
The console should log the original page URL (creation URL - https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-creation-url)

What went wrong?
The console logs the updated (by history.replaceState) URL

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 67.0.3396.99  Channel: n/a
OS Version: 
Flash Version: 

The specification defines Client#url as "the context object’s associated service worker client's serialized creation URL."
https://w3c.github.io/ServiceWorker/#client-url
https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-creation-url

Chrome looks like is incorrectly returning the document URL value instead (which is the one history.replaceState changes).

On Firefox this works correctly, as per spec.
 
index.html
743 bytes View Download
worker.js
68 bytes View Download
Labels: Triaged-ET Target-70 M-70 FoundIn-70 Needs-Triage-M67 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 14.04 using chrome reported version #67.0.3396.99 and latest canary #70.0.3506.0.
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Cc: wanderview@chromium.org
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Is there a WPT test?

Should creation URL include redirects?

I have a pending spec change that's related:
https://github.com/whatwg/html/pull/3891

Sign in to add a comment