Bug 1233073 - Disable fullscreen transition on Linux. r?karlt draft
authorXidorn Quan <me@upsuper.org>
Tue, 27 Sep 2016 15:28:09 +1000
changeset 417818 51369d7818619e34dfabec610d600fd08fa31cd4
parent 417592 2fcd502b45d65ec6280bc2655b5f5dc57cc3d702
child 417819 afc0df26a6e9915945ccd31ea0f5d34afbf50905
push id30514
push userxquan@mozilla.com
push dateTue, 27 Sep 2016 06:37:53 +0000
reviewerskarlt
bugs1233073
milestone52.0a1
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
@@ -4699,18 +4699,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