summaryrefslogtreecommitdiffstats
path: root/modules/libpref
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-04 16:05:27 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-11-04 16:05:27 +0100
commit4a188c7b99a2cb7bbc335ef838d2d47f67810715 (patch)
tree5559b7d934b85539724e08533bb619dd0170b5cf /modules/libpref
parent7eae711faa4897a928a6a278173e527bc54e6e5b (diff)
downloadUXP-4a188c7b99a2cb7bbc335ef838d2d47f67810715.tar
UXP-4a188c7b99a2cb7bbc335ef838d2d47f67810715.tar.gz
UXP-4a188c7b99a2cb7bbc335ef838d2d47f67810715.tar.lz
UXP-4a188c7b99a2cb7bbc335ef838d2d47f67810715.tar.xz
UXP-4a188c7b99a2cb7bbc335ef838d2d47f67810715.zip
Make opportunistic encryption configurable.
This adds a pref "network.http.opportunistic-encryption" that controls whether we send an "Upgrade-Insecure-Requests : 1" header on document navigation or not. This patch modifies the platform network parts. Default for the platform is "true". Part 1 for #863
Diffstat (limited to 'modules/libpref')
-rw-r--r--modules/libpref/init/all.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 957affa79..4fb112567 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -1374,6 +1374,9 @@ pref("network.tickle-wifi.delay", 16);
// Turn off interprocess security checks. Needed to run xpcshell tests.
pref("network.disable.ipc.security", false);
+// Send upgrade-insecure-requests HTTP header
+pref("network.http.opportunistic-encryption", true);
+
// Default action for unlisted external protocol handlers
pref("network.protocol-handler.external-default", true); // OK to load
pref("network.protocol-handler.warn-external-default", true); // warn before load