Re: [w3c/ServiceWorker] Disallow waitUntil() of manually constructed events (#1166)

@jakearchibald, I added a guard to prevent the script created event from extending the lifetime via waitUntil(). There's a test already: https://github.com/w3c/web-platform-tests/blob/master/service-workers/service-worker/resources/extendable-event-async-waituntil.js#L45. But I tried to update it to make the isTrusted test independant from other conditions. Please take a look.

Chrome implemented this by checking whether the event is implementing the internal observer structure instead of directly using isTrusted state. (@mattto, I can change this to using isTrusted if you think that makes sense.)

/cc @wanderview, @mattto 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1166#issuecomment-314414673

Received on Tuesday, 11 July 2017 11:27:38 UTC