Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ServiceWorker.prototype.registration #798

Open
annevk opened this issue Dec 9, 2015 · 2 comments
Open

Add ServiceWorker.prototype.registration #798

annevk opened this issue Dec 9, 2015 · 2 comments

Comments

@annevk
Copy link
Member

annevk commented Dec 9, 2015

Would be kind of convenient to have a pointer to a ServiceWorker's corresponding ServiceWorkerRegistration instance. Or is it too problematic that you can then get to it synchronously from the controller?

@wanderview
Copy link
Member

Even if its async, it would be nice to conclusively get the registration managing the ServiceWorker object. Currently things like getRegistration() could conceivably give you a different registration.

@jungkees jungkees added this to the Version 2 milestone Dec 11, 2015
@jakearchibald
Copy link
Contributor

Not against adding this unless the synchronous nature (or circular reference) is problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants