Bug 1433357 - Part 1: Add proxy bypass protection flag r=glandium
authorArthur Edelstein <arthuredelstein@gmail.com>
Fri, 02 Feb 2018 14:45:00 +0200
changeset 751763 b5ad0c384202b82b67d25949bbf6cde061b99cbe
parent 751762 b3118b4fae1372c3aa57caf4b16af9834ce46539
child 751764 bd385579481b516dbb640159e7499a6e36e41bfe
push id98047
push userbmo:continuation@gmail.com
push dateTue, 06 Feb 2018 22:02:37 +0000
reviewersglandium
bugs1433357
milestone60.0a1
Bug 1433357 - Part 1: Add proxy bypass protection flag r=glandium
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -1206,8 +1206,21 @@ with only_when(has_elfhack):
 @depends(check_build_environment)
 def idl_roots(build_env):
     return namespace(ipdl_root=os.path.join(build_env.topobjdir, 'ipc', 'ipdl'),
                      webidl_root=os.path.join(build_env.topobjdir,
                                               'dom', 'bindings'))
 
 set_config('WEBIDL_ROOT', idl_roots.webidl_root)
 set_config('IPDL_ROOT', idl_roots.ipdl_root)
+
+# Proxy bypass protection
+# ==============================================================
+
+option('--enable-proxy-bypass-protection',
+       help='Prevent suspected or confirmed proxy bypasses')
+
+@depends_if('--enable-proxy-bypass-protection')
+def proxy_bypass_protection(_):
+    return True
+
+set_config('MOZ_PROXY_BYPASS_PROTECTION', proxy_bypass_protection)
+set_define('MOZ_PROXY_BYPASS_PROTECTION', proxy_bypass_protection)