WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
277572
[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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-08-02 15:57:56 PDT
<
rdar://problem/133093672
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug