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 350565 ff5a4af6c871787e99495a1358c2bce7da4cf79f
parent 350564 437cc9b7e8607a00aaa9f5072db40d7a4ab16a2f
child 350566 568a9ce78d2f816af262945b40b888a0e6d98951
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt, sylvestre
bugs1233073
milestone50.0
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
@@ -4653,18 +4653,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