NEW277572
[WebDriver] Stop using the deprecated CGWindowListCreateImage for viewport snapshots
https://bugs.webkit.org/show_bug.cgi?id=277572
Summary [WebDriver] Stop using the deprecated CGWindowListCreateImage for viewport sn...
Qianlang Chen
Reported 2024-08-02 15:57:24 PDT
The patch https://github.com/WebKit/WebKit/pull/31013 made WebDriver use the deprecated CGWindowListCreateImage function to take viewport snapshots. - This was done to bypass the bug with CGSHWCaptureWindowList, the current way of taking viewport snapshots, which takes screenshots with the windows' rounded corners because its kCGSCaptureIgnoreGlobalClipShape option is bugged and has no effect. This bug introduced flakiness in WPT tests that the above patch aimed to resolve. - CGWindowListCreateImage was deprecated in favor of the ScreenCaptureKit (https://developer.apple.com/documentation/screencapturekit). Once CGSHWCaptureWindowList gets its bug fixed, we should consider switching back to using that to take viewport snapshots, as deprecated functions are prone to being removed or unmaintained later.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-08-02 15:57:56 PDT
Note You need to log in before you can comment on or make changes to this bug.