WebKit should raise InvalidStateError, not InvalidAccessError if user gesture is missing for getDisplayMedia according to the spec. ``` If the relevant global object of this does not have transient activation, return a promise rejected with a DOMException object whose name attribute has the value InvalidStateError. ``` From https://www.w3.org/TR/screen-capture/#mediadevices-additions
I believe this should fix it: https://github.com/WebKit/WebKit/compare/main...beaufortfrancois:WebKit:patch-1
Thanks Francois, Do you want to make a PR, or should we take over?
<rdar://problem/105167105>
Please take over ;)
Pull request: https://github.com/WebKit/WebKit/pull/25431
Committed 275685@main (ab0993157de8): <https://commits.webkit.org/275685@main> Reviewed commits have been landed. Closing PR #25431 and removing active labels.