Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c6af2674f2a0735f018d3a8ccd773d04c040b20a
https://github.com/WebKit/WebKit/commit/c6af2674f2a0735f018d3a8ccd773d04c040b20a
Author: Wenson Hsieh <[email protected]>
Date: 2025-10-06 (Mon, 06 Oct 2025)
Changed paths:
M Source/WebCore/editing/cocoa/AttributedString.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm
Log Message:
-----------
REGRESSION (300681@main): [visionOS] Web process crashes when editing any text
https://bugs.webkit.org/show_bug.cgi?id=300277
rdar://162071389
Reviewed by Abrar Rahman Protyasha and Aditya Keerthi.
Instead of `MESSAGE_CHECK`-ing as a result of failing to decode a custom web
font descriptor in
`FontWrapper::createFromIPCData`, fall back to the system font using
`CTFontCreateUIFontForLanguage`.
This primarily affects visionOS, which requests document editing context data
with attributed text
while the user types.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm
* Source/WebCore/editing/cocoa/AttributedString.mm:
(WebCore::AttributedString::FontWrapper::createFromIPCData):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm:
(TEST(DocumentEditingContext, RequestAttributedTextWithCustomFont)):
Add an API test that exercises this behavior by requesting
`UIWKDocumentRequestAttributed` in an
editable container with a custom font (Ahem).
Canonical link: https://commits.webkit.org/301108@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes