Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ff3ae8f473dd3cf7046fd64d4349172ae57bb6a9
https://github.com/WebKit/WebKit/commit/ff3ae8f473dd3cf7046fd64d4349172ae57bb6a9
Author: Richard Robinson <[email protected]>
Date: 2024-07-06 (Sat, 06 Jul 2024)
Changed paths:
M Source/WebCore/editing/cocoa/HTMLConverter.mm
Log Message:
-----------
[Writing Tools] Rare WebContent crash in
IPC::ArgumentCoder<WebKit::CoreIPCData, void>::encode
https://bugs.webkit.org/show_bug.cgi?id=276289
rdar://130595277
Reviewed by Aditya Keerthi.
This crash can happen when attempting to create an NSTextAttachment with a
`nil` file wrapper.
Fix by instead just returning an NSAttributedString comprised of a single space
in this case (to
maintain the same length as if there were an attachment).
* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(attributedStringWithAttachmentForFileWrapper):
(attributedStringWithAttachmentForElement):
Canonical link: https://commits.webkit.org/280714@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