YouTube Video Automatically Exits Full-Screen Mode When Another YouTube Tab Opened in Background Finish Loading With Fission Enabled
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
People
(Reporter: snugs.steed0e, Assigned: edgar)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
Steps to Reproduce
- Ensure you have Fission enabled.
- Open any YouTube video and enter full-screen mode.
- While in full-screen mode, scroll down to the suggested videos section and open any one of them in a new tab.
- Wait and observe.
Expected Result
Nothing visible happens while the newly opened video in another tab loads in the background.
Actual Result
When the newly opened video in another tab finishes loading, the currently-focused video automatically exits full-screen mode, for some reason.
Additional Information
- This bug does not reproduce when Fission is disabled (setting
fission.autostart
tofalse
and restarting the browser). - Unfortunately, I was unable to obtain the regression range for this bug since even the earliest build available contains this bug.
Comment 1•3 years ago
|
||
Thanks for the bug report, SL! I can reproduce this Fission bug on my Windows 10 laptop.
I tested opening the second video in a new tab using Ctrl+click and with right-click > "Open Link in New Tab". I could reproduce with either method.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
I could also reproduce this, taking the bug.
Assignee | ||
Comment 3•3 years ago
|
||
The exit of fullscreen is due to the focus changes, https://searchfox.org/mozilla-central/rev/08f063f4c89d270fd809fc0325b5a9000ae87d63/dom/base/nsFocusManager.cpp#1625, and it is from
0 focusOnPlayer/<() ["https://www.youtube.com/s/desktop/3ce082d6/jsbin/desktop_polymer.vflset/desktop_polymer.js":15436:223]
this = [object HTMLElement]
1 pra(a = "undefined") ["https://www.youtube.com/s/desktop/3ce082d6/jsbin/desktop_polymer.vflset/desktop_polymer.js":3502:47]
2 ora/</<() ["https://www.youtube.com/s/desktop/3ce082d6/jsbin/desktop_polymer.vflset/desktop_polymer.js":3500:157]
this = [object Window]
Assignee | ||
Comment 4•3 years ago
|
||
Here is the test script to reproduce the similar behavior.
- Enter the button to enter fullscreen
- ctrl+click the link to open a background tab.
Assignee | ||
Comment 5•3 years ago
|
||
Comparing the behavior with STR in comment #0 on Fission and non-Fission, non-Fission don't encounter the issue is just because the background tab wouldn't try to focus the player element, not sure why, but anyhow, the focus() call on background tab should not cause the fullscreen get exited.
So this actually isn't a Fission specific issue, we could also reproduce this on non-Fission with the test attached in comment 4.
I ran mozregression and got following range,
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=46e1717494fbf0f1913e22052c3304fe9f7c19b8&tochange=3f72a81bd12cb6048f03a96e5b403621f7fac052
Probably caused by bug 1432856.
Assignee | ||
Comment 6•3 years ago
|
||
Comment 7•3 years ago
|
||
But if the real world example is Fission only, I think this should be tracked as part of Fission.
Assignee | ||
Comment 8•3 years ago
•
|
||
Assignee | ||
Comment 9•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9fa2b1591c7 Exit fullscreen only when the focus change will raise the window; r=smaug
Comment 11•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Description
•