Closed Bug 1616600 Opened 4 years ago Closed 4 years ago

The Firefox process will not shut down after closing the browser if the Camera and Microphone are allowed in different tabs

Categories

(Firefox :: Site Permissions, defect, P2)

Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
Firefox 75
Tracking Status
firefox-esr68 --- unaffected
firefox73 --- unaffected
firefox74 + verified
firefox75 + verified

People

(Reporter: rdoghi, Assigned: enndeakin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached video 2020-02-19_15h06_56.mp4

[Affected versions]:
Nightly 75.0a1

[Affected platforms]:
Platforms: all

Steps :

  1. Open the Firefox Browser and https://jsfiddle.net/jib1/r60bzmrs/
  2. Alow the camera permission prompt.
  3. Open the Firefox Browser and https://jsfiddle.net/jib1/r60bzmrs/ in a second tab.
  4. Close the Firefox process.

Expected Results :
The Firefox process should close without issues.
Actual Results :
The Firefox process will not shutdown upon closing the browser.

Note: Please note that the same issue occurs with the microphone permission (or both at the same time) (https://jsfiddle.net/jib1/59og5vhn/).
After the user allows the microphone to start in two separate tabs and closing the browser the Firefox process will not shutdown.

This issue only occurs on Windows and Ubuntu, it seems Mac will shutdown the process if you quit the browser with right click > Quit.

I've also performed a Mozregression on this issue and here are the results :
Last known GOOD build:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=ea063dbb6c1b5cdfedbf232e234a7f9c492b44af&tochange=cf63a0b7bd7d7110fb917cf158097a6495c65ccd
First known BAD build:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d827ca47ac5bdc005f6854c2534cd0c4bcd37db0&tochange=cf63a0b7bd7d7110fb917cf158097a6495c65ccd

Maybe a regression from Bug 1601301?

Flags: needinfo?(enndeakin)
Priority: -- → P2

[Tracking Requested - why for this release]: Regression causing shutdown hang.

Marking 74 as affected based on the regression range, Rares can you double check this affects the latest 74 beta build?

Flags: needinfo?(rares.doghi)
Regressed by: 1601301
Has Regression Range: --- → yes
Component: WebRTC: Audio/Video → Site Permissions
Product: Core → Firefox

Yes, this issue only affects Firefox Beta 74 and Nightly 75.

Flags: needinfo?(rares.doghi)

Have a fix here. The issue is caused only when webrtc is used in subframes, where the indicator window is not being closed.

The underlying cause can also manifest on Mac. Closing the window leaves the sharing items on the Window menu, whereas they should be removed when no more sharing is used.

Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Flags: needinfo?(enndeakin)

Neil, it seems the patch is r+, any reason not to land it? Our last betas for uplift are tomorrow and Friday, could we uplift it? Thanks

Flags: needinfo?(enndeakin)
Pushed by neil@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0042f4581946
properly update the tab-indicator state when a tab is closed; it previously wasn't being removed properly from the per-tab indicator map when the indicator was from a subframe,r=johannh
Flags: needinfo?(enndeakin)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75

This issue is Verified as Fixed in our latest Nightly build 75.0a1 (2020-02-26) on Windows 10 and Ubuntu 18.04.

Please request beta uplift asap so we can avoid shipping the regression in 74.

Flags: needinfo?(enndeakin)

Comment on attachment 9127926 [details]
Bug 1616600, properly update the tab-indicator state when a tab is closed; it previously wasn't being removed properly from the per-tab indicator map when the indicator was from a subframe,r=johannh

Beta/Release Uplift Approval Request

  • User impact if declined: When webrtc (video, screensharing) is used in some pages, closing the window doesn't close the indicator popup, leading users to think that the browser won't shutdown.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Just cleans up some state properly.
  • String changes made/needed: None
Flags: needinfo?(enndeakin)
Attachment #9127926 - Flags: approval-mozilla-beta?

Comment on attachment 9127926 [details]
Bug 1616600, properly update the tab-indicator state when a tab is closed; it previously wasn't being removed properly from the per-tab indicator map when the indicator was from a subframe,r=johannh

Low risk, covered by tests, uplift approved for 74 beta 9, thanks.

Attachment #9127926 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This issue is verified as fixed in our latest Beta build 74.0b9 on Windows 10 and Ubuntu 18.04.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: