[MacOS] Unexpected behaviour scrolling facebook.com/watch videos
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
People
(Reporter: marcela.calderon, Assigned: alwu)
References
Details
Attachments
(6 files, 2 obsolete files)
Affected versions:
Nightly 80.0a1 (2020-07-21)
Affected platforms:
Platform: macOS (MacBook Pro touch bar)
Steps to reproduce:
- Launch the Firefox browser and reach https://www.facebook.com/watch
- Unmute the first video and start to play
- Hit the Media Control button from the touch bar in order to pause/play the video.
- Scroll down, reach another video, and hit the media control button (pause/play) many times.
Expected result:
The user should be able to pause and start the video without any issues.
Actual result:
The video start tho play with cut noises at the beginning and in an unexpected way it scrolls up
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
TL;DR, I'll mail to Facebook to see if they're using MediaSession API on Chrome only.
The video start tho play with cut noises at the beginning
That is because we're trying to resume multiple videos at the same time. If you changes your viewport to allow you to see two videos at the same time, then you would notice that, when pressingplay
, both video would be resumed, but one of them would be paused by Facebook immediately because of their website script logic, which is to pause video when video is out of the viewport.
Our implementation is to control all media in the same page, so it's an expected behavior. But Facebook has its own logic not to show a specific video so they pause it explicitly. The interesting thing is that, when I test this on Chrome, they would only resume one media when pressing play
.
The first possibility I think of is that Facebook only enable MediaSession API on Chrome, so they can allow to script to decide which video should be paused, then they can perfectly control the media behavior.
However, I can't clearly verify if they're using MediaSession API or not from their JS code, but if it's true, then we should ask them to use MediaSession API on Firefox. Then, this problem could be solved.
In addition, on Chrome I test a page which contains multiple playing media, then I observed that sometime I can control them together, sometime I can't. They seems having a special logic to determine with what media is abled to be controlled.
Assignee | ||
Comment 2•4 years ago
|
||
However, on MacOS 10.14.6, I didn't encounter "scrolling up" issue, could you make a screenrecording for me?
Thank you.
Assignee | ||
Comment 3•4 years ago
•
|
||
I can't reproduce "scrolling up" issue on Window10 as well.
Assignee | ||
Updated•4 years ago
|
Reporter | ||
Comment 4•4 years ago
|
||
Reporter | ||
Comment 5•4 years ago
|
||
(In reply to Alastor Wu [:alwu] from comment #2)
However, on MacOS 10.14.6, I didn't encounter "scrolling up" issue, could you make a screenrecording for me?
Thank you.
This behavior is aleatory and difficult to reproduce it. I uploaded a file with the evidence. You can see when display suddenly scrolls up from 00:22. Also, you can notice sound problems as well the fact that video some times mute when I hit media control play.
Let me know if you need anything else.
Assignee | ||
Comment 6•4 years ago
|
||
From the screen-recording video, I noticed that the screen seems already scrolling up before you were clicking on the media control key?
So you mean this behavior is intermittent? Are you able to reproduce it on a clean profile or a private window?
It seems to me that that is probably a Facebook issue because the media control doesn't have an ability to move the page up/down. In addition, I'm also wondering if it's related with the regions, maybe this issue only happen on certain region (version) Facebook website, because I still can't reproduce that on my MacOS and Windows10. For example, one possibility is that, because pressing media key would also control the video, which is not in the viewport and is in the above, and some version of Facebook mighg focus the viewoport to the controlled media immediately, which cause a scrolling up.
Anyway, I've reported this issue to Facebook to see if they can reply us.
Reporter | ||
Comment 7•4 years ago
|
||
Reporter | ||
Comment 8•4 years ago
|
||
(In reply to Alastor Wu [:alwu] from comment #6)
From the screen-recording video, I noticed that the screen seems already scrolling up before you were clicking on the media control key?
No, it happens after clicking on Play
So you mean this behavior is intermittent? Are you able to reproduce it on a clean profile or a private window?
Yes, I was able to reproduce it with a clean profile
I'll attach a file where:
- you will see how the screen scrolling up after I click on the media control key
- you will ear a choppy sound every time that I press Play on the media control key
- you will see how the video try to resume showing a blue spin
- you will see how the video is muted after press play/pause key
It seems to me that that is probably a Facebook issue because the media control doesn't have an ability to move the page up/down. In addition, I'm also wondering if it's related with the regions, maybe this issue only happen on certain region (version) Facebook website, because I still can't reproduce that on my MacOS and Windows10. For example, one possibility is that, because pressing media key would also control the video, which is not in the viewport and is in the above, and some version of Facebook mighg focus the viewoport to the controlled media immediately, which cause a scrolling up.
Anyway, I've reported this issue to Facebook to see if they can reply us.
After all, could be a Facebook problem.
Reporter | ||
Comment 9•4 years ago
|
||
Let me know if you need anything else.
Assignee | ||
Comment 10•4 years ago
|
||
Thank you so much. I've talked to Facebook folks, I will fix this issue on our side, changing our behavior to not to control all media on the page to prevent from this issue.
Assignee | ||
Comment 11•4 years ago
|
||
In addition, FB mentioned that they have multiple version of "Watch", so I guess that is why I can't reproduce the scrolling up issue.
Assignee | ||
Comment 12•4 years ago
|
||
Hi, Marcela,
Could you help me try this build [1] to see if the issue gets fixed?
Thank you.
[1] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ddeShV66TdqlEHY8hGKBuA/runs/0/artifacts/public/build/target.dmg
Reporter | ||
Comment 13•4 years ago
|
||
Reporter | ||
Comment 14•4 years ago
•
|
||
Hi Alastor!
Apparently using the build proposed by you [1], this issue does not happen anymore. Sound is ok and scrolling up doesn't happen. I'll attach a file with evidence.
[1] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ddeShV66TdqlEHY8hGKBuA/runs/0/artifacts/public/build/target.dmg
Assignee | ||
Comment 15•4 years ago
|
||
Assignee | ||
Comment 16•4 years ago
|
||
Assignee | ||
Comment 17•4 years ago
|
||
Assignee | ||
Comment 18•4 years ago
|
||
Assignee | ||
Comment 19•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 20•4 years ago
|
||
Comment 21•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/53cefb9efce4
https://hg.mozilla.org/mozilla-central/rev/f901c6481cf0
https://hg.mozilla.org/mozilla-central/rev/491b6b3d363d
Comment 22•4 years ago
|
||
The patch landed in nightly and beta is affected.
:alwu, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•4 years ago
|
Reporter | ||
Comment 23•4 years ago
|
||
I can confirm this issue is fixed, I verified using Nightly 81.0a1 on MacOS 10.14. I'll change flags accordingly.
Updated•4 years ago
|
Description
•