WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
251906
Use InvalidStateError if user gesture is missing for getDisplayMedia
https://bugs.webkit.org/show_bug.cgi?id=251906
Summary
Use InvalidStateError if user gesture is missing for getDisplayMedia
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
Add attachment
proposed patch, testcase, etc.
beaufort.francois
Comment 1
2023-02-08 01:01:10 PST
I believe this should fix it:
https://github.com/WebKit/WebKit/compare/main...beaufortfrancois:WebKit:patch-1
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
<
rdar://problem/105167105
>
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
Pull request:
https://github.com/WebKit/WebKit/pull/25431
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.
Top of Page
Format For Printing
XML
Clone This Bug