Re: [w3c/IndexedDB] Define Indexed DB as a storage endpoint, use hooks (#334)

> And also note that we have no idea what should happen to pending open/delete requests if storage was swapped out. Are they associated with the previous storage? (so the queue is part of storage itself) Or do they apply to whatever the current storage is when they run? Brain hurts...

I think it makes sense for them to be associated with the previous storage.

Step 2 of the proposed replace algorithm at https://github.com/whatwg/storage/issues/18#issuecomment-614751336 is a task that runs on the given agent.  It makes sense that the execution of this task would constitute the start of the new storage epoch, if you will.  Requests made in the before times would be irrelevant.

-- 
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/IndexedDB/pull/334#issuecomment-630432168

Received on Monday, 18 May 2020 21:00:02 UTC