[Webkit-unassigned] [Bug 259465] No permission prompt for getUserMedia
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 26 12:59:02 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259465
--- Comment #3 from Eric Carlson <eric.carlson at apple.com> ---
Created attachment 467124
--> https://bugs.webkit.org/attachment.cgi?id=467124&action=review
Modified test app
In your test app, `enumerateDevices` succeeds but you forgot to call `overrideLogging` so you don't inject the JS `log` function so the app isn't notified and getDevices gets a script error. You could have seen this by examining your app with the web inspector.
The call to `getUserMedia` never prompts because the webview is not visible when it is called. Exactly the same thing happens in Safari if `getUserMedia` is called from a background tab. In this situation, the call is made once the view becomes visible.
I have attached a slightly modified version of your test app that parents the webview and injects your `log` script. It also fixes a bug that made the app create three instances of the webview.
--
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/20230726/f778ff8d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list