Closed Bug 1627348 Opened 6 years ago Closed 6 years ago

spacebar only very shortly pauses or unpauses video on youtube

Categories

(Core :: DOM: Events, defect, P2)

75 Branch
Desktop
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1491256
Tracking Status
firefox75 --- wontfix
firefox76 --- wontfix

People

(Reporter: a47zes0ir, Unassigned)

References

()

Details

(Whiteboard: [media-youtube])

Attachments

(1 file)

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

Steps to reproduce:

Create new profile, visit for example this video. https://www.youtube.com/watch?v=7NzHRiOZ3EQ
Now click on play button in bottom left, then hit spacebar once.

Actual results:

video only pauses super shortly.

Expected results:

Should've paused entirely.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

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

Hi, Adam,
I know that we had some space bar related bugs on Youtube before, and most of them were Youtube's issues. This seem to me that it's also a Youtube issue, could you help me contact them?
Thank you.

Flags: needinfo?(astevenson)
Whiteboard: [media-youtube]

Please note that this is not a Youtube issue since the issue does not occur on chrome or microsoft edge.
I have managed to reproduce the issue in Fx76.0b2 as well as 75.0RC build on Windows 10 as well as Ubuntu 18.04.
Setting the issue status to new.
Thank you for reporting this Dan.

Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Windows 10
Hardware: Unspecified → Desktop
Severity: normal → critical

I can reproduce this on Nightly, on Windows. I am certain I have seen this recently on Ubuntu as well. I have noticed that under Ubuntu I see a focus box around the play button when this happens.

Not occurring on other browsers doesn't mean that is Firefox's issue, because almost every sites would have different implementation for different browsers. I suspect that Youtube gets some racing issue that causes playing media immediately after pausing media.

But we can first check if this issue is a regression or not.

From the log (I still can't reproduce it on MacOS, and that is the log from my colleague), it seems that Youtube calls play() immediately after calling pause(). We should contact Youtube and let them take a look.

Hi,

I don't think this is a regression since it is reproducible all the way back to Firefox 45.0a1 (2015-12-09)
Also, It only occurs when using the "spacebar" to pause the video when the "play/pause" button is highlighted (after clicking play)

On a side note, it does not occur when pausing the video with the "k" shortcut, even when the "play/pause" button is highlighted.

:padenot mentioned that we've got some similar issues before which are related with event bubbling or something related, so move this bug to DOM to see if anyone has any thought.

Component: Audio/Video: Playback → DOM: Events

This reminds me of the closed bug 1522089 and the open one (bug 1491256).
Hey Mike, can we have your team support to do the initial investigation? thanks!

Severity: critical → S2
Flags: needinfo?(miket)
Summary: spacebar only very shortly pauses or unpauses video → spacebar only very shortly pauses or unpauses video on youtube

I can easily reproduce this on Win10.

Priority: -- → P2

The conclusion from https://bugzilla.mozilla.org/show_bug.cgi?id=1491256#c19 was that YouTube was doing some special Firefox-only handling which results in the bug -- spoofing as Chrome makes the bug go away. I'll follow up again. :/

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(miket)
Resolution: --- → DUPLICATE
Flags: needinfo?(astevenson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: