Note that muting is temporary, whereas revoking permission permanently ends those video tracks, leaving the page unable to resume without re-asking for permission when it comes back into foreground, which will be denied until the page is navigated/reloaded. I think there are three things we should do here: 1. Temporarily mute/unmute camera's video track(s) when app goes into/out of background, for parity with Chrome for Android. Test it [here](https://jan-ivar.github.io/dummy/gum_events.html). 2. When users click on the _"๐น Firefox Nightly: Camera and microphone are on"_ notification, take them to the (first) offending tab (like Desktop does in response to clicks on our privacy indicators somewhere on the user's desktop), 3. 2 + when users click on the _"๐น Firefox Nightly: Camera and microphone are on"_ notification, pop up page info UX for the tab the user is taken to (e.g. like clicking ๐ in url on Desktop) where they can quickly revoke that page's camera+mic permissions. For #1 we need to expose a platform API to mute/unmute all camera tracks, since nothing does that yet AFAIK. For #3 can we reuse the platform API Desktop [uses to revoke permission](https://searchfox.org/mozilla-central/rev/89814940895946b48b4c04c702efd2c676ec8e7e/browser/base/content/browser-siteIdentity.js#1642,1651) from ๐ in the url bar?
Bug 1564451 Comment 20 Edit History
Note: The actual edited comment in the bug view page will always show the original commenterโs name and original timestamp.
Note that muting is temporary, whereas revoking permission permanently ends those video tracks, leaving the page unable to resume without re-asking for permission when it comes back into foreground, which will be denied until the page is navigated/reloaded. I think there are three things we should do here: 1. Temporarily mute/unmute camera's video track(s) when app goes into/out of background, for parity with Chrome for Android. Test it [here](https://jan-ivar.github.io/dummy/gum_events.html). 2. When users click on the _"๐น Firefox Nightly: Camera and microphone are on"_ notification, take them to the (first) offending tab (like Desktop does in response to clicks on our privacy indicators somewhere on the user's desktop), 3. 2 + when users click on the _"๐น Firefox Nightly: Camera and microphone are on"_ notification, pop up page info UX for the tab the user is taken to (e.g. like clicking ๐ in url on Desktop) where they can quickly revoke that page's camera+mic permissions. For #1 we need to expose a platform API to mute/unmute all camera tracks, since nothing does that yet AFAIK. For #3 can we reuse the platform API Desktop [uses to revoke permission](https://searchfox.org/mozilla-central/rev/89814940895946b48b4c04c702efd2c676ec8e7e/browser/base/content/browser-siteIdentity.js#1642,1651) (which uses [this](https://searchfox.org/mozilla-central/search?q=getUserMedia%3Arevoke&case=true&path=)) from ๐ in the url bar?