| Summary: | [ macOS Big Sur ] 2X TestWebKitAPI.WebKit.NSAttributedStringWithAndWith(API tests) are constant crashes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Hercules Hjalmarsson <hhjalmarsson> |
| Component: | New Bugs | Assignee: | Brent Fulgham <bfulgham> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bfulgham, webkit-bot-watchers-bugzilla, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Hercules Hjalmarsson
2022-09-29 08:29:09 PDT
Interesting. This assertion is not hit when running on macOS Ventura. The new tests involve NSAttributedString containing references to file locations, which need to be serialized to (and from) 'nsattributedstringagent'. I wonder if the Big Sur Foundation implementation had a bug that did not expect NSFileWrapper to be a possible element of the attributed string. Pull request: https://github.com/WebKit/WebKit/pull/4836 WebKit inserts WKSecureCodingCGColorWrapper and WKSecureCodingURLWrapper, but the other's don't match what NSAttributedString claims as its 'allowedSecureCodingClasses'.
ERROR: Failed to decode object of classes (
NSAttributedString
): value for key 'NSFileWrapper' was of unexpected class 'NSFileWrapper (0x1f71fbf18) [/System/Library/Frameworks/Foundation.framework]'.
Allowed classes are '{(
"NSColor (0x1f6a446a0) [/System/Library/Frameworks/AppKit.framework]",
"NSArray (0x1f6a79510) [/System/Library/Frameworks/CoreFoundation.framework]",
"NSParagraphStyle (0x1f6e724c0) [/System/Library/PrivateFrameworks/UIFoundation.framework]",
"NSTextAttachment (0x1f6e72718) [/System/Library/PrivateFrameworks/UIFoundation.framework]",
"NSString (0x1f6aac7e0) [/System/Library/Frameworks/Foundation.framework]",
"NSDictionary (0x1f6a79650) [/System/Library/Frameworks/CoreFoundation.framework]",
"NSFont (0x1f6e72150) [/System/Library/PrivateFrameworks/UIFoundation.framework]",
"NSAttributedString (0x1f6aab890) [/System/Library/Frameworks/Foundation.framework]",
"NSGlyphInfo (0x1f6e721f0) [/System/Library/PrivateFrameworks/UIFoundation.framework]",
"NSNumber (0x1f6aac2b8) [/System/Library/Frameworks/Foundation.framework]",
"UIFont (0x1f6e75058) [/System/Library/PrivateFrameworks/UIFoundation.framework]",
"NSURL (0x1f6a799e8) [/System/Library/Frameworks/CoreFoundation.framework]"
)}'.
Since the allowed classes include NSAttributedString, perhaps some other object is being serialized in this test that wraps NSAttributedString?
Committed 255014@main (8f28acecede7): <https://commits.webkit.org/255014@main> Reviewed commits have been landed. Closing PR #4836 and removing active labels. |