Bug 1233073 - Disable fullscreen transition on Linux. r=karlt, a=sylvestre
authorXidorn Quan <me@upsuper.org>
Tue, 27 Sep 2016 15:28:09 +1000
changeset 355954 ec9c18d6d521d5e9ab6785b8601150d6af32ef3b
parent 355953 af5a59737002cc4e8bb0f69acddb2583a9d952c6
child 355955 43c724bde81cd7dbd154e8741da017b86c43cdbd
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt, sylvestre
bugs1233073
milestone51.0a2
Bug 1233073 - Disable fullscreen transition on Linux. r=karlt, a=sylvestre MozReview-Commit-ID: 5iP3vjRDlur
modules/libpref/init/all.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4680,18 +4680,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