Google Presentation (Slides) is not opened in full screen with ctrl+F5/"Present" option
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(firefox63 affected, firefox64 affected, firefox65 affected)
People
(Reporter: cbadau, Unassigned)
References
()
Details
(Keywords: webcompat:site-wait, Whiteboard: [sitewait])
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Tom, would you be able to dig into this? Thanks!
Comment 5•6 years ago
|
||
Pardon the delay.
It looks like requestFullscreen
is not even called in Firefox, while it is in Chrome. The script Chrome is hitting is this one. This is line which does the call, which Firefox also executes:
k && (c || b && !Tc || this.od.requestFullScreen(),
But in Firefox, the value of k
is false
, so no attempt is even made to fullscreen.
The value of k
is determined just above that line:
h = N(M(), "punch-efep");
if (h = Yc || Uc && h) {
h = this.D.na();
h = HJe(h);
var k = h.body;
h = !!(k.webkitRequestFullscreen || k.mozRequestFullScreen && h.mozFullScreenEnabled || k.msRequestFullscreen && h.msFullscreenEnabled || k.requestFullscreen && h.fullscreenEnabled)
}
k = h;
Firefox never even enters that if-statement, while Chrome does. The difference is that Yc
is true
on Chrome. It turns out that's a global variable that was mercifully easier to find than I feared (it's in the second script I linked):
, Yc = kba(Zb, "WebKit") && !$b("Edge")
So they're blocking Firefox via UA-sniff. I tested to see if adding Firefox would help, by leveraging this similar global variable:
, Wc = $b("Gecko") && !(kba(Zb, "WebKit") && !$b("Edge")) && !($b("Trident") || $b("MSIE")) && !$b("Edge")
That is, I changed their if-statement to this:
if (h = (Yc || Wc) || Uc && h) {
And with that, it's working for me on Firefox as well. I have no idea why they're artificially blocking Firefox, though.
Comment 6•6 years ago
|
||
Thanks Tom! I think I'll go ahead and email Google about this.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 8•5 years ago
|
||
See bug 1547409. Moving webcompat whiteboard tags to keywords.
Comment 9•4 years ago
|
||
A click on the "Present" button now works in Firefox (84) the same way it does in Chrome: the presentation is opened in fullscreen mode. Not sure if that's due to a Firefox change or a Google Presentations-change.
Description
•