News for hackers. Stuff that matters.
Re:Apple Announces Full WebRTC Support in Safari 11 by EGreg on Wednesday June 07, 2017 @04:02PM (#14509441)
Does this mean Apple may actually implement Service Workers and Web Push in the next Safari?? :)
Re:Apple Announces Full WebRTC Support in Safari 11 by threeseed on Wednesday June 07, 2017 @06:14PM (#14510271)
I hope not as Service Workers is an awful technology.

It is completely hostile to users. If I close a web page I expect everything related to that web page to stop. Immediately. I don't expect there to be lingering background threads consuming battery life, network data and disk storage. And in Chrome you can only discover service workers by enabling a Debug mode and memorising a specific URL. Exactly how does a non-developer figure out what is going on ?

If Apple had any sense they would ban service workers and instead propose use case specific, tightly focused and managed APIs that focus on security and battery life first.

Also just a hint at a future where Botnets are running in your browser:

https://sakurity.com/blog/2016/12/10/serviceworker_botnet.ht...

Re:Apple Announces Full WebRTC Support in Safari 11 by EGreg on Wednesday June 07, 2017 @06:31PM (#14510374)
Service workers were designed to only work during events which you opted into. Either because you loaded the site which is now making requests, or because you OPTED IN to receive notifications.

Think about it this way... why do you have to download an entire app just to use a site? Don't like the notifications? Turn the off.

Re:Apple Announces Full WebRTC Support in Safari 11 by threeseed on Wednesday June 07, 2017 @06:49PM (#14510469)
Yes because ordinary users never, ever opt in to things they shouldn't. And because of that one opt-in mistake suddenly they have invisible service workers mining Bitcoins which they could never learn about since the discovery mechanism for service workers is currently non-existent.

Again, the concept of background tasks isn't necessarily a bad thing. But it needs to be locked down to specific use cases not a free for all allowing arbitrary JS to be executed.

Re:Apple Announces Full WebRTC Support in Safari 11 by MichaelGG on Wednesday June 07, 2017 @07:25PM (#14510673)
So limit the amount of CPU/bw/etc. they can use, just like mobile platforms do for background apps?
Re:Apple Announces Full WebRTC Support in Safari 11 by ghughes on Wednesday June 07, 2017 @07:39PM (#14510754)
Installing an app is a higher bar than tapping the "get out of my way" button on a modal dialog that some website just shoved in your face.
Re:Apple Announces Full WebRTC Support in Safari 11 by MBCook on Wednesday June 07, 2017 @10:24PM (#14511416)
Oh good. It can only burn 10% of my battery and bandwidth to make someone else rich. That's fair.
Re:Apple Announces Full WebRTC Support in Safari 11 by butz on Wednesday June 07, 2017 @04:06PM (#14509462)
Service Workers are "under consideration" (https://webkit.org/status/#specification-service-workers), but there's no mention of Web Push. We can only hope.
Re:Apple Announces Full WebRTC Support in Safari 11 by robbiet480 on Wednesday June 07, 2017 @05:07PM (#14509883)
Would assume no since they have APNS built into Safari/macOS [1] with a registration workflow that is nowhere close to the one that the Push API spec uses. I think Apple would keep it that way since they are sensitive about notifications not being used to spam/advertise.

[1]: https://developer.apple.com/notifications/safari-push-notifi...

Re:Apple Announces Full WebRTC Support in Safari 11 by JBReefer on Wednesday June 07, 2017 @06:19PM (#14510304)
I wish Web Push would go away. The last thing I/most people/my inlaws who can't use a computer need is more notifications
Re:Apple Announces Full WebRTC Support in Safari 11 by shacharz on Wednesday June 07, 2017 @04:09PM (#14509487)
By Web Push you mean http2.0's push feature? If so then yes (http://caniuse.com/#search=http%2F2).

AFAIK Service workers are still under consideration, and nothing was announced.

Re:Apple Announces Full WebRTC Support in Safari 11 by sanxiyn on Wednesday June 07, 2017 @04:26PM (#14509602)
By Web Push EGreg probably means https://www.w3.org/TR/push-api/ which requires Service Workers as a dependency.