diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-04 16:05:27 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-11-04 16:05:27 +0100 |
commit | 4a188c7b99a2cb7bbc335ef838d2d47f67810715 (patch) | |
tree | 5559b7d934b85539724e08533bb619dd0170b5cf /netwerk/protocol/http/nsHttpChannel.h | |
parent | 7eae711faa4897a928a6a278173e527bc54e6e5b (diff) | |
download | UXP-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 'netwerk/protocol/http/nsHttpChannel.h')
-rw-r--r-- | netwerk/protocol/http/nsHttpChannel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netwerk/protocol/http/nsHttpChannel.h b/netwerk/protocol/http/nsHttpChannel.h index 2e24d6e81..152cf1503 100644 --- a/netwerk/protocol/http/nsHttpChannel.h +++ b/netwerk/protocol/http/nsHttpChannel.h @@ -597,6 +597,10 @@ private: HttpChannelSecurityWarningReporter* mWarningReporter; RefPtr<ADivertableParentChannel> mParentChannel; + + // Whether we send opportunistic encryption requests. + bool mSendUpgradeRequest; + protected: virtual void DoNotifyListenerCleanup() override; |