Re:TIL: You can access a user’s camera with just HTML
by lucideer on Tuesday September 06, 2022 @12:29PM
(#32739456)
100%
And also doing this declaratively makes it so much easier to secure & build well-thought-out privacy & consent UX around.
An imperative API has so many variations on implementation approach for the end-developer / API consumer that the combinatorics become much more challenging for browser implementers.
(obviously imperative APIs for doing this already exist, but the existence of this declarative API at least makes limiting imperative API access less draconian/severe as a measure).
And also doing this declaratively makes it so much easier to secure & build well-thought-out privacy & consent UX around.
An imperative API has so many variations on implementation approach for the end-developer / API consumer that the combinatorics become much more challenging for browser implementers.
(obviously imperative APIs for doing this already exist, but the existence of this declarative API at least makes limiting imperative API access less draconian/severe as a measure).