Bug 234509
Summary: | iOS Safari 15.1 - Can’t access the camera via WebRTC after switching between apps multiple times | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dimitri Friedli <dimitri> |
Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Blocker | CC: | dimitri, rychouwei, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 15 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 15 |
Dimitri Friedli
(The report including all necessary links to screen recordings, and the sample to reproduce is also available here https://docs.google.com/document/d/1IfhLzjz0IEo_sBLJiAvlQx1T-58ceQ3wZU3V6u2wCr8/edit)
iOS Version: 15.1.1
Safari Version: 15.1
iPhone Model: iPhone 12 Pro
Browser Details: https://whatismybrowser.com/w/WXTABX7
Reproduction Rate: 100%
Sample to reproduce: https://drive.google.com/file/d/1fyklTMm2SUE0uOBQYKVV1Qp_eqwxeLal/view
https://safari-15-webrtc-issues.netlify.app/
The sample is based on the official WebRTC Demo (https://webrtc.github.io/samples/src/content/devices/input-output/). The only difference is, that we added a manifest.json to make the demo “installable” without the Safari search bar
Screen Recording: https://drive.google.com/file/d/15pFe2Myk7h7_q6U6FTmd9k8oK11nX6ZV/view
*Prerequisites to reproduce the issue*
1. Open Safari 15.1
2. Go to https://safari-15-webrtc-issues.netlify.app/
3. Install the website on the iPhone Home Screen ( > Share Icon > Add to Home Screen)
4. Use the installed website from the Home Screen to reproduce the issue
*Steps to reproduce the issue*
1. Open the app
2. Grant camera access
3. Switch to another app putting the app in the background
4. Return to the installed web-app
5. Repeat steps 3 and 4 30+ times
*Current behavior*
WebRTC can’t access the camera anymore. The icon which indicates camera access (red, on the top left) is blinking. Camera access can only be restored when completely closing and restarting the app.
Note: Only the camera feed is not working anymore, other (native) UI elements like select are responsive as they should.
*Expected behavior*
Camera access is working after coming back to the installed web app. If the browser can’t access the camera due to missing permissions, the browser should ask for permissions again.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/86936622>
youenn fablet
I think this was fixed in bug 252465, marking as duplicate.
*** This bug has been marked as a duplicate of bug 252465 ***