Re: [whatwg/storage] Expose persist() to workers (#29)

I was thinking about the second situation (page closed). The SW could check if the page has obtained persistent permission for the origin to use `persist()` by using the Permission API, and if so call `persist()` (but not if the permission state is `prompt`). In fact, `persist()` could just fail if called from a Worker if there is no stored permission to use it.

I agree, UI in workers is not something we should do.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/29#issuecomment-222301739

Received on Saturday, 28 May 2016 10:33:20 UTC