WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 102283
98314
IndexedDB: Possible cause of transactions committing early
https://bugs.webkit.org/show_bug.cgi?id=98314
Summary
IndexedDB: Possible cause of transactions committing early
Joshua Bell
Reported
2012-10-03 15:54:40 PDT
This was noticed in code inspection - I don't have a repro. In IDBTransactionBackendImpl::taskEventTimerFired: if (!m_pendingEvents && isTaskQueueEmpty()) { // The last task event has completed and the task // queue is empty. Commit the transaction. commit(); return; } This does not account for m_pendingPreemptiveEvents which may nonzero 0 even if there are no events in the queue. For example, after a createIndex() call it might bump that count but yet have placed any tasks in the queues or bumped m_pendingEvents. If the timer fires, the commit() could occur before the indexing occurs.
Attachments
Add attachment
proposed patch, testcase, etc.
Joshua Bell
Comment 1
2012-11-15 17:02:46 PST
Landed this fix as a possible patch for
webkit.org/b/102283
so marking as a dupe *** This bug has been marked as a duplicate of
bug 102283
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug