[webkit-changes] [WebKit/WebKit] 6bde0f: Web content process crash in WebCore::Event::~Event
Sihui
noreply at github.com
Fri Jan 31 21:55:40 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6bde0f8994b3bc4a7dd0b6a84e9780a624f0faf0
https://github.com/WebKit/WebKit/commit/6bde0f8994b3bc4a7dd0b6a84e9780a624f0faf0
Author: Sihui Liu <sihui_liu at apple.com>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M Source/WTF/wtf/CrossThreadTask.h
Log Message:
-----------
Web content process crash in WebCore::Event::~Event
rdar://141997895
Reviewed by Chris Dumez.
rdar://139782420 made IDBDatabase subclass ThreadSafeRefCountedAndCanMakeThreadSafeWeakPtr. However,
createCrossThreadTask() does not capture RefPtr for derived classes of ThreadSafeRefCountedAndCanMakeThreadSafeWeakPtr.
To fix it, make sure createCrossThreadTask() creates RefPtr when ref() member function is available.
* Source/WTF/wtf/CrossThreadTask.h:
(WTF::createCrossThreadTask):
* Source/WTF/wtf/TypeTraits.h:
Originally-landed-as: 0a6d878611ce. rdar://143591999
Canonical link: https://commits.webkit.org/289658@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list