File tree 1 file changed +3
-2
lines changed
src/browser/base/zen-components
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 358
358
359
359
for ( const browser of window . gBrowser . browsers ) {
360
360
const isMatch = browser . innerWindowID === windowId ;
361
+ const isCurrentBrowser = this . _currentBrowser ?. browserId === browser . browserId ;
361
362
362
363
if ( ! isMatch ) continue ;
363
- if ( showCameraIndicator || showMicrophoneIndicator ) {
364
+ if ( ! isCurrentBrowser && ( showCameraIndicator || showMicrophoneIndicator ) ) {
364
365
const webRTC = browser . browsingContext . currentWindowGlobal . getActor ( 'WebRTC' ) ;
365
366
webRTC . sendAsyncMessage ( 'webrtc:UnmuteMicrophone' ) ;
366
367
webRTC . sendAsyncMessage ( 'webrtc:UnmuteCamera' ) ;
372
373
this . activateMediaDeviceControls ( browser )
373
374
) ;
374
375
} else this . activateMediaDeviceControls ( browser ) ;
375
- } else if ( this . isSharing && ! ( showCameraIndicator || showMicrophoneIndicator ) ) {
376
+ } else if ( isCurrentBrowser && this . isSharing && ! ( showCameraIndicator || showMicrophoneIndicator ) ) {
376
377
this . isSharing = false ;
377
378
this . _currentBrowser = null ;
378
379
this . hideMediaControls ( ) ;
You can’t perform that action at this time.
0 commit comments