Changeset 193786 in webkit
- Timestamp:
- Dec 8, 2015, 3:02:58 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r193785 r193786 1 2015-12-08 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: Fire blocked events for delete requests that are blocked. 4 https://bugs.webkit.org/show_bug.cgi?id=152015 5 6 Reviewed by Alex Christensen. 7 8 * platform/mac-wk1/TestExpectations: 9 1 10 2015-12-08 Brady Eidson <beidson@apple.com> 2 11 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r193785 r193786 64 64 storage/indexeddb/database-quota.html [ Skip ] 65 65 storage/indexeddb/deleted-objects.html [ Skip ] 66 storage/indexeddb/deletedatabase-delayed-by-versionchange.html [ Skip ] 66 67 storage/indexeddb/dont-wedge.html [ Skip ] 67 68 storage/indexeddb/index-multientry.html [ Skip ] … … 84 85 85 86 # IDB tests that timeout 86 storage/indexeddb/database-closepending-flag.html [ Skip ]87 storage/indexeddb/deletedatabase-blocked.html [ Skip ]88 storage/indexeddb/deletedatabase-delayed-by-versionchange.html [ Skip ]89 87 storage/indexeddb/intversion-pending-version-changes-ascending.html [ Skip ] 90 88 storage/indexeddb/odd-strings.html [ Skip ] … … 96 94 storage/indexeddb/createIndex-after-failure.html [ Failure ] 97 95 storage/indexeddb/cursor-continue.html [ Failure ] 96 storage/indexeddb/database-closepending-flag.html [ Failure ] 98 97 storage/indexeddb/database-deletepending-flag.html [ Failure ] 99 98 storage/indexeddb/delete-closed-database-object.html [ Failure ] 100 storage/indexeddb/delete-in-upgradeneeded-close-in-open-success.html [ Failure ]101 99 storage/indexeddb/delete-in-upgradeneeded-close-in-versionchange.html [ Failure ] 102 storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange.html [ Failure ]103 storage/indexeddb/deletedatabase-not-blocked.html [ Failure ]104 100 storage/indexeddb/factory-cmp.html [ Failure ] 105 101 storage/indexeddb/index-basics.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r193784 r193786 1 2015-12-08 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: Fire blocked events for delete requests that are blocked. 4 https://bugs.webkit.org/show_bug.cgi?id=152015 5 6 Reviewed by Alex Christensen. 7 8 No new tests (Previous failing tests now pass, and previously timing-out tests now complete). 9 10 * Modules/indexeddb/server/UniqueIDBDatabase.cpp: 11 (WebCore::IDBServer::UniqueIDBDatabase::maybeDeleteDatabase): 12 (WebCore::IDBServer::UniqueIDBDatabase::handleDelete): 13 (WebCore::IDBServer::UniqueIDBDatabase::deleteOrRunTransactionsTimerFired): 14 * Modules/indexeddb/server/UniqueIDBDatabase.h: 15 1 16 2015-12-08 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp
r193784 r193786 85 85 } 86 86 87 bool UniqueIDBDatabase::maybeDeleteDatabase( )87 bool UniqueIDBDatabase::maybeDeleteDatabase(IDBServerOperation* newestDeleteOperation) 88 88 { 89 89 ASSERT(isMainThread()); … … 96 96 m_hasNotifiedConnectionsOfDelete = true; 97 97 } 98 99 if (newestDeleteOperation) 100 newestDeleteOperation->connection().notifyOpenDBRequestBlocked(newestDeleteOperation->requestData().requestIdentifier(), m_databaseInfo->version(), 0); 101 98 102 return false; 99 103 } … … 225 229 226 230 auto operation = IDBServerOperation::create(connection, requestData); 231 auto* rawOperation = &operation.get(); 227 232 m_pendingDeleteDatabaseOperations.append(WTF::move(operation)); 228 233 … … 234 239 m_deletePending = true; 235 240 236 maybeDeleteDatabase( );241 maybeDeleteDatabase(rawOperation); 237 242 } 238 243 … … 905 910 LOG(IndexedDB, "(main) UniqueIDBDatabase::deleteOrRunTransactionsTimerFired"); 906 911 907 if (m_deletePending && maybeDeleteDatabase( ))912 if (m_deletePending && maybeDeleteDatabase(nullptr)) 908 913 return; 909 914 -
trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.h
r193431 r193786 107 107 void handleOpenDatabaseOperations(); 108 108 void addOpenDatabaseConnection(Ref<UniqueIDBDatabaseConnection>&&); 109 bool maybeDeleteDatabase( );109 bool maybeDeleteDatabase(IDBServerOperation*); 110 110 bool hasAnyOpenConnections() const; 111 111
Note:
See TracChangeset
for help on using the changeset viewer.