| Summary: | [ Monterey ] imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-display-p3-drawImage-ImageBitmap-video.html is failing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Truitt Savell <tsavell> | ||||
| Component: | New Bugs | Assignee: | Cameron McCormack (:heycam) <heycam> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | clopez, dino, eric.carlson, ews-watchlist, glenn, heycam, jer.noble, philipj, sergio, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=238920 | ||||||
| Bug Depends on: | 235006 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Truitt Savell
2022-02-28 14:06:25 PST
Bisecting reveals that this started failing after https://bugs.webkit.org/show_bug.cgi?id=235006. There are two separate issues which are contributing to the test intermittently failing: * The test video files I created have a single frame in them, and calling drawImage with such videos sometimes results in empty pixel data being drawn. * The loadeddata event doesn't really guarantee that the video will have pixels available for drawImage to use. Using requestVideoFrameCallback would be better. Single frame videos are a bit of an edge case, so I'm not worried about the impact on content. Additionally, requestVideoFrameCallback seems to be delayed a bit if the video that's passed to drawImage has been inserted into the document but is not playing. I'll attach a patch to: * change the test video files to have 10s of solid color, instead of a single frame * use requestVideoFrameCallback if available * play the video before waiting for the video frame callback I'll file separate bugs on these issues. Created attachment 455066 [details]
Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Committed r291509 (248616@main): <https://commits.webkit.org/248616@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455066 [details]. |