Closed Bug 1950220 Opened 16 days ago Closed 5 days ago

Tab continues to play video after closing tab (YouTube)

Categories

(Fenix :: Media, defect)

Firefox 136
All
Android
defect

Tracking

(firefox136+ verified, firefox137+ verified, firefox138+ verified)

VERIFIED FIXED
138 Branch
Tracking Status
firefox136 + verified
firefox137 + verified
firefox138 + verified

People

(Reporter: detlevcm, Assigned: boek)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [qa-triaged][fxdroid][group4])

Attachments

(5 files)

User Agent: Mozilla/5.0 (Android 14; Mobile; rv:136.0) Gecko/136.0 Firefox/136.0

Steps to reproduce:

Open video on YouTube, play video, close tab/move to other tab - music continues to play... - It will stop when starting another video.

Firefox
136.0b9 (Build #2016075119), hg-4b22472e79a9+
GV: 136.0-20250221091531
AS: 136.0

Running on an S23 Ultra with the January path level for both One Ui 6.1 and Google Play.
Small detail, ublock plus is used as an ad blocker in case this is important.

PS: can confirm no more stutters in audio :)

Actual results:

Music continued to play.

Expected results:

Music should habe stopped once tab was closed.

Thank you for the report!

I am unable to reproduce this issue on the latest Firefox for android Nightly 137.0a1, Beta 136.0b9, nor RC 136.0, using a Samsung Galaxy S24 (Android 14).
The video stops as soon as I leave the page, do not even have to close it.

If you can reproduce this constantly, could you provide us some logs?
If you can use adb and your device's developer settings are enabled, we can gather some logs that may be helpful for us. In case you already have enabled developer settings of your phone and connected to your computer via USB, and your device is listed when you run adb devices, then we can perform the following steps to get the logs to see if there's anything visible:

  1. Open app, go to Settings - About Firefox - tap 5 times on the logo => this enables Secret Settings.
  2. Enable Gecko logs from secret settings. This is a toggle named "Enable Gecko logs" on the settings screen once secret settings is enabled.
  3. This will kill the app to apply the setting, and you'll need to relaunch it.
  4. Then, from desktop open Command line and run adb logcat => logs.txt on the terminal and leave it running in the background.
  5. Reproduce the bug.
  6. In your running terminal (for adb logcat operation) press ctrl+c and close the terminal window.
  7. Upload the logs.txt to the issue.
Severity: -- → S3
Flags: needinfo?(detlevcm)
Summary: tab continues to play video after closing tab (YouTube) → Tab continues to play video after closing tab (YouTube)
Whiteboard: [qa-triaged]
Attached file firefoxy_bug.tar.gz

Compressed log captured while reproducing the bug - as requested

Flags: needinfo?(detlevcm)

I was worried that the bug wont reproduce, but it is still present.

It is even weirder... - I had the audio continue to play while all tabs were closed but firefox was open, but then couldn't reproduce that while capturing a log.
However the audio continuing to play persists while multiple tabs are open. I get the impression it matters how the tab is closed and what tab one is in. Some kind of issue where certain sequences don't quite register as requested in the UI.

During the log capture, the bug was reproduced multiple times. Hopefully it contains what you need.

Hopefully this bug report helps.
(I also recently got the Samsung One UI 6.1 February patch - which apparently did not change anything.)

I can reproduce this with the following steps:

  1. Open this link on Fenix: https://nrodlzdf-a.akamaihd.net/none/phoenix/24/08/240823_phx_amerikagoldengate_logo/1/240823_phx_amerikagoldengate_logo_3328k_p15v15.mp4
  2. Move to another tab.
  3. Open the tabs trail and kill the tab playing the video

Expected result:

  • The video stops playing

Actual result:

  • The video keeps playing and we cannot even stop it as the media notification is not shown

I can reproduce it on Nightly (Fx138) and Beta (Fx137).
I cannot reproduce it on Release Fx135, but I can reproduce it on Release Fx136.

Severity: S3 → S2
Assignee: nobody → tthibaud
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged] → [qa-triaged][fxdroid][group4]
Keywords: regression
Regressed by: 1892751

:titouan we have a planned dot release for 136 that builds on Monday 2025-03-10.
If something lands today and gets a beta uplift for tomorrow's 137.0b3 build, we could include it in the dot release if it's not too risky.
Else, we have a second planned dot release that builds on 2025-03-17.

Assignee: tthibaud → jboek
Attachment #9470403 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: bug will persist in release
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: When a tab is closed, media will stop playing imediately
  • Risk associated with taking this patch: low
  • Explanation of risk level: one line change, no risk of a crash
  • String changes made/needed: no
  • Is Android affected?: yes
Attachment #9470404 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: User will continue to experience the bug in beta
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: Play media in a tab, close the tab, media should immediately stop?
  • Risk associated with taking this patch: Low
  • Explanation of risk level: One line change
  • String changes made/needed: none
  • Is Android affected?: yes
Pushed by jboek@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2a02dd3de8e2 Pauses any playing media when we queue a tab to close r=android-reviewers,matt-tighe
Attachment #9470404 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

It's not landed yet on mozilla-central but I am taking it for beta 3 so as that we can have a couple of days on beta before uplifting to release.

Status: NEW → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
Attachment #9470403 - Flags: approval-mozilla-release? → approval-mozilla-release+
See Also: → 1952922
Attached video ClosingAudioTab.mp4

This issue is verified as fixed on Firefox Nightly 138 (2025-03-10), Firefox 137 Beta 4 and Firefox RC 136.0.1 under Samsung S24 Ultra (Android 14) and Google Pixel 8 (Android 15). The audio successfully stops when following the steps provided in Comment 4. Also tested the Youtube site and no issues were encountered.

Duplicate of this bug: 1952922
Duplicate of this bug: 1953490
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: