Bug 251906

Summary: Use InvalidStateError if user gesture is missing for getDisplayMedia
Product: WebKit Reporter: beaufort.francois
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: steve.mieskoski+webkit, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   

beaufort.francois
Reported 2023-02-08 00:58:42 PST
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
Attachments
beaufort.francois
Comment 1 2023-02-08 01:01:10 PST
youenn fablet
Comment 2 2023-02-08 01:08:12 PST
Thanks Francois, Do you want to make a PR, or should we take over?
Radar WebKit Bug Importer
Comment 3 2023-02-08 01:08:34 PST
beaufort.francois
Comment 4 2023-02-08 01:09:52 PST
Please take over ;)
youenn fablet
Comment 5 2024-03-04 10:04:45 PST
EWS
Comment 6 2024-03-05 02:43:35 PST
Committed 275685@main (ab0993157de8): <https://commits.webkit.org/275685@main> Reviewed commits have been landed. Closing PR #25431 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.