Closed
Bug 1436474
Opened 7 years ago
Closed 6 years ago
double click on HTML5 player (for fullscreen) unreliable on multi-monitor setup
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P3)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
DUPLICATE
of bug 1129227
People
(Reporter: e412byoy7, Assigned: edgar, NeedInfo)
References
Details
Attachments
(1 file)
3.73 MB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20180128191252
Steps to reproduce:
When having firefox on 2nd window (not Windows 10 mainscree), it acts unreliable on double click to fullscreen a twitch livestream (some. Pressing F5 (refresh website) solves the problem everytime.
Actual results:
Nothing
Expected results:
Livestream going to fullscreen sometimes, sometimes not...
Note: the UI shows the icon for "is in fullscreen mode now" when double clicking... very weird.
Comment hidden (advocacy) |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID:20180207220120
Managed to reproduce this issue using Firefox 58.0.1(Build ID: 20180128191252), Firefox Beta 59.0b7 and Nightly 60.0a1 (2018-02-07)on Windows 10 x64.
Status: UNCONFIRMED → NEW
status-firefox58:
--- → affected
status-firefox59:
--- → affected
status-firefox60:
--- → affected
Component: General → Event Handling
Ever confirmed: true
Product: Firefox → Core
Any ETA for a fix in Nightly (60) ? (this week if possible?)
Flags: needinfo?(roxana.leitan)
Should I change tracking from FF 58 to 60 (as bug is in FF 60 too) ?
Andrew, what do you think?
Flags: needinfo?(roxana.leitan) → needinfo?(overholt)
Should we put a needinfo for Andrew here or will he most probably read this bugreport today anyways?
Comment 9•7 years ago
|
||
Xidorn knows a lot about fullscreen stuff.
It would be nice to have a clear STR with URLs just to be sure we're all talking about the same thing.
Flags: needinfo?(overholt) → needinfo?(xidorn+moz)
Reporter | ||
Comment 10•7 years ago
|
||
What does STR stand for? (sry I'm not a professional in bugzilla)
Reporter | ||
Comment 11•7 years ago
|
||
Working for me currently, tried a lot to reproduce, not reproducable at the moment for me anymore (maybe www.twitch.tv fixed the problem? Or was it Windows 10 problem?). I will keep an eye on this bug the next days.
Reporter | ||
Comment 12•7 years ago
|
||
@Andrew, you can/could visit any video on any twitch channel to reproduce the issue, but it's working at the moment for me.
Comment 13•7 years ago
|
||
I cannot reproduce the issue on the latest Nightly 60.0a1 (Build ID:20180227100126), Firefox Release 58.0.2 and Firefox Beta 59.0b12 (Build ID:20180222170353) on Windows 10 x64.
Based on my results and reporter's comment 11 I will close this bug Resolved-WORKSFORME.
If anyone can still reproduce it on latest versions, feel free to reopen the issue and provide more information.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 14•7 years ago
|
||
Thanks for your help, Roxana and Andrew! ;)
Updated•7 years ago
|
Flags: needinfo?(xidorn+moz)
Reporter | ||
Comment 15•7 years ago
|
||
Yep still happening. Have to try to find the reproductive steps though...
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 16•7 years ago
|
||
YES found another bug that is probably causing it, when double-clicking into a stream windows like 10 times or so, (fullscreen, windowed, etc etc back and forth) the whole UI disappears... (should I make a new bug-report?)
Reporter | ||
Comment 17•7 years ago
|
||
I think I found the issue! Some Twitch streams use the Extension called "overlay by Muxy" in their streams, which is causing the fullscreen double-click to get bugged (even when enabling "double-click for fullscreen" in Muxy's overlay, only the icon changes, window not going fullscreen thoug. Tested with this 24/7 stream: https://www.twitch.tv/monstercat
Roxana, Xidorn or Andrew, can you confirm this? (in the stream, right side there are 2 icons in the stream window, 1 of the 2 symbols is a dragon where you can enable "double-click to fullscreen", when enabled, even doubleclick won't do fullscreen. Please press 10 times or so into stream to try to reproduce). Thank you guys!
Flags: needinfo?(overholt)
Comment 18•7 years ago
|
||
(In reply to Daniel from comment #17)
> I think I found the issue! Some Twitch streams use the Extension called
> "overlay by Muxy" in their streams, which is causing the fullscreen
> double-click to get bugged (even when enabling "double-click for fullscreen"
> in Muxy's overlay, only the icon changes, window not going fullscreen thoug.
> Tested with this 24/7 stream: https://www.twitch.tv/monstercat
> Roxana, Xidorn or Andrew, can you confirm this? (in the stream, right side
> there are 2 icons in the stream window, 1 of the 2 symbols is a dragon where
> you can enable "double-click to fullscreen", when enabled, even doubleclick
> won't do fullscreen. Please press 10 times or so into stream to try to
> reproduce). Thank you guys!
I can confirm. The console shows some stuff:
Request for fullscreen was denied because Element.requestFullscreen() was not called from inside a short running user-generated event handler.
player.js:28:2878
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
ReferenceError: event is not defined[Learn More]
viewer.js:18:58290
Flags: needinfo?(xidorn+moz)
Flags: needinfo?(roxana.leitan)
Flags: needinfo?(overholt)
Reporter | ||
Comment 19•7 years ago
|
||
So is a fix possible very soon in Nightly?
Reporter | ||
Comment 20•7 years ago
|
||
This is a REALLY frustrating issue and affects probably more than thousands of Firefox users (everyone who views streams on Twitch) and should be P1 priority... (it is not an issue in Google Chrome and now hundreds of Twitch viewers will switch to Chrome because this bug is not occuring in Chrome for some reason)
Updated•7 years ago
|
Status: VERIFIED → REOPENED
Has STR: --- → yes
Flags: webcompat?
Resolution: WORKSFORME → ---
Version: 60 Branch → Trunk
Reporter | ||
Comment 21•7 years ago
|
||
Ok I can confirm issue also happens in ESR 52.6.0.
Reporter | ||
Comment 22•7 years ago
|
||
What does "Trunk" mean on FF 60 ?
Reporter | ||
Comment 23•7 years ago
|
||
Issue seems fixed at least in FF 60 on notebook (single screen), will test home again too on multi-monitor setup.
Reporter | ||
Comment 24•7 years ago
|
||
sorry meant 61.0
Reporter | ||
Comment 25•7 years ago
|
||
Yeeeepp.. issue STILL persisting on FF 61 with multi monitor!!
Comment 26•7 years ago
|
||
I... cannot reproduce this with the url in comment 17, even after logging in.
From what Andrew observed in comment 18, it could possibly be an issue in the website which is requesting fullscreen from somewhere it is not allowed currently.
If it works in other browsers, they may have a different way for tracking connection between user gesture (e.g. click / keypress) and fullscreen request than Firefox.
I think the easiest general solution to this kind of issue is what I mentioned in bug 1185052 comment 3, but security people haven't replied yet whether they think that is okay :/
Comment 27•7 years ago
|
||
If the observation in comment 18 is indeed where the issue is, then it should effectively be the same issue as bug 1129227.
Depends on: 1129227
Reporter | ||
Comment 28•7 years ago
|
||
So it means this bug can only be fixed if bug 1129227 gets fixed?
Flags: needinfo?(xidorn+moz)
Summary: double click on HTML5 player (for fullscreen) unreliable → double click on HTML5 player (for fullscreen) unreliable on multi-monitor setup
Comment 29•7 years ago
|
||
We can also make this a Tech Evangelism bug and contact the website to fix.
That being said, it is unclear to me how this can be related to multi-monitor setup at all. I don't expect the issue to be affected by whether there is multi-monitor at all, so what you are experiencing may or may not be the same issue observed in comment 18.
Flags: needinfo?(xidorn+moz)
Reporter | ||
Comment 30•7 years ago
|
||
I don't know how bad it is when "Element.requestFullscreen()" is not called from inside a short running user-generated event handler... But Google has it working in Chrome browser, so it should be possible to fix in Firefox I hoped, but yes, Twch Evangelism bug and contact the website to fix might be a good way to fix too.
Comment 31•7 years ago
|
||
Fullscreen is a dangerous feature that we always want user to be aware of that they are triggering it via only allowing it in certain case, e.g. when user click something etc. because otherwise a web app may be able to spoof anything via requesting fullscreen quietly somehow.
This is a security requirement for Fullscreen API, and all browsers deploy this kind of restrictions in some way, and it's also required by the spec.
It is possible that different browsers use different approaches to enforce this restriction, and that may end up having different behavior if a website doesn't meet the requirement of the strictest one.
We may want to choose a weaker way to apply this restriction to have better webcompat and developer experience, but that needs approval from security, since this whole restriction is there for security reason.
Reporter | ||
Comment 32•7 years ago
|
||
Ok thanks for your reply. can we have a developer from the security team read this bug thread please and reply here?
Flags: needinfo?(xidorn+moz)
Reporter | ||
Comment 33•7 years ago
|
||
Andrew where in Firefox Nightly source code so I find "Element.requestFullscreen()", "player.js" and "viewer.js" ? I hope I can fix this bug myself then.
Flags: needinfo?(overholt)
Comment 34•7 years ago
|
||
Wennie can probably find someone to chime in from a security standpoint.
Xidorn is in a much better position than I am to answer comment 33 so I'll his needinfo for that :)
Flags: needinfo?(overholt) → needinfo?(wleung)
Comment 35•7 years ago
|
||
player.js and viewer.js are code of the website, not in Firefox.
requestFullscreen is defined inside Firefox from https://searchfox.org/mozilla-central/rev/49cc27555d5b7ed2eb06baf156693dd578daa06f/dom/base/Element.cpp#3567-3586
Flags: needinfo?(xidorn+moz)
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•6 years ago
|
Type: defect → enhancement
Comment 36•6 years ago
|
||
See bug 1547409. Moving webcompat whiteboard tags to project flags.
Webcompat Priority: --- → ?
Updated•6 years ago
|
Webcompat Priority: ? → ---
Flags: webcompat?
Updated•6 years ago
|
Priority: -- → P3
Assignee | ||
Updated•6 years ago
|
Status: REOPENED → RESOLVED
Closed: 7 years ago → 6 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → echen
You need to log in
before you can comment on or make changes to this bug.
Description
•