summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-14 15:47:27 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-14 15:47:27 +0100
commitda7423057d74415f821d092f1f753e8da11c6d17 (patch)
tree13d9528acec3f3c164b9aeba454d80b3203e8dfc
parentcbbae724313c014fe858debbe676298fdb42463c (diff)
downloadUXP-da7423057d74415f821d092f1f753e8da11c6d17.tar
UXP-da7423057d74415f821d092f1f753e8da11c6d17.tar.gz
UXP-da7423057d74415f821d092f1f753e8da11c6d17.tar.lz
UXP-da7423057d74415f821d092f1f753e8da11c6d17.tar.xz
UXP-da7423057d74415f821d092f1f753e8da11c6d17.zip
Issue #1319 - Set some obvious prefs for production builds.
This sets some defaults for production builds that should be self-explanatory.
-rw-r--r--modules/libpref/init/all.js25
1 files changed, 3 insertions, 22 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 048cbe37a..082dfc4bb 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -551,12 +551,7 @@ pref("dom.webaudio.enabled", true);
pref("media.getusermedia.screensharing.enabled", true);
#endif
-#ifdef RELEASE_OR_BETA
pref("media.getusermedia.screensharing.allowed_domains", "webex.com,*.webex.com,ciscospark.com,*.ciscospark.com,projectsquared.com,*.projectsquared.com,*.room.co,room.co,beta.talky.io,talky.io,*.clearslide.com,appear.in,*.appear.in,tokbox.com,*.tokbox.com,*.sso.francetelecom.fr,*.si.francetelecom.fr,*.sso.infra.ftgroup,*.multimedia-conference.orange-business.com,*.espacecollaboration.orange-business.com,free.gotomeeting.com,g2m.me,*.g2m.me,*.mypurecloud.com,*.mypurecloud.com.au,spreed.me,*.spreed.me,*.spreed.com,air.mozilla.org,*.circuit.com,*.yourcircuit.com,circuit.siemens.com,yourcircuit.siemens.com,circuitsandbox.net,*.unify.com,tandi.circuitsandbox.net,*.ericsson.net,*.cct.ericsson.net,*.opentok.com,*.conf.meetecho.com,meet.jit.si,*.meet.jit.si,web.stage.speakeasyapp.net,web.speakeasyapp.net,*.hipchat.me,*.beta-wspbx.com,*.wspbx.com,*.unifiedcloudit.com,*.smartboxuc.com,*.smartbox-uc.com,*.panterranetworks.com,pexipdemo.com,*.pexipdemo.com,pex.me,*.pex.me,*.rd.pexip.com,1click.io,*.1click.io,*.fuze.com,*.fuzemeeting.com,*.thinkingphones.com,gotomeeting.com,*.gotomeeting.com,gotowebinar.com,*.gotowebinar.com,gototraining.com,*.gototraining.com,citrix.com,*.citrix.com,expertcity.com,*.expertcity.com,citrixonline.com,*.citrixonline.com,g2m.me,*.g2m.me,gotomeet.me,*.gotomeet.me,gotomeet.at,*.gotomeet.at,miriadaxdes.miriadax.net,certificacion.miriadax.net,miriadax.net,*.wire.com,sylaps.com,*.sylaps.com,bluejeans.com,*.bluejeans.com,*.a.bluejeans.com,*.bbcollab.com");
-#else
- // includes Mozilla's test domain: mozilla.github.io (not intended for release)
-pref("media.getusermedia.screensharing.allowed_domains", "mozilla.github.io,webex.com,*.webex.com,ciscospark.com,*.ciscospark.com,projectsquared.com,*.projectsquared.com,*.room.co,room.co,beta.talky.io,talky.io,*.clearslide.com,appear.in,*.appear.in,tokbox.com,*.tokbox.com,*.sso.francetelecom.fr,*.si.francetelecom.fr,*.sso.infra.ftgroup,*.multimedia-conference.orange-business.com,*.espacecollaboration.orange-business.com,free.gotomeeting.com,g2m.me,*.g2m.me,*.mypurecloud.com,*.mypurecloud.com.au,spreed.me,*.spreed.me,*.spreed.com,air.mozilla.org,*.circuit.com,*.yourcircuit.com,circuit.siemens.com,yourcircuit.siemens.com,circuitsandbox.net,*.unify.com,tandi.circuitsandbox.net,*.ericsson.net,*.cct.ericsson.net,*.opentok.com,*.conf.meetecho.com,meet.jit.si,*.meet.jit.si,web.stage.speakeasyapp.net,web.speakeasyapp.net,*.hipchat.me,*.beta-wspbx.com,*.wspbx.com,*.unifiedcloudit.com,*.smartboxuc.com,*.smartbox-uc.com,*.panterranetworks.com,pexipdemo.com,*.pexipdemo.com,pex.me,*.pex.me,*.rd.pexip.com,1click.io,*.1click.io,*.fuze.com,*.fuzemeeting.com,*.thinkingphones.com,gotomeeting.com,*.gotomeeting.com,gotowebinar.com,*.gotowebinar.com,gototraining.com,*.gototraining.com,citrix.com,*.citrix.com,expertcity.com,*.expertcity.com,citrixonline.com,*.citrixonline.com,g2m.me,*.g2m.me,gotomeet.me,*.gotomeet.me,gotomeet.at,*.gotomeet.at,miriadaxdes.miriadax.net,certificacion.miriadax.net,miriadax.net,*.wire.com,sylaps.com,*.sylaps.com,bluejeans.com,*.bluejeans.com,*.a.bluejeans.com,*.bbcollab.com");
-#endif
// OS/X 10.6 has screen/window sharing off by default due to various issues - Caveat emptor
pref("media.getusermedia.screensharing.allow_on_old_platforms", false);
@@ -1253,11 +1248,8 @@ pref("privacy.trackingprotection.pbmode.enabled", false);
pref("dom.event.contextmenu.enabled", true);
pref("dom.event.clipboardevents.enabled", true);
-#if defined(XP_WIN) && !defined(RELEASE_OR_BETA) || defined(MOZ_WIDGET_GTK) && !defined(RELEASE_OR_BETA)
-pref("dom.event.highrestimestamp.enabled", true);
-#else
+// Potentially risky option due to side channel attack surface using high res timers.
pref("dom.event.highrestimestamp.enabled", false);
-#endif
pref("dom.webcomponents.enabled", false);
pref("dom.webcomponents.customelements.enabled", false);
@@ -1276,11 +1268,8 @@ pref("javascript.options.wasm", false);
pref("javascript.options.wasm_baselinejit", false);
pref("javascript.options.native_regexp", true);
pref("javascript.options.parallel_parsing", true);
-#if !defined(RELEASE_OR_BETA) && !defined(ANDROID) && !defined(XP_IOS)
-pref("javascript.options.asyncstack", true);
-#else
+// ayncstack is used for debugging promises in devtools.
pref("javascript.options.asyncstack", false);
-#endif
pref("javascript.options.throw_on_asmjs_validation_failure", false);
pref("javascript.options.ion.offthread_compilation", true);
// This preference instructs the JS engine to discard the
@@ -2654,11 +2643,7 @@ pref("layout.css.shape-outside.enabled", false);
pref("layout.css.font-loading-api.enabled", true);
// Should stray control characters be rendered visibly?
-#ifdef RELEASE_OR_BETA
pref("layout.css.control-characters.visible", false);
-#else
-pref("layout.css.control-characters.visible", true);
-#endif
// pref for which side vertical scrollbars should be on
// 0 = end-side in UI direction
@@ -4470,12 +4455,8 @@ pref("webgl.webgl2-compat-mode", false);
pref("webgl.enable-webgl2", true);
-#ifdef RELEASE_OR_BETA
-// Keep this disabled on Release and Beta for now. (see bug 1171228)
+// Keep this disabled unless debugging GPU compatibility with websites
pref("webgl.enable-debug-renderer-info", false);
-#else
-pref("webgl.enable-debug-renderer-info", true);
-#endif
pref("webgl.renderer-string-override", "");
pref("webgl.vendor-string-override", "");