NEW257710
Permissions API reports wrong permissions for microphone
https://bugs.webkit.org/show_bug.cgi?id=257710
Summary Permissions API reports wrong permissions for microphone
jk
Reported 2023-06-05 05:30:42 PDT
Using Permissions API, the permissionStatus of microphone is not reflecting current actual status set in Settings|Websites|microphones for the site. Landing on a page when microphone access is set to "Deny", will show "Prompt" as status. Landing on page with access set to "Ask" or "Allow" will correctly yield "Prompt" or "Granted" as status. Changing the permission while on the page does not fire the onchange event (implemented in https://bugs.webkit.org/show_bug.cgi?id=244633) (existing bug https://bugs.webkit.org/show_bug.cgi?id=256201), but the updated state will be reported when queried again. Changing the setting from Denied to Ask/Allow, does allow opening new connections when earlier attempts would fail. Changing the permission to Denied, new connections are still allowed to be opened without any prompts. For minimal Repro, see: https://jsfiddle.net/byrd65uc/
Attachments
Radar WebKit Bug Importer
Comment 1 2023-06-05 08:54:06 PDT
youenn fablet
Comment 2 2023-07-06 01:05:53 PDT
> Landing on a page when microphone access is set to "Deny", will show "Prompt" as status It will show prompt, until the first getUserMedia call, which will be denied. At that point, permission API should show denied. > Changing the permission to Denied, new connections are still allowed to be opened without any prompts. For the page that is capturing yes. This could be fixed either at WebKit or Safari level.
youenn fablet
Comment 3 2023-07-06 02:14:30 PDT
I'll fix part of the bug in https://bugs.webkit.org/show_bug.cgi?id=258915, provided that WebKit gets notified of permission change.
Note You need to log in before you can comment on or make changes to this bug.