Bug 1703674 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

By design, a single click clears both camera and mic together, because it's a safer, as users may forget to clear both otherwise.

But it turns out this only works when both camera and microphone are [actively capturing](https://searchfox.org/mozilla-central/rev/62135a96327f42fd1ccf8a04feb62be04b102195/browser/modules/webrtcUI.jsm#603-606,610-611,613). If only the camera or only the microphone is hot, or neither are hot, then users have to click ✖ individually for camera and microphone. This seems inconsistent, and could lead users to think they've revoked both when they didn't, which is a privacy issue, since the site can begin capturing again unprompted from the device that wasn't revoked.

STRs:
 1. Open https://jan-ivar.github.io/dummy/gum_video_button_refresh.html
 2. Click `Start Both!`, check `☑ Remember this decision` and click `Allow`
 3. Click `Stop!`
 4. *(Optional: Click either `Start Mic!` or `Start Cam!`, but not both)*
 5. Click the 🎛️ in the URL bar to open the permissions drop-down and click the first ✖

Expected result:
- Both camera and microphone "Allowed" permissions disappear

Actual result:
- Only the microphone "Allowed" permission disappears. Camera is still there.

Discovered from [failing test](https://treeherder.mozilla.org/jobs?repo=try&revision=904ad2ddeb3e78c1be9a79996cf38b74f624fb5c&selectedTaskRun=AY4wQatCROijeOlt3lMeEg.0) in bug 1697487:
> ```
> TEST-UNEXPECTED-FAIL | browser/base/content/test/webrtc/browser_devices_get_user_media.js | no sharing indicator on the control center icon
> ```
By design, a single click clears both camera and mic together, because it's safer, as users may forget to clear both otherwise.

But it turns out this only works when both camera and microphone are [actively capturing](https://searchfox.org/mozilla-central/rev/62135a96327f42fd1ccf8a04feb62be04b102195/browser/modules/webrtcUI.jsm#603-606,610-611,613). If only the camera or only the microphone is hot, or neither are hot, then users have to click ✖ individually for camera and microphone. This seems inconsistent, and could lead users to think they've revoked both when they didn't, which is a privacy issue, since the site can begin capturing again unprompted from the device that wasn't revoked.

STRs:
 1. Open https://jan-ivar.github.io/dummy/gum_video_button_refresh.html
 2. Click `Start Both!`, check `☑ Remember this decision` and click `Allow`
 3. Click `Stop!`
 4. *(Optional: Click either `Start Mic!` or `Start Cam!`, but not both)*
 5. Click the 🎛️ in the URL bar to open the permissions drop-down and click the first ✖

Expected result:
- Both camera and microphone "Allowed" permissions disappear

Actual result:
- Only the microphone "Allowed" permission disappears. Camera is still there.

Discovered from [failing test](https://treeherder.mozilla.org/jobs?repo=try&revision=904ad2ddeb3e78c1be9a79996cf38b74f624fb5c&selectedTaskRun=AY4wQatCROijeOlt3lMeEg.0) in bug 1697487:
> ```
> TEST-UNEXPECTED-FAIL | browser/base/content/test/webrtc/browser_devices_get_user_media.js | no sharing indicator on the control center icon
> ```
By design, a single click clears both camera and mic together, because it's safer, as users may forget to clear both otherwise.

But it turns out this only works when both camera and microphone are [actively capturing](https://searchfox.org/mozilla-central/rev/62135a96327f42fd1ccf8a04feb62be04b102195/browser/modules/webrtcUI.jsm#603-606,610-611,613). If only the camera or only the microphone is hot, or neither are hot, then users have to click ✖ individually for camera and microphone. This seems inconsistent, and could lead users to think they've revoked both when they didn't, which is a privacy issue, since the site can begin capturing again unprompted from the device that wasn't revoked.

STRs:
 1. Open https://mozilla.github.io/webrtc-landing/enumerate.html
 2. Click `Start Both!`, check `☑ Remember this decision` and click `Allow`
 3. Click `Stop!`
 4. *(Optional: Click either `Start Mic!` or `Start Cam!`, but not both)*
 5. Click the 🎛️ in the URL bar to open the permissions drop-down and click the first ✖

Expected result:
- Both camera and microphone "Allowed" permissions disappear

Actual result:
- Only the microphone "Allowed" permission disappears. Camera is still there.

Discovered from [failing test](https://treeherder.mozilla.org/jobs?repo=try&revision=904ad2ddeb3e78c1be9a79996cf38b74f624fb5c&selectedTaskRun=AY4wQatCROijeOlt3lMeEg.0) in bug 1697487:
> ```
> TEST-UNEXPECTED-FAIL | browser/base/content/test/webrtc/browser_devices_get_user_media.js | no sharing indicator on the control center icon
> ```

Back to Bug 1703674 Comment 0