Bug 280824
Summary: | [iOS] Snapshot using`takeSnapshotWithConfiguration` misses HTML video | ||
---|---|---|---|
Product: | WebKit | Reporter: | Radu Nitescu <radunitescu> |
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Major | CC: | ajuma, simon.fraser, thorton, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 17 |
Radu Nitescu
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ali Juma
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
Also filed as FB15371842.
Simon Fraser (smfr)
<rdar://137206313>