Open Bug 1616731 Opened 5 years ago Updated 3 years ago

Fenix should ask user for camera/mic before asking OS.

Categories

(GeckoView :: General, defect, P3)

Unspecified
Android
defect

Tracking

(Not tracked)

People

(Reporter: jib, Unassigned)

Details

(Whiteboard: [geckoview:2023?])

STRs:

  1. (If not a clean install, go to ⚙️ / Apps / Firefox Nightly (Preview) / Permissions, and turn off Camera and Microphone, and restart Fenix)
  2. Open https://jan-ivar.github.io/dummy/gum.html in Fenix

Expected results:

  1. Allow jan-ivar.github.io to use your camera and microphone? Don't allow / Allow (← click Allow)
  2. Allow Firefox Nightly to take pictures and record video? Deny / Allow

Actual results:

  1. Allow Firefox Nightly to take pictures and record video? Deny / Allow (← click Allow)
  2. Allow jan-ivar.github.io to use your camera and microphone? Don't allow / Allow

Reasons:

  1. Gives the user context for why Firefox is suddenly asking for camera/mic upfront (e.g. which site will receive access).
  2. Primes user to not block Fenix forever by mistake.
  3. It's what Fennec and Chrome do.

This is UI behavior which makes it a Android Components or Fenix issue.

This has come up before, and the reason this happens can be found here: https://bugzilla.mozilla.org/show_bug.cgi?id=1527056#c13

If you'd like to change this that's probably fine, but AFAIK GV is mostly just proxying the permission requests from the WebRTC impl.

Priority: -- → P2
Rank: 17
Flags: needinfo?(dminor)

Bug 1610939 removed the permissions check as part of enumerate devices that was mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1527056#c13. Even with those changes I'm still seeing the Android permissions prompt before the Firefox prompt, but there might be more we can do about it now.

Flags: needinfo?(dminor)
Priority: P2 → P3
Whiteboard: [geckoview:2023?]
Severity: normal → S3
Rank: 17 → 333
You need to log in before you can comment on or make changes to this bug.