-
Notifications
You must be signed in to change notification settings - Fork 312
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
ServiceWorkerMessageEvent isn't consistent with MessageEvent #989
Comments
#988 is also related |
This also impacts ExtendableMessageEvent: MessageEvent's ports attribute is no longer nullable in the HTML specification. It'd be great to align the similar interfaces in the Service Worker specification (or even merge the interfaces as @smaug---- suggests). |
Ping @jungkees (most active committer recently) |
@jungkees this is great, but there was also the suggestion to merge MessageEvent and ServiceWorkerMessageEvent. That's still pretty doable I think, no? |
Having looked at the previous discussion around this, we wanted the same for /cc @jakearchibald |
One less class seems good? And |
I'm not against refactoring. I've been concerned about the impact of the changes to the existing codes. If we do this, implementations should change, but the application codes won't be affected, right? |
They could be affected if they use the class in some way. Extend its prototype, typeof it, etc. Seems unlikely, but there's a risk. |
To be clear, that's only a problem for |
11 hits for "ServiceWorkerMessageEvent" results from httparchive:har.2016_09_15_chrome_requests_bodies and 6 from httparchive:har.2016_09_15_android_requests_bodies. They're things like http://docs.devdocs.io/dom/index.json?1469400308 and no real usage that I can see. But, the Blink change would have to happen soon, if the spec changes but Blink waits, we could end up in a very silly place. |
Indeed. Other browsers also won't be able to completely avoid being in this kind of silly place for the time being I think. |
@foolip are you okay with trying/doing it? Should be easy enough for others to follow if so. |
I see it's also in Gecko. If one of Blink and Gecko changes right away and the other commits to following before long, I think the risk looks incredibly low, so 👍 |
I'm happy with this changing. Highly unlikely to break anything, and hopefully we'll see it in beta etc if it does. |
So I guess step 1 would be to update MessageEvent in HTML to use |
Considering the shared mixin for |
I wasn't thinking about |
For mixins:
Given that, I think we should postpone deduplication there, especially as it doesn't directly impact implementations or developers, but I'll raise an IDL issue on mixins for dictionaries. For removing |
SGTM. |
See w3c/ServiceWorker#989 for discussion. I also took the liberty to update all our broken Service Worker specification links.
Sounds good. |
Thanks, done. |
See w3c/ServiceWorker#989 for discussion. I also took the liberty to update all our broken Service Worker specification links.
Thanks Remy. Red wine for me... or tequila of course :) Léonie.@LeonieWatson tink.uk Carpe diem On 21/10/2016 13:18, Anne van Kesteren wrote:
|
See w3c/ServiceWorker#989 for discussion.
@jungkees I think it would be better if the generated results are somewhat wrong or something is not working well to open a PR and get those issues resolved first. Doing it through comments on a commit is very hard to follow. |
Okay. Got it. |
That also makes the review process easier if we start doing more through PRs here. It's been working very well over in WHATWG-land. |
Understood. I'll try to do so. Thanks! |
See w3c/ServiceWorker#989 for discussion.
Because of whatwg/html#1882, the interfaces have now different behavior when handling .ports for example.
But I'd recommend just merge the interfaces.
The text was updated successfully, but these errors were encountered: