Bug 275918

Summary: mediastreamtrack ended event not fired when permissions changed
Product: WebKit Reporter: michael.hyun3
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: iPhone / iPad   
OS: iOS 17   

Description michael.hyun3 2024-06-26 14:11:46 PDT
https://github.com/aws/amazon-chime-sdk-js/issues/2912

The mediastreamtrack ended event is not triggered when the permissions for the media stream type is changed.
Comment 1 Radar WebKit Bug Importer 2024-07-03 14:12:27 PDT
<rdar://problem/131076417>
Comment 2 youenn fablet 2024-07-04 00:02:08 PDT
Safari has UI to do two things:
- Mute/unmute capture, in which case onunmute/onmute event handlers will be called
- Change Safari per-site settings, camera is by default 'Ask' and can also be set to Allow, Deny. If setting to Deny, the current capture will not be stopped, it is only on page reload that the new settings value will happen.

I am not sure whether we should change anything. Could you precise what the ask is?