RESOLVED FIXED 252003
[GPU Process] [FormControls] Make it possible to draw a viewless NSCell
https://bugs.webkit.org/show_bug.cgi?id=252003
Summary [GPU Process] [FormControls] Make it possible to draw a viewless NSCell
Said Abou-Hallawa
Reported 2023-02-09 12:09:20 PST
AppKit crashes if [NSCell drawWithFrame] is called out of the main thread with a non-nil NSView. And this is why a hack was added to WebControlWindow to silence this crash in 257981@main. To fix the crash and to remove the hack, a nil NSView will be passed to [NSCell drawWithFrame] instead of passing the fake one. To provide the [NSCell drawWithFrame] with the settings that it used to get from the fake NSView, new AppKit SPIs will be used to explicitly set them from the drawing. An NSCell can be drawn without an NSView only if these SPIs are available.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-02-09 12:10:20 PST
Said Abou-Hallawa
Comment 2 2023-02-09 12:28:42 PST
EWS
Comment 3 2023-02-13 11:13:58 PST
Committed 260210@main (b8b3d9929d7d): <https://commits.webkit.org/260210@main> Reviewed commits have been landed. Closing PR #9882 and removing active labels.
Ryosuke Niwa
Comment 4 2023-02-13 12:22:16 PST
EWS
Comment 5 2023-02-13 12:25:51 PST
Committed 260216@main (efa69875810d): <https://commits.webkit.org/260216@main> Reviewed commits have been landed. Closing PR #10052 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.