Re: [whatwg/storage] Feedback on the persist() algorithm. (#26)

> I think a resolution to false in that case would be more helpful so logic in the page would not be expecting user input that will never arrive.

So this case also came up for the Notifications API and the tentative conclusion there is to resolve with "prompt". I don't know what the general approach for dismissal is in the Permissions API. @jyasskin, @mounirlamouri?

In Storage I tried an approach where `persist()` would mainly be about attempting to persist and tell you the result, but if the dismissal case is important you might want to know about it, so then `persist()` should resolve with a tuple, or simply with the permission state.

(The assert should hold true.)

---
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/26#issuecomment-215396892

Received on Thursday, 28 April 2016 11:37:09 UTC