Closed Bug 1642807 Opened 3 years ago Closed 23 days ago

The last shared screen remains blocked on Jitsi meeting after stop sharing the screen by using the "Stop Sharing" button


(Web Compatibility :: Desktop, defect, P2)



(firefox78 affected, firefox79 affected, firefox80 affected)

Tracking Status
firefox78 --- affected
firefox79 --- affected
firefox80 --- affected


(Reporter: mconley, Unassigned)


(Blocks 3 open bugs)


(Keywords: webcompat:site-wait, Whiteboard: [jitsi-meet])


The last shared screen remains blocked on Jitsi meeting after stop sharing the screen

Affected versions

Beta v77.0b9

Affected platforms

Windows 7
Windows 10

Steps to reproduce
privacy.webrtc.allowSilencingNotifications - true
privacy.webrtc.legacyGlobalIndicator - false

Engage in a video conference on Jitsi
Allow the microphone or camera sharing.
Also, start sharing the entire screen.
Click on Stop Sharing button from Global Sharing Overlay.

Actual result
The last shared screen remains blocked on Jitsi meeting after you click Stop Sharing button

Expected result
You should not see the last shared screen if you stop sharing your screen.

Additional notes

This issue was found to reproduce with Jitsi and Windows 10 and 7.
This description might suffer updates before the feature test run is completed.

From dbodea:

To provide more information, the issue occurs when using the "Stop Sharing" button from the "Global Sharing Indicator or when removing the screen-sharing permission from the Site Information panel.
It was also reproduced on Ubuntu 18.04.4LTS and MacOS 10.12.6 by force-closing the screen-sharing permission from the site information panel.
However, it does not occur when stopping screen-share from the Jitsi's "Share your screen" button.
Furthermore, it was also reproduced in Release v76.0.1 so, in its essence, it is not a regression issue, but a previously existing one, however, the
"Stop Sharing" button is a feature implementation that is linked to the permissions panel.
Also found JumpChat web-app to reproduce this issue, both with the "Stop Sharing" button or by the web-apps "Share Screen" button (since it does not appear to have another way to stop the screen sharing).

From pbz:

I don't think this is a (recent) regression. I can reproduce it with Firefox 60 even. Also, when I run the same pattern on Google Meet it works fine.

The frontend seems to trigger the screenshare revoke properly, I can trace the call all the way to getUserMedia:revoke:

So this is either a bug in Jitsi or in our WebRTC implementation. Moving to WebRTC.

S1 or S2 bugs need an assignee - could you find someone for this bug?

Flags: needinfo?(dminor)

I'll investigate, although this sounds more like an S3 to me.

Assignee: nobody → dminor
Severity: S2 → S3
Flags: needinfo?(dminor)
Component: WebRTC → WebRTC: Audio/Video

This reproduces with just The screen sharing does stop, but we continue to display the last image captured. When Jitsi's "Share your screen" is used to stop sharing, it switches back to the camera, so there is something to replace the last image.

Maybe we should generate a black frame somewhere when we stop screensharing? Jib, what do you think of this?

Flags: needinfo?(jib)

Jitsi needs to listen for the ended event on the screen-sharing track on the sending side, which is fired when permission is revoked by the user in the Firefox UX, and then terminate screen-sharing.

FWIW the same event is fired in Chrome if the user is sharing an application window and closes it (bug 1615282).

You can test it here

This sounds like something we should reach out to Jitsi about - let's see if our WebCompat team has contacts there.

Component: WebRTC: Audio/Video → Desktop
Product: Core → Web Compatibility
Version: 77 Branch → unspecified

I reached out to Jitsi by email and they're experimenting with adding a handler for ended on their side.

Thanks for reaching out Dan.

Jitsi is looking into a workaround on their side. I'm going to keep this bug open because we might want to generate a black frame on our side as a workaround.

This issue is reproducible on Hangouts(Windows 10x64) on Firefox 78.0b8. See this similar issue:

This issue has been fixed on

No, it hasn't been fixed. It is still reproducing just like before. Confirmed on Windows 10 and Mac OS 10.12.6, on Nightly v80.0a1, Beta v79.0b5 and Release v78.0.1.

It has been fixed on Please note that it doesn't switch to the camera until the page has focus, so you need to click on the page to get camera access again.

From my point of view, the bug still reproduces. At least 2 clicks are needed form the presenter in order for the spectators to stop seeing the last shared screen. Furthermore, if the page is simply killed, the last image remains blocked until restart.

Whiteboard: [jitsi-meet]
Assignee: dminor → nobody

I was not able to reproduce the issue. Stopping a shared screen works as expected:
Mike, is the issue still reproducible on your side?

Tested with:

Browser / Version:Firefox Release 100.0.2 (64-bit)/ Firefox Nightly 102.0a1 (2022-05-29) (64-bit)
Operating System: Windows 10 PRO x64

Flags: needinfo?(mconley)

Closing this as incomplete since we didn't get any response from Mike Conley.

Note: I was not able to reproduce this issue either.

Tested on:
Operating system: Windows 10
Firefox version: Nightly 110.0a1 (2023-01-12)

Closed: 23 days ago
Resolution: --- → INCOMPLETE

Sorry! This one slipped off my radar. No, I haven't seen this since. INCOMPLETE is the right call.

Flags: needinfo?(mconley)
You need to log in before you can comment on or make changes to this bug.