window sharing indicator on the URL bar stays on after stream.stop has been called

VERIFIED FIXED in Firefox 33



5 years ago
5 years ago


(Reporter: philipp+bugzilla, Assigned: florian)


33 Branch
Firefox 34
Dependency tree / graph
Bug Flags:
firefox-backlog +
qe-verify +

Firefox Tracking Flags

(firefox33 verified, firefox34 verified)




(1 attachment, 1 obsolete attachment)

go to the URL, click the "window" button to share first the camera and then a window.

Note that sharing indicators appear for both the camera and the screen, both in the address bar and the separate sharing indicator.

Open the javascript console, stop the screen using 

The screensharing icon disappears from the sharing indicator (good).
The screensharing icon does not disappear from the address bar. Instead, the camera icon disappears.
Florian, Marco --  We want to fix this for screensharing in Fx 33.  Can one of you move this to the Firefox backlog and ask for it to be prioritized?
Component: WebRTC: Audio/Video → General
Flags: needinfo?(mmucci)
Flags: needinfo?(florian)
Product: Core → Firefox
Version: 34 Branch → 33 Branch
Flags: needinfo?(mmucci)
Flags: needinfo?(florian)
Flags: firefox-backlog+
Whiteboard: [sceensharing-uplift]
Posted patch WIP1 (obsolete) — Splinter Review
This is enough to fix the bug as reported, but code inspection shows that there are variations of the same bug.
Assignee: nobody → florian
Points: --- → 3
QA Whiteboard: [qa+]
Iteration: --- → 34.2
QA Contact: florin.mezei
Posted patch Patch v2Splinter Review
I modified a bit to test this (added the 3 buttons that contain the word "then").

I think this covers all cases and makes the code a bit less fragile.
Attachment #8472438 - Attachment is obsolete: true
Attachment #8472644 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8472644 [details] [diff] [review]
Patch v2

Review of attachment 8472644 [details] [diff] [review]:

::: browser/modules/webrtcUI.jsm
@@ +664,5 @@
> +    let notification =
> +      chromeWin.PopupNotifications.getNotification("webRTC-sharingDevices", aBrowser);
> +    if (notification)
> +      chromeWin.PopupNotifications.remove(notification);
> +  }

This and the next block are pretty similar... not sure if it doesn't make sense to try and unify them rather than duplicate what is essentially identical code. OTOH, can't think of a good way to do that, and it's only a few lines, so meh.
Attachment #8472644 - Flags: review?(gijskruitbosch+bugs) → review+
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Iteration: 34.2 → 34.3
QA Whiteboard: [qa+]
Flags: qe-verify+
Reproduced bug on Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0
Verified fix on Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Awaiting confirmation in another platform.
QA Whiteboard: [bugday-20140820]
OS: Windows 7 → All
I've reproduced the original issue on (comment 0) and (comment 3), using Nightly from August 11 on Windows 7 x64.

On, I saw the issue for the following cases:
- Video then Window
     * when using video.mozSrcObject.stop()
- Window then Video
     * when using video.mozSrcObject.stop()
     * when using localVideo.mozSrcObject.stop()
- Audio then Video - no issue

In all cases the Video or Screen sharing icon was removed from the sharing indicator, but not from the address bar.

The steps to reproduce were:
- ensured media.getusermedia.screensharing.enabled = true (on by default on 34 Nightly now)
- set media.getusermedia.screensharing.allowed_domains = "" or ""
- opened or
- started Window ( or Video then Window / Window then Video / Audio then Video (
- closed the streams using thestream.stop() (for or video.mozSrcObject.stop()/localVideo.mozSrcObject.stop() in different order (for

Using the latest Nightly (BuildID=20140820030202) on Win 7 x64 and Mac OS X 10.9.4, I got no more issues: the Video/Screen sharing icon was removed from both the sharing indicator and the address bar within 1-2 seconds.
Comment on attachment 8472644 [details] [diff] [review]
Patch v2

Approval Request Comment
[Feature/regressing bug #]: bug 1037405
[User impact if declined]: Screensharing icons may stay in the URL bar even after the stream has been stopped, and confuse the user.
[Describe test coverage new/current, TBPL]: In m-c, verified by QA.
[Risks and why]: low.
[String/UUID change made/needed]: none.
Attachment #8472644 - Flags: approval-mozilla-aurora?
Attachment #8472644 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified in latest Firefox 33 Aurora (BuildID=20140827004002) on Windows 7 x64, Mac OS X 10.8.5 and Ubuntu 13.04 x64. I tested the same things as in comment 8, with no issues encountered.
Whiteboard: [sceensharing-uplift]
You need to log in before you can comment on or make changes to this bug.