Camera permissions for frames loaded by submitting a form

151 views
Skip to first unread message

Zbyněk Konečný

unread,
May 20, 2025, 1:13:09 PM5/20/25
to Chromium-discuss
I stumbled upon a strange behavior, and I was hoping someone could help me understand if it is a bug or not.

It seems that `allow=camera` works well for iframes that are loaded via `src` attribute, but not if they are loaded by submitting a form. To show the difference, I made this simple demo:

https://dev.geogebra.org/test/zbynek/camera-frame-bug.html

Setting `src` right before submitting the form circumvents the limitation. It feels like a bug, but maybe there are some security reasons for this behavior.

Thanks,
Zbynek

Reply all
Reply to author
Forward
0 new messages