Open Bug 1939656 Opened 9 months ago Updated 8 months ago

Youtube videos play after navigating off the page

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 133
defect

Tracking

()

People

(Reporter: u757928, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Steps to reproduce:

  1. Go to YouTube
  2. Click "Shorts" in the navigation bar on the left side
  3. Click another button quickly (like "Home" or "Subscriptions")

Actual results:

A video starts playing when I go to the Shorts feed, then when I click another button (it has to be quick. It's usually the result of misclicking "Shorts" when I meant to click "Subscriptions"), I can still hear the video in the background while I'm browsing other things, with no way to stop it short of reloading the tab.

Expected results:

The video should have stopped upon loading a new page.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

I can reproduce the issue on Nightly135.0a1 Windows11 24H2.
Profiler : https://share.firefox.dev/41RjSfn

Status: UNCONFIRMED → NEW
Ever confirmed: true

Sounds like some sort of race where we fail to cancel the shorts playback. Maybe something in media state machine mechanics?

Blocks: yt-playback
Flags: needinfo?(alwu)

I'd like to clarify it happens elsewhere, not just YouTube, but YouTube is the easiest to reproduce.

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