Skip to content

Crash in TimerBase::~TimerBase via DataDetection::detectContentInFrame#32328

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
rniwa:fix278259
Aug 17, 2024
Merged

Crash in TimerBase::~TimerBase via DataDetection::detectContentInFrame#32328
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
rniwa:fix278259

Conversation

@rniwa
Copy link
Copy Markdown
Member

@rniwa rniwa commented Aug 16, 2024

c213f14

Crash in TimerBase::~TimerBase via DataDetection::detectContentInFrame
https://bugs.webkit.org/show_bug.cgi?id=278259
<rdar://133488287>

Reviewed by Wenson Hsieh.

Speculative fix. Use a WeakPtr instead of RefPtr in detectContentInFrame so that
we don't attempt to destruct Document in a background thread.

* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::DataDetection::detectContentInFrame):

Canonical link: https://commits.webkit.org/282380@main

b5bf41f

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 ✅ 🧪 wincairo-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress 🧪 api-gtk
✅ 🧪 vision-wk2
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv
🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@rniwa rniwa self-assigned this Aug 16, 2024
@rniwa rniwa added the WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). label Aug 16, 2024
@rniwa rniwa requested review from ddkilzer, rr-codes and whsieh August 16, 2024 22:33
@rniwa rniwa added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Aug 17, 2024
https://bugs.webkit.org/show_bug.cgi?id=278259
<rdar://133488287>

Reviewed by Wenson Hsieh.

Speculative fix. Use a WeakPtr instead of RefPtr in detectContentInFrame so that
we don't attempt to destruct Document in a background thread.

* Source/WebCore/editing/cocoa/DataDetection.mm:
(WebCore::DataDetection::detectContentInFrame):

Canonical link: https://commits.webkit.org/282380@main
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 282380@main (c213f14): https://commits.webkit.org/282380@main

Reviewed commits have been landed. Closing PR #32328 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit c213f14 into WebKit:main Aug 17, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Aug 17, 2024
@rniwa rniwa deleted the fix278259 branch August 17, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants