Bug 1680793 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.

When we have an active sharing state for WebRTC and then begin sharing geolocation, `updateBrowserSharing` sets the `tab._sharingState.webRTC = null`:
https://searchfox.org/mozilla-central/rev/6bb59b783b193f06d6744c5ccaac69a992e9ee7b/browser/base/content/tabbrowser.js#1392

This results in the microphone/camera indicator in the tab, the identity section and  in the siteIdentity  popup permission list to disappear. The global WebRTC indicator is not affected.

In theory this could be abused, but it's rather an edge case. The user would have to first accept the webRTC sharing permission prompt and then the geolocation prompt.
When we have an active sharing state for WebRTC and then begin sharing geolocation, `updateBrowserSharing` resets the webRTC sharing state: `tab._sharingState.webRTC = null`:
https://searchfox.org/mozilla-central/rev/6bb59b783b193f06d6744c5ccaac69a992e9ee7b/browser/base/content/tabbrowser.js#1392

This results in the microphone/camera indicator in the tab, the identity section and  in the siteIdentity  popup permission list to disappear. The global WebRTC indicator is not affected.

In theory this could be abused, but it's rather an edge case. The user would have to first accept the webRTC sharing permission prompt and then the geolocation prompt.

Back to Bug 1680793 Comment 0