[whatwg] The behaviour of Notification.requestPermission() in Workers

Anne van Kesteren annevk at annevk.nl
Thu Oct 24 06:15:48 PDT 2013


On Thu, Oct 24, 2013 at 12:46 PM, Tobie Langel <tobie.langel at gmail.com> wrote:
> On Thursday, October 24, 2013 at 11:05 AM, Anne van Kesteren wrote:
>> Given that Notificaiton.permission exists, I'm not sure what the
>> additional value of Notification.requestPermission() in a worker
>> context would be.
>
> Portability of code between worker and non worker?

The code that is portable will remain portable. The code that only
works in one context cannot be ported. Seems fine. In particular
Notification.requestPermission() will be part of a UI-flow that has no
business in a worker.


-- 
http://annevankesteren.nl/



More information about the whatwg mailing list