Bug 1233073 - Disable fullscreen transition on Linux. r=karlt
authorXidorn Quan <me@upsuper.org>
Tue, 27 Sep 2016 15:28:09 +1000
changeset 316144 d856f453dcd6c10aa5a0724824cc3b9b685db419
parent 316143 7c576fe3279d87543f0a03b844eba7bc215e17f1
child 316154 955840bfd3c20eb24dd5a01be27bdc55c489a285
child 316155 27949d48ec6669996962cb05ae18363ab55eb55f
push id30764
push userphilringnalda@gmail.com
push dateMon, 03 Oct 2016 05:33:02 +0000
treeherdermozilla-central@955840bfd3c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1233073
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1233073 - Disable fullscreen transition on Linux. r=karlt MozReview-Commit-ID: 5iP3vjRDlur
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4692,18 +4692,23 @@ pref("full-screen-api.enabled", false);
 #ifdef RELEASE_BUILD
 pref("full-screen-api.unprefix.enabled", false);
 #else
 pref("full-screen-api.unprefix.enabled", true);
 #endif
 pref("full-screen-api.allow-trusted-requests-only", true);
 pref("full-screen-api.pointer-lock.enabled", true);
 // transition duration of fade-to-black and fade-from-black, unit: ms
+#ifndef MOZ_WIDGET_GTK
 pref("full-screen-api.transition-duration.enter", "200 200");
 pref("full-screen-api.transition-duration.leave", "200 200");
+#else
+pref("full-screen-api.transition-duration.enter", "0 0");
+pref("full-screen-api.transition-duration.leave", "0 0");
+#endif
 // timeout for black screen in fullscreen transition, unit: ms
 pref("full-screen-api.transition.timeout", 1000);
 // time for the warning box stays on the screen before sliding out, unit: ms
 pref("full-screen-api.warning.timeout", 3000);
 // delay for the warning box to show when pointer stays on the top, unit: ms
 pref("full-screen-api.warning.delay", 500);
 
 // DOM pointerlock API