00:06
<sideshowbarker>
looking at https://github.com/mdn/content/issues/15030, to test navigator.mediaDevices.getUserMedia(), any advice on how I can emulate a system without a camera and microphone?
00:08
<sideshowbarker>
I want to make navigator.mediaDevices.getUserMedia() throw a NotFoundError error at (I guess) step 9.3.1 of https://w3c.github.io/mediacapture-main/#dom-mediadevices-getusermedia
00:11
<miketayl_r>
sideshowbarker: you might send Permissions-Policy: camera=(), microphone=() and try in chrome
00:11
<miketayl_r>
in theory that should work
00:11
<miketayl_r>
(maybe it throws some other error tho... like NotAllowedError)
00:12
<miketayl_r>
hm, step 11 suggests that
00:12
<sideshowbarker>
thanks β€” will try it
00:12
<miketayl_r>
sideshowbarker: it looks like it should throw the wrong error
00:12
<sideshowbarker>
ah OK, yeah
00:12
<miketayl_r>
next up: get a screwdriver... :P
00:16
<sideshowbarker>
I thought maybe I could change my OS system settings on my laptop to completely disable my microphone and camera β€” but macOS at least does not provide a way to do that, as far as I can see
00:17
<miketayl_r>
hmmm
00:18
<sideshowbarker>
ah wait, maybe this: https://support.apple.com/guide/mac-help/control-access-to-the-microphone-on-mac-mchla1b1e1fe/mac
00:18
<miketayl_r>
this kinda looks like the right thing to poke at
00:18
<sideshowbarker>
yeah, that :)
00:18
<miketayl_r>
good idea
00:18
<sideshowbarker>
will try it
00:19
<sideshowbarker>
hope it’s reversible πŸ˜†
00:22
<sideshowbarker>
incidentally, I notice that Element/Matrix now have (beta) support for (Slack-like) threaded replies/conversations
00:22
<sideshowbarker>
wonder how long that’s been there
00:22
<miketayl_r>
oh, interesting
00:23
<sideshowbarker>
OK yeah, that worked πŸŽ‰ I got it to throw the NotFoundError I wanted
00:57
<sideshowbarker>
OK, raised https://github.com/mdn/content/pull/15038 β€” thanks much, miketayl_r