NEW 280824
[iOS] Snapshot using`takeSnapshotWithConfiguration` misses HTML video
https://bugs.webkit.org/show_bug.cgi?id=280824
Summary [iOS] Snapshot using`takeSnapshotWithConfiguration` misses HTML video
Radu Nitescu
Reported 2024-10-03 07:56:07 PDT
Taking a snapshot using `takeSnapshotWithConfiguration:completionHandler:` of a webpage containing a html video does not include the video portion - it is replaced by a black rectangle. Steps to reproduce: Take a snapshot of `WKWebView` on iOS 17.5 or 18.0 (iPhone XR) with `takeSnapshotWithConfiguration:completionHandler:` of a webpage that is playing an HTML video (e.g. https://www.youtube.com/watch?v=eDqfg_LexCQ) Expected behavior: The snapshot is taken and includes a frame of the video. Current behavior: The snapshot is taken but does not include the video portion (being replaced by a black rectangle). The rest of the content is correctly captured in the image.
Attachments
Ali Juma
Comment 1 2024-10-03 08:15:22 PDT
We're running into this when trying to implement features involving web page snapshots. Firefox on iOS's tab snapshots also have this issue with missing video content. On the other hand, Safari's snapshots *do* include the contents of videos, so perhaps there's something that Safari is doing that is missing from the implementation of `takeSnapshotWithConfiguration:completionHandler:`.
Ali Juma
Comment 2 2024-10-03 08:20:31 PDT
Also filed as FB15371842.
Simon Fraser (smfr)
Comment 3 2024-10-07 12:43:26 PDT
Note You need to log in before you can comment on or make changes to this bug.