Closed tab in Focus/Fenix stays alive if it was playing audio/video/media in the background
Categories
(Focus :: General, defect)
Tracking
(Not tracked)
People
(Reporter: robwu, Unassigned)
Details
Steps to reproduce
- Open Firefox Focus (or Fenix)
- Navigate to https://www.bbc.co.uk/sounds/play/w3ct5zpf and click play
- Long press any link to open a new tab and focus it
- Close the other tab (from step 2). It does not matter how: e.g. closing the individual tab via its X in the triple dot menu, the "Close other tabs" in the triple dot menu, or even the Trash button that ought to clear all tabs.
This is not specific to bbc; I tried a random video site (Dailymotion) and it reproduces there as well.
Expected behavior
When I close the tab it should disappear and stop playing audio.
Actual behavior
Although the tab is visually closed and not visible in the UI, the audio continues playing.
In fact, the browser window is still around. If I attach a debugger via about:debugging
on desktop, Main process, and query all windows with Array.from(Services.wm.getEnumerator(""))
, I see that the supposedly closed tab is still in memory.
I confirmed that it is the same window by looking up its URL with:
Array.from(Services.wm.getEnumerator(""), w => w.browser.currentURI.spec)
The only way to close the session is to force quit the app.
Device information
- Focus version: 136.0 (Build #390581821 🦎 136.0-20250227124745), hg-2da0b1797683
- Android device model: Pixel 8
- Android OS version: Android 15
Any additional information?
I can also reproduce this on Fenix, so it may be an issue in A-C or GeckoView.
Updated•5 hours ago
|
Comment 2•5 hours ago
|
||
Should be fixed already in 136.0.1
Description
•