Open Bug 2063369 Opened 3 months ago Updated 3 months ago

On restore, paused YouTube video in separate window resumes playing

Categories

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

Firefox 150
defect

Tracking

()

UNCONFIRMED

People

(Reporter: bzipitidoo, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: dupeme)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0

Steps to reproduce:

Open a new browser window (so you have at least 2 windows). Visit YouTube, start playing a video, pause it and leave it paused, change focus to the other Firefox window, then quit Firefox.

Start Firefox, go to History and restore previous session.

Actual results:

The video resumed playing.

Expected results:

The video should stay paused.

Note that if the browser window has several tabs, and each tab is paused on a YouTube Video, only the video in the topmost tab resumes. All the others stay paused. Seems like keeping them all paused should be possible across windows, not just tabs.

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

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Session Restore
Product: Core → Firefox

There's a couple of layers to this. Even if the video was playing when quiting the browser, AFAIK it should not resume playing without user interaction. If it was paused when the session was saved, it should also stay paused. That part sounds familiar and might be a dupe.

I'm leaving in triage as we need to narrow down the STR a bit, and determine if this is actually a Media bug, or a Session Restore bug already on file, or a new Session Restore bug.

Keywords: dupeme

Does the "topmost" tab for you mean the tab that's currently selected and showing its contents, or does that mean the first tab in the window?

By default, when restoring windows, the active/current tab in each window is automatically loaded, while all other tabs are not loaded. Assuming that you took some explicit action to make YouTube videos autoplay when loading the page (Firefox setting, Firefox add-on, YouTube setting, etc.) then I would expect that any active tab in any restored window should autoplay its media. I believe Sam is right in comment 2 that videos should not autoplay by default.

Does the "topmost" tab for you mean the tab that's currently selected and showing its contents

Yes.

or does that mean the first tab in the window?

No.

Firefox setting

I never enable DRM. I like it when websites block their own videos by insisting that the viewer agree to DRM before letting them play. Saves me the bother of stopping them.

If there is a setting in Firefox to never autoplay a video, I do not know of it, and would like to.

Firefox add-on

I use uBlock Origin, and more recently been trying CookieBro as well. Only other extension I have is Certificate Expiration.

YouTube setting

I always set YouTube's autoplay to "off". Even if I have to add an extension. If YouTube turns autoplay on, I turn it off again. Some years ago, YouTube buried the autoplay setting, moving it from the lower right corner of the videos into a Settings dialog, and I hunted it down so I could turn it off. YouTube has not tried to turn autoplay back on since that interface change, so I haven't had to turn it off again.

Hmm, thank you for the additional information. It sounds like you don't expect YouTube videos to autoplay when loading a YouTube video page, but you see paused YouTube videos autoplaying when you restore a session. Does that sound accurate?

you see paused YouTube videos autoplaying when you restore a session

The videos resume play. Whatever video was paused will start playing. If I have several Firefox windows paused on YouTube videos, and I quit and restore, they all start playing at the same time.

I should be more careful with the terminology. This issue is not YouTube's autoplay starting the next video in their feed. It is the current paused videos resuming play, without the user having unpaused anything.

Loading the document with the video embed is expected behavior with session restore, but for that video to start playing by itself I suspect is a media component issue. Sending it over there for triage. Please send it back I'm wrong about that.

Component: Session Restore → Audio/Video
Product: Firefox → Core

Probably a corner case tied to autoplay, which we plan to overhaul here in the future.

Blocks: autoplay
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.