Changeset 192748 in webkit
- Timestamp:
- Nov 23, 2015, 11:41:05 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r192741 r192748 1 2015-11-23 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: Unskip storage/indexeddb/mozilla/global-data.html. 4 https://bugs.webkit.org/show_bug.cgi?id=151557 5 6 Reviewed by Alex Christensen. 7 8 * platform/mac-wk1/TestExpectations: 9 1 10 2015-11-17 Sergio Villar Senin <svillar@igalia.com> 2 11 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r192713 r192748 73 73 # But Modern IndexedDB is. 74 74 storage/indexeddb/modern [ Pass ] 75 storage/indexeddb/mozilla/global-data.html [ Pass ] 75 76 76 77 # Fails with WebKit1 only. -
trunk/Source/WebCore/ChangeLog
r192746 r192748 1 2015-11-23 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: Unskip storage/indexeddb/mozilla/global-data.html. 4 https://bugs.webkit.org/show_bug.cgi?id=151557 5 6 Reviewed by Alex Christensen. 7 8 No new tests (Unskipping existing test storage/indexeddb/mozilla/global-data.html). 9 10 - Reworking some invalid ASSERTS 11 - Actually opening pending open-database-requests after a version change transaction completes 12 - Allow starting new transactions when the version change transaction has *started* finishing, 13 but before it finishes finishing. 14 15 * Modules/indexeddb/client/IDBDatabaseImpl.cpp: 16 (WebCore::IDBClient::IDBDatabase::transaction): 17 18 * Modules/indexeddb/client/IDBTransactionImpl.h: 19 20 * Modules/indexeddb/server/MemoryObjectStore.cpp: 21 (WebCore::IDBServer::MemoryObjectStore::~MemoryObjectStore): 22 23 * Modules/indexeddb/server/MemoryObjectStoreCursor.cpp: 24 (WebCore::IDBServer::MemoryObjectStoreCursor::keyAdded): Deleted. 25 26 * Modules/indexeddb/server/UniqueIDBDatabase.cpp: 27 (WebCore::IDBServer::UniqueIDBDatabase::UniqueIDBDatabase): 28 (WebCore::IDBServer::UniqueIDBDatabase::handleOpenDatabaseOperations): 29 (WebCore::IDBServer::UniqueIDBDatabase::commitTransaction): 30 * Modules/indexeddb/server/UniqueIDBDatabase.h: 31 1 32 2015-11-23 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 33 -
trunk/Source/WebCore/Modules/indexeddb/client/IDBDatabaseImpl.cpp
r192720 r192748 157 157 } 158 158 159 if (m_versionChangeTransaction ) {159 if (m_versionChangeTransaction && !m_versionChangeTransaction->isFinishedOrFinishing()) { 160 160 ec = INVALID_STATE_ERR; 161 161 return nullptr; -
trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.h
r192720 r192748 124 124 void operationDidComplete(TransactionOperation&); 125 125 126 bool isFinishedOrFinishing() const; 127 126 128 private: 127 129 IDBTransaction(IDBDatabase&, const IDBTransactionInfo&, IDBOpenDBRequest*); 128 129 bool isFinishedOrFinishing() const;130 130 131 131 void commit(); -
trunk/Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp
r192694 r192748 56 56 MemoryObjectStore::~MemoryObjectStore() 57 57 { 58 ASSERT(!m_writeTransaction);58 m_writeTransaction = nullptr; 59 59 } 60 60 -
trunk/Source/WebCore/Modules/indexeddb/server/MemoryObjectStoreCursor.cpp
r192694 r192748 63 63 void MemoryObjectStoreCursor::keyAdded(std::set<IDBKeyData>::iterator iterator) 64 64 { 65 ASSERT(m_currentPositionKey.isValid());66 67 65 if (hasIterators()) 68 66 return; -
trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp
r192687 r192748 46 46 , m_identifier(identifier) 47 47 , m_deleteOrRunTransactionsTimer(*this, &UniqueIDBDatabase::deleteOrRunTransactionsTimerFired) 48 , m_handleOpenDatabaseOperationsTimer(*this, &UniqueIDBDatabase::handleOpenDatabaseOperations) 48 49 { 49 50 } … … 114 115 // We will try again later. 115 116 if (m_versionChangeDatabaseConnection) 117 return; 118 119 if (m_pendingOpenDatabaseOperations.isEmpty()) 116 120 return; 117 121 … … 714 718 m_versionChangeTransaction = nullptr; 715 719 m_versionChangeDatabaseConnection = nullptr; 720 721 if (!m_handleOpenDatabaseOperationsTimer.isActive()) 722 m_handleOpenDatabaseOperationsTimer.startOneShot(0); 716 723 } 717 724 -
trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.h
r192687 r192748 187 187 188 188 Timer m_deleteOrRunTransactionsTimer; 189 Timer m_handleOpenDatabaseOperationsTimer; 189 190 190 191 Deque<RefPtr<UniqueIDBDatabaseTransaction>> m_pendingTransactions;
Note:
See TracChangeset
for help on using the changeset viewer.