Bug 229013

Summary: Fix some `NSAttributedString` inconsistencies between WK1 and WK2
Product: WebKit Reporter: Devin Rousso <hi>
Component: New BugsAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, hi, mifenton, thorton, timothy, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch none

Description Devin Rousso 2021-08-11 14:50:05 PDT
`NSAttributedString` now uses WK2, which has caused us to discover some bugs :P
Comment 1 Devin Rousso 2021-08-11 14:50:19 PDT
<rdar://problem/81215696>
Comment 2 Devin Rousso 2021-08-11 15:02:05 PDT
Created attachment 435378 [details]
Patch
Comment 3 Timothy Hatcher 2021-08-11 15:05:02 PDT
Comment on attachment 435378 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=435378&action=review

> Source/WebKit/UIProcess/API/Cocoa/NSAttributedString.mm:155
> +        [configuration preferences]._defaultFontSize = 12;

configuration.preferences._defaultFontSize = 12;
Comment 4 Devin Rousso 2021-08-11 15:05:44 PDT
Comment on attachment 435378 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=435378&action=review

>> Source/WebKit/UIProcess/API/Cocoa/NSAttributedString.mm:155
>> +        [configuration preferences]._defaultFontSize = 12;
> 
> configuration.preferences._defaultFontSize = 12;

we can't cause it's a `RetainPtr` 😅
Comment 5 Devin Rousso 2021-08-11 15:32:16 PDT
Created attachment 435379 [details]
Patch
Comment 6 EWS 2021-08-12 11:58:54 PDT
Committed r280973 (240477@main): <https://commits.webkit.org/240477@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435379 [details].