Closed Bug 1953490 Opened 5 hours ago Closed 5 hours ago

Closed tab in Focus/Fenix stays alive if it was playing audio/video/media in the background

Categories

(Focus :: General, defect)

All
Android
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1950220

People

(Reporter: robwu, Unassigned)

Details

Steps to reproduce

  1. Open Firefox Focus (or Fenix)
  2. Navigate to https://www.bbc.co.uk/sounds/play/w3ct5zpf and click play
  3. Long press any link to open a new tab and focus it
  4. 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.

Status: NEW → RESOLVED
Closed: 5 hours ago
Duplicate of bug: 1950220
Resolution: --- → DUPLICATE

Should be fixed already in 136.0.1

You need to log in before you can comment on or make changes to this bug.