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

should SW MessageEvents inherit ExtendableEvent? #690

Closed
wanderview opened this issue May 1, 2015 · 1 comment
Closed

should SW MessageEvents inherit ExtendableEvent? #690

wanderview opened this issue May 1, 2015 · 1 comment

Comments

@wanderview
Copy link
Member

The spec has been changed so that most events fired on ServiceWorker inherit from ExtendableEvent and therefore have a .waitUntil() method. The one exception is MessageEvent. Should we have some kind of ExtendedMessageEvent that inherits from ExtendableEvent and MessageEvent? Right now one cannot do this:

addEventListener('message', function(event) {
  event.waitUntil(cache.add(event.data.request));
});
@jungkees
Copy link
Collaborator

jungkees commented May 4, 2015

Closing this issue in favor of #669. Please feel free to reopen it if you've intended something else.

@jungkees jungkees closed this as completed May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants