Bug 234598

Summary: iOS 15.1.1 - Safari can’t access camera after swiping down to use the iOS Notification Center
Product: WebKit Reporter: Dimitri Friedli <dimitri>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Severity: Critical CC: eric.carlson, rychouwei, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
Description Flags
Screen Recording none

Description Dimitri Friedli 2021-12-22 04:49:06 PST
Created attachment 447794 [details]
Screen Recording

(Description is also available on https://docs.google.com/document/d/1mRJIqerMCTlkfFa6GUPPWvYC0P2gYU8nTUP0bTBnwRw/edit#)

iOS Version: 			15.1.1
Safari Version: 		15.1
iPhone Model: 		        iPhone 12 Pro
Browser Details: 		https://whatismybrowser.com/w/WXTABX7

Sample to reproduce:            Source Code (https://drive.google.com/file/d/1UBH5RTf9ouGAxMbMRaJMPeqJ-Zf63ZaQ/view?usp=sharing)
                                Deployed (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/)

Logs: 				N/A, no errors are visible in the console

Screen Recording:		https://drive.google.com/uc?id=1JLx6sfG2aWkIU5bAGrnW2Oi6BSMzrCj7&export=download

# Prerequisites to reproduce the issue
1. Open Safari 15.1
2. Go to https://safari-15-webrtc-issues.netlify.app/ 
3. Use https://safari-15-webrtc-issues.netlify.app/ to reproduce the issue

# Steps to reproduce the issue
1. Open the app
2. Grant camera access
3. Swipe down to access the iOS Notification Center
4. Wait a few seconds until the camera access indicator (green) on the top right goes away
5. Swipe up to access the website again

# Current behavior
Safari can’t access the camera anymore. 

# Expected behavior
Safari can access the camera. If this is not possible, Safari would ask the user again for permission to access the camera.
Comment 1 Radar WebKit Bug Importer 2021-12-22 11:58:07 PST
Comment 2 Dimitri Friedli 2022-01-06 07:36:50 PST
Updating to iOS 15.2/ Safari 15.2 seems to fix the issue.