RESOLVED CONFIGURATION CHANGED 242669
REGRESSION (iOS 16 beta) canvas.getContext('2d').drawImage() returns black image
https://bugs.webkit.org/show_bug.cgi?id=242669
Summary REGRESSION (iOS 16 beta) canvas.getContext('2d').drawImage() returns black image
Brian Z
Reported 2022-07-12 18:04:46 PDT
# Tested devices: Bug is reproducible on: -iPhone XS | iOS 16 Beta Bug is NOT reproducible on: 
-iPhone X | iOS 15.5 # Scenario: - Safari browser is opened for the iOS User - Safari tab is open to https://webrtc.github.io/samples/src/content/getusermedia/canvas/ - Grant camera permission - The bottom canvas is initialized to a grey background - Press "Take snapshot" - The bottom canvas shows a completely black image Expected behavior: The bottom canvas shows a screen capture of the video feed
Attachments
Brian Z
Comment 1 2022-07-12 18:09:08 PDT
Another url that can be used to reproduce the bug: https://storage.googleapis.com/tfjs-models/demos/facemesh/index.html Error behavior: <canvas id="output" width="500" height="500"></canvas> element in the top-left corner shows a black box Expected behavior: the canvas element should show the camera feed with a face mesh overlay Console errors: none
youenn fablet
Comment 2 2022-07-13 00:57:25 PDT
Which beta is it? Is it the latest one?
Brian Z
Comment 3 2022-07-13 10:00:50 PDT
I was testing on 16 beta 2. I just downloaded 16 beta 3 and can test that today
Radar WebKit Bug Importer
Comment 4 2022-07-13 13:38:08 PDT
Mike Wyrzykowski
Comment 5 2022-07-14 15:19:19 PDT
This appears resolved on the public seed, I am not able to reproduce.
Brian Z
Comment 6 2022-07-15 14:46:30 PDT
Yup, can confirm it's been fixed in iOS 16 beta 3 — thanks for the hard work!
Note You need to log in before you can comment on or make changes to this bug.