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

> (The assert should hold true.)

I mentioned on another issue that handling concurrent calls to persist() has interesting implementation details. Imagine two instances of this algo running with two separate prompts on screen, the user says "grant" to the first prompt and it runs to completion, then a moment later the user says "deny" to the second.

I think the assert would not hold true in such a world.

To reduce the risk of compat issues, it'd be good to address the potential inconsistency between the 'permission' value and the 'persist' value. I'd vote to alter the spec to explicitly set 'persist' to a value consistent with the user input.

Maybe there's a good reason the algo doesn't currently do that?

---
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-215558842

Received on Thursday, 28 April 2016 20:55:32 UTC