News for hackers. Stuff that matters.
Re:The <Usermedia> HTML Element by saagarjha on Wednesday July 01, 2026 @08:25PM (#48754872)
How do you see it being abused?
Re:The <Usermedia> HTML Element by unfocso on Wednesday July 01, 2026 @08:31PM (#48754914)
"Press here to view the content", there's already plenty in the wild that grant access to notifications with deceptive buttons.
Re:The <Usermedia> HTML Element by sheept on Wednesday July 01, 2026 @09:24PM (#48755278)
The similar <geolocation> element has clickjacking prevention enforced by the browser[0], and even if the website finds a way around it, it still shows the normal permission prompt.[1]

[0]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLGeoloca...

[1]: https://mdn.github.io/dom-examples/geolocation-element/basic... (requires Chromium)

Re:The <Usermedia> HTML Element by ameliaquining on Wednesday July 01, 2026 @10:51PM (#48755903)
To be sure, evil websites will still be able to put misleading content around the element, and hope that the least savvy users will be fooled or will click the button out of confusion. But they can already do that with the existing JavaScript-triggered permission prompt.
Re:The <Usermedia> HTML Element by akersten on Wednesday July 01, 2026 @11:19PM (#48756099)
It's kind of insane to me that effort was put into all these fuzzy make-your-site-randomly-not-work heuristics and at the end of the day it still pops open the permission dialog anyway. It's like the worst of both worlds
Re:The <Usermedia> HTML Element by cwmoore on Wednesday July 01, 2026 @08:58PM (#48755058)
“targeted and functional controls for accessing camera and microphone streams”
Re:The <Usermedia> HTML Element by rho138 on Thursday July 02, 2026 @05:07AM (#48758569)
The immediate thought is re-prompt spam, for eternity, even with an appropriate signal sent from the user agent. This is the same as cookie banners - keep flushing the cookies after each session if the user agent doesn’t accept and wait until they do.

It’s a techbros wet dream on consent. Just keep asking until they say yes.

Re:The <Usermedia> HTML Element by echoangle on Thursday July 02, 2026 @05:42AM (#48758843)
But it’s only showing a button and then the prompt when you click the button. Unless you click the button, it can’t spam you with permissions.
Re:The <Usermedia> HTML Element by timando on Thursday July 02, 2026 @07:13AM (#48759594)
Just make the button transparent over the whole site and make it so you have to accept before it will let you do anything.
Re:The <Usermedia> HTML Element by echoangle on Thursday July 02, 2026 @08:03AM (#48760112)
Opacity is fixed at 1. and obviously you can just break your own site until you get permission, but then people will probably leave before they give your website which has no business accessing the camera permission.