Changeset 236111 in webkit
- Timestamp:
- Sep 18, 2018, 2:16:44 AM (8 years ago)
- Location:
- releases/WebKitGTK/webkit-2.22/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Modules/indexeddb/IDBDatabase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog
r236110 r236111 1 2018-08-28 Youenn Fablet <youenn@apple.com> 2 3 IDBDatabase should not return true to hasPendingActivity after being stopped 4 https://bugs.webkit.org/show_bug.cgi?id=189073 5 6 Reviewed by Darin Adler. 7 8 There is a chance that IDBDatabase::hasPendingActivity returns true. 9 The case that might happen is when stop() is called but there are still some active/being committed transactions. 10 In that case, hasPendingActivity will return true until these transactions get finalized. 11 While these transactions will probably be finalized at some point, it delays GC for no good reason. 12 And we might want in a follow-up patch to assert that ActiveDOMObject are GC-able whenever their context is stopped. 13 For that purpose, make sure hasPendingActivity returns false when context is stopped. 14 15 * Modules/indexeddb/IDBDatabase.cpp: 16 (WebCore::IDBDatabase::hasPendingActivity const): 17 1 18 2018-08-28 Youenn Fablet <youenn@apple.com> 2 19 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/indexeddb/IDBDatabase.cpp
r235061 r236111 77 77 ASSERT(&originThread() == &Thread::current() || mayBeGCThread()); 78 78 79 if (m_closedInServer )79 if (m_closedInServer || isContextStopped()) 80 80 return false; 81 81
Note:
See TracChangeset
for help on using the changeset viewer.