Changeset 281384 in webkit
- Timestamp:
- Aug 21, 2021, 6:33:10 PM (3 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r281318 r281384 1 2021-08-21 Sihui Liu <[email protected]> 2 3 IndexedDB: crash when triggering IDBOpenRequest completion back on a worker thread 4 https://bugs.webkit.org/show_bug.cgi?id=229375 5 6 Protect callee in CrossThreadTask if it inherits from ThreadSafeRefCounted<T>. 7 8 Reviewed by Brady Eidson. 9 10 * wtf/CrossThreadTask.h: 11 1 12 2021-08-20 Mark Lam <[email protected]> 2 13 -
trunk/Source/WTF/wtf/CrossThreadTask.h
r278179 r281384 88 88 } 89 89 90 template<typename T, typename std::enable_if<std::is_base_of<ThreadSafeRefCounted <T>, T>::value, int>::type = 0, typename... Parameters, typename... Arguments>90 template<typename T, typename std::enable_if<std::is_base_of<ThreadSafeRefCountedBase, T>::value, int>::type = 0, typename... Parameters, typename... Arguments> 91 91 CrossThreadTask createCrossThreadTask(T& callee, void (T::*method)(Parameters...), const Arguments&... arguments) 92 92 { … … 96 96 } 97 97 98 template<typename T, typename std::enable_if<!std::is_base_of<ThreadSafeRefCounted <T>, T>::value, int>::type = 0, typename... Parameters, typename... Arguments>98 template<typename T, typename std::enable_if<!std::is_base_of<ThreadSafeRefCountedBase, T>::value, int>::type = 0, typename... Parameters, typename... Arguments> 99 99 CrossThreadTask createCrossThreadTask(T& callee, void (T::*method)(Parameters...), const Arguments&... arguments) 100 100 { -
trunk/Source/WebCore/ChangeLog
r281382 r281384 1 2021-08-21 Sihui Liu <[email protected]> 2 3 IndexedDB: crash when triggering IDBOpenRequest completion back on a worker thread 4 https://bugs.webkit.org/show_bug.cgi?id=229375 5 6 Reviewed by Brady Eidson. 7 8 Client may dispatch custom events to an IDBRequest, and we should only change request state based on events 9 created internally. 10 11 * Modules/indexeddb/IDBRequest.cpp: 12 (WebCore::IDBRequest::dispatchEvent): 13 1 14 2021-08-21 Zalan Bujtas <[email protected]> 2 15 -
trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp
r280053 r281384 309 309 targets = { this, m_transaction.get(), &m_transaction->database() }; 310 310 311 m_hasPendingActivity = false; 311 if (event.isTrusted()) 312 m_hasPendingActivity = false; 312 313 313 314 {
Note:
See TracChangeset
for help on using the changeset viewer.