Camera Permission Issue

I just spent a couple of hours trying to trace a bug that was a result of permission checks with firefox only.

Camera Permission prompts do not work as expected but they can suddenly start working (based on external factors, like AI or Remote API’s).

I created a basic react component to test it:

https://gist.github.com/mbostwick/71ac4138cf03ca4a74b39268ccf49994

I ran on localhost https. Things work correctly on chrome.

I went to create a ticket, but local host bugs are not allowed. It suddenly started working locally with out me changing any code.

I wish we could get better viability into permission failures locally.

My suggestion would be to:

  1. write a vanilla javascript test case with your issue.
  2. use about:logging, select the “WebRTC” preset, then click on “start capture” at the top
  3. Reproduce the issue.
  4. go back at your tab with about:logging, click “stop capture”
  5. Upload the captured profile
  6. Copy the link of the captured profile in a new bugzilla bug, along with your vanilla javascript test case

Very often these issues come from a bad interaction between some OS, some device and Firefox, and they’re very difficult to diagnose without more information, but capturing a profile with about:logging can provide us this information.

Thanks!

1 Like