New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 793598 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 560446
Owner:
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Youtube auto-played video after macOS SW update while still at login screen

Project Member Reported by asvitk...@chromium.org, Dec 9 2017

Issue description

Youtube auto-played video after macOS SW update while still at login screen.

I updated macOS to High Sierra at home and at the time had a Chrome window with a Youtube tab open. (I don't think it was playing at the time.) After the update had finished, the OS restarted and the macOS log in screen was shown.

Without even logging into my account, the Youtube video from one of the Chrome tabs started playing and I could hear its audio while not even logged in first. I had to log in and pause it to stop the sound. (Chrome had evidently auto-restored all its tabs behind the login window...)

This doesn't seem like a good user experience. We should fix this.
 
Sorry, clarification - it wasn't a High Sierra update, it was a Security Update for Sierra. (I don't think this makes a difference w.r.t. to this bug though, just want to correct what I wrote.)
Cc: mlamouri@chromium.org
Do you happen to know if the YouTube tab was the visible tab in the Chrome window?
Yes, the Youtube tab was the foreground tab in the top-most window for Chrome.
Cc: ccameron@chromium.org thakis@chromium.org
Components: -Internals>Media Internals>PlatformIntegration
This sounds like a system integration bug: most likely Chrome thought it was visible even if it was hidden behind the login screen. When a tab is marked as hidden, we do not allow any playback unless playback already occurred but we do allow it when visible.

+ccameron@, +thakis as they may know where this should be triaged.
This is probably  issue 526271  /  issue 560446  where the first tab in a window is always foreground, so doesn't trigger the autoplay block that we have for background tabs.
Cc: -ccameron@chromium.org
Owner: ccameron@chromium.org
Status: Assigned (was: Untriaged)
[mac bug triage]
Mergedinto: 560446
Status: Duplicate (was: Assigned)

Comment 8 by shrike@chromium.org, Dec 14 2017

Cc: shrike@chromium.org
> I updated macOS to High Sierra at home and at the time had a Chrome window with a Youtube tab open. (I don't think it was playing at the time.) After the update had finished, the OS restarted and the macOS log in screen was shown.

Were you truly at the login screen after a reboot? I'm trying to understand how Chrome could be running at that point because you had not yet logged into your machine.

Yes, I was. I assume it restored my apps in the background?
Those apps need access to files in your account, so you need to be logged in somehow.

I'll see if I can repro.
I tried on my off-corp 10.13 machine - it boots up to the login screen, but nothing happens after that. Are you able to repro at will? Seems like the important part of your problem description is the restart rather than why the machine was restarted.

In order for your tab to start playing video your Mac has to be logged into your account (to access your user data dir and reload your tabs). That should not just happen behind the scenes. I was wondering if perhaps your machine was booting up and you did something to trigger the login screen (e.g. with hot corners).

Sorry, I've not had a chance to look at this more. I think I tried to repro with a simple reboot once and didn't seem to repro it.

I agree that it does sound weird that it loaded before I logged in, but I'm pretty sure this is exactly what was the case - i.e. there was an auto-logout due to the update and a reboot.

As an aside, I suppose this issue could also happen if you lock your screen while Chrome is starting/loading and restoring tabs? That might be an easier scenario to test for and I think the behavior there should also be "not autoplay Youtube" if the page load happens when screen is locked.

Sign in to add a comment