Bug 1026970 - Define MOZ_DISABLE_NONLOCAL_CONNECTIONS for all suites apart from tprovider; r=jmaher
authorEd Morley <emorley@mozilla.com>
Tue, 05 Aug 2014 12:58:35 +0100
changeset 777 2185428a0061
parent 776 59268b19aadf
child 778 f31ef171fa03
push id504
push useremorley@mozilla.com
push dateTue, 05 Aug 2014 12:54:09 +0000
reviewersjmaher
bugs1026970
Bug 1026970 - Define MOZ_DISABLE_NONLOCAL_CONNECTIONS for all suites apart from tprovider; r=jmaher
talos/ttest.py
--- a/talos/ttest.py
+++ b/talos/ttest.py
@@ -273,16 +273,22 @@ class TTest(object):
         utils.setEnvironmentVars(browser_config['env'])
         utils.setEnvironmentVars({'MOZ_CRASHREPORTER_NO_REPORT': '1'})
 
         if browser_config['symbols_path']:
             utils.setEnvironmentVars({'MOZ_CRASHREPORTER': '1'})
         else:
             utils.setEnvironmentVars({'MOZ_CRASHREPORTER_DISABLE': '1'})
 
+        # Crash on non-local network connections.
+        # Not enabled for Android tprovider due to yet to be diagnosed connections
+        # to safebrowsing.google.com.
+        if test_config['name'] != 'tprovider':
+            utils.setEnvironmentVars({'MOZ_DISABLE_NONLOCAL_CONNECTIONS': '1'})
+
         utils.setEnvironmentVars({"LD_LIBRARY_PATH" : os.path.dirname(browser_config['browser_path'])})
 
         profile_dir = None
         temp_dir = None
 
         try:
             running_processes = self._ffprocess.checkAllProcesses(browser_config['process'], browser_config['child_process'])
             if running_processes: