[qunit] use safe mode for firefox
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 18 Jun 2010 11:40:37 +0200
changeset 5788 e182da70d620
parent 5787 20377d2fcc70
child 5790 26680cbc507b
[qunit] use safe mode for firefox
devtools/qunit.py
--- a/devtools/qunit.py	Fri Jun 18 11:40:33 2010 +0200
+++ b/devtools/qunit.py	Fri Jun 18 11:40:37 2010 +0200
@@ -53,7 +53,7 @@
         stdout = TemporaryFile()
         stderr = TemporaryFile()
         try:
-          check_call(['firefox', '-no-remote', '-CreateProfile',
+          check_call(['firefox', '-safe-mode', '-no-remote', '-CreateProfile',
                       '%s %s' % (self._profile_name, self._tmp_dir)],
                                 stdout=stdout, stderr=stderr)
         except CalledProcessError, cpe:
@@ -65,7 +65,7 @@
     def start(self, url):
         self.stop()
         fnull = open(os.devnull, 'w')
-        self._process = Popen(['firefox', '-no-remote', '-P', self._profile_name, url],
+        self._process = Popen(['firefox', '-safe-mode', '-no-remote', '-P', self._profile_name, url],
                               stdout=fnull, stderr=fnull)
 
     def stop(self):