New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 795588 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

ServiceWorker with default scope hangs at subscribe call

Reported by gajduk.a...@gmail.com, Dec 17 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Steps to reproduce the problem:
1. Expose a service worker at a non-root location with the "Service-Worker-Allowed: /" header
2. Register the service worker from the client side
3. Attempt to subscribe via the pushManager

What is the expected behavior?
Get a valid subscription or some error

What went wrong?
The subscription promise just hangs no result or error.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 63.0.3239.84  Channel: n/a
OS Version: 10.0
Flash Version: 

Works on both Opera and Firefox
 
chom_bug.txt
527 bytes View Download
Labels: Needs-Triage-M63
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET Needs-Feedback
@Reporter: Could you please provide sample URL/test file to check this issue. This would help in further triaging of the issue.

Thanks!
Figured out I was missing the ready call.
I had 
navigator.serviceWorker.register("js/worker.js",{ scope: '/' }) 
	.then(function(registration) { ... });

But I should have used ready to elaying code execution until a service worker is active.

navigator.serviceWorker.register("js/worker.js",{ scope: '/' }).ready
	.then(function(registration) { ... });

I don't think this was a bug at all. Sorry to have wasted your time.
Project Member

Comment 4 by sheriffbot@chromium.org, Jan 2 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sc00335628@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
As per comment #3, closing the issue as WontFix.
Thanks...!!

Sign in to add a comment