[Webkit-unassigned] [Bug 259823] New: Calling getDisplayMedia() the first time results in an error.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 4 03:59:34 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=259823
Bug ID: 259823
Summary: Calling getDisplayMedia() the first time results in an
error.
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: macOS 13
Status: NEW
Severity: Major
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mawojtcz at cisco.com
CC: youennf at gmail.com
When we call getDisplayMedia() the user sees the UI to allow screen or window sharing, user chooses screen sharing and then getDisplayMedia() rejects with the error:
"The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission."
After that, if we call the same API again, it works fine. If the user then closes Safari and starts it again, he/she will get the error again.
Here is a simple js fiddle for reproducing the issue:
https://jsfiddle.net/bazyl/zvfuh1n0/
steps:
1. run the js fiddle in Safari
2. press the "start screen share button"
3. you will see the safari UI to allow screen or window sharing, choose screen
4. at this point you should see a "SUCCESS" string beneath the button, but instead you will see "ERROR" and errors in the console
5. pressing the button again works fine - this time you get "SUCCESS"
This issue is not 100% reproducible, some users can't reproduce it at all, some others see it very often (about 50% of the time)
Also, it usually take a long time for getDisplayMedia() to resolve with the error (up to 1 minute).
This has been tested and seen on the following Safari versions on macOS:
Version 16.5.1 (18615.2.9.11.7)
Version 16.6 (18615.3.12.11.2)
Version 17.0 (19616.1.17.11.4)
This is affecting the webex web app (from web.webex.com)
--
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/20230804/d6e295c5/attachment.htm>
More information about the webkit-unassigned
mailing list