Bug 772307 - Add dummy browser.manifestURL pref to user.js to prevent B2G from dying, r=jgriffin
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 11 Jul 2012 18:14:35 -0700
changeset 99062 46804c31366b9fcf06fc707baa21be6eec5f5152
parent 99061 8b639f976a00708859bf1347ebde7ac771536cc4
child 99066 70d92a6ccdfa95b8a015010d4c99b2307864f087
child 99313 fd32b032a1296d943cd1193917f4208c1a0cf252
push id11807
push useremorley@mozilla.com
push dateThu, 12 Jul 2012 15:31:52 +0000
treeherdermozilla-inbound@b4183760a813 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs772307
milestone16.0a1
first release with
nightly linux32
46804c31366b / 16.0a1 / 20120712030541 / files
nightly linux64
46804c31366b / 16.0a1 / 20120712030541 / files
nightly mac
46804c31366b / 16.0a1 / 20120712030541 / files
nightly win32
46804c31366b / 16.0a1 / 20120712030541 / files
nightly win64
46804c31366b / 16.0a1 / 20120712030541 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 772307 - Add dummy browser.manifestURL pref to user.js to prevent B2G from dying, r=jgriffin
build/mobile/b2gautomation.py
--- a/build/mobile/b2gautomation.py
+++ b/build/mobile/b2gautomation.py
@@ -82,16 +82,21 @@ class B2GRemoteAutomation(Automation):
         dumpDir = tempfile.mkdtemp()
         self._devicemanager.getDirectory(self._remoteProfile + '/minidumps/', dumpDir)
         automationutils.checkForCrashes(dumpDir, symbolsPath, self.lastTestSeen)
         try:
           shutil.rmtree(dumpDir)
         except:
           print "WARNING: unable to remove directory: %s" % (dumpDir)
 
+    def initializeProfile(self, profileDir, extraPrefs = [], useServerLocations = False):
+        # add b2g specific prefs
+        extraPrefs.extend(["browser.manifestURL='dummy (bug 772307)'"])
+        return Automation.initializeProfile(self, profileDir, extraPrefs, useServerLocations)
+
     def buildCommandLine(self, app, debuggerInfo, profileDir, testURL, extraArgs):
         # if remote profile is specified, use that instead
         if (self._remoteProfile):
             profileDir = self._remoteProfile
 
         cmd, args = Automation.buildCommandLine(self, app, debuggerInfo, profileDir, testURL, extraArgs)
 
         return app, args