[Webkit-unassigned] [Bug 257710] New: Permissions API reports wrong permissions for microphone

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 5 05:30:42 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=257710

            Bug ID: 257710
           Summary: Permissions API reports wrong permissions for
                    microphone
           Product: WebKit
           Version: Safari 16
          Hardware: All
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jk at numfum.com
                CC: cdumez at apple.com

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/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230605/c743146f/attachment.htm>


More information about the webkit-unassigned mailing list