Bug 243121

Summary: REGRESSION (iOS 16 beta 3) - getUserMedia fails in WKWebView
Product: WebKit Reporter: kacilambeth <kacilambeth>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: ap, dino, jer.noble, kbr, kkinnunen, webkit-bug-importer
Priority: P1 Keywords: InRadar
Version: Other   
Hardware: iPhone / iPad   
OS: Other   
Attachments:
Description Flags
Video of minimum repro none

Description kacilambeth@nianticlabs.com 2022-07-22 16:58:17 PDT
Created attachment 461151 [details]
Video of minimum repro

WKWebView getUserMedia regression between iOS 15.5 and 16 beta 3

Minimum repro test: https://webrtc.github.io/samples/src/content/getusermedia/gum/
Expectation: User clicks "Open Camera", user allows camera permissions, camera feed is displayed 
Result: Camera feed is not displayed when camera permissions are allowed (frame remains black)

As a result of this bug, Niantic WebAR sites are broken impacting major brands including: Paramount Pictures, Universal Pictures, Marvel, LA Dodgers, MGM, Xbox, & More

Video attached showing unexpected behavior in Chrome WKWebView on iPhone 11 running iOS 16 beta 3.

Example of impacted Paramount Pictures website (Opened in WKWebView): https://whatsmycallsign.com
Expected result: After user enters their name, and allows camera permissions, they see their front camera feed with an AR face effect. 
Actual result on iOS 16 beta 3 WKWebVIew: User enters their name, allows camera permissions, the camera feed is not displayed
Comment 1 Kenneth Russell 2022-07-22 17:17:42 PDT
Recategorizing as Media rather than WebGL bug. The given test case doesn't touch WebGL; it only feeds the stream from getUserMedia intoa. video element.
Comment 2 Radar WebKit Bug Importer 2022-07-22 22:18:27 PDT
<rdar://problem/97471627>
Comment 3 Alexey Proskuryakov 2022-07-25 13:09:03 PDT
This was determined to be a duplicate of bug 242795.

*** This bug has been marked as a duplicate of bug 242795 ***