Bug 251906
Summary: | Use InvalidStateError if user gesture is missing for getDisplayMedia | ||
---|---|---|---|
Product: | WebKit | Reporter: | beaufort.francois |
Component: | WebRTC | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
beaufort.francois
I believe this should fix it: https://github.com/WebKit/WebKit/compare/main...beaufortfrancois:WebKit:patch-1
youenn fablet
Thanks Francois,
Do you want to make a PR, or should we take over?
Radar WebKit Bug Importer
<rdar://problem/105167105>
beaufort.francois
Please take over ;)
youenn fablet
Pull request: https://github.com/WebKit/WebKit/pull/25431
EWS
Committed 275685@main (ab0993157de8): <https://commits.webkit.org/275685@main>
Reviewed commits have been landed. Closing PR #25431 and removing active labels.