You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The operation updates the cursor's properties (key, value, got value flag, etc)
The steps queue a task to fire a success event
That means the cursor properties update before the event fires, which means polling could see the properties change earlier. I think this is what the obscurely worded #339 is hinting at.
Chrome doesn't implement it this way - properties are not visible on the IDBCursor until the event fires. They're applied synchronously just before the event is dispatched.
The text was updated successfully, but these errors were encountered:
Chrome doesn't implement it this way - properties are not visible on the IDBCursor until the event fires. They're applied synchronously just before the event is dispatched.
This is also how Firefox works. (And it's hard to imagine an implementation that operates using tasks not working this way.)
When a cursor advances, say via
continue()
the steps use the iterate a cursor operation and the asynchronously execute a request steps. This means:That means the cursor properties update before the event fires, which means polling could see the properties change earlier. I think this is what the obscurely worded #339 is hinting at.
Chrome doesn't implement it this way - properties are not visible on the IDBCursor until the event fires. They're applied synchronously just before the event is dispatched.
The text was updated successfully, but these errors were encountered: