tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 2fa05e69bbe2744ad4103d3be3f0717b705df16b
parent abb3d47ff5271af16eb04978fdd40fd54f2bfd5a
Author: Mike Conley <mconley@mozilla.com>
Date:   Wed,  8 Oct 2025 03:25:41 +0000

Bug 1992667 - Update trainhop jobs to launch xpcshell while loading libraries from the trainhop archive. r=jmaher

Differential Revision: https://phabricator.services.mozilla.com/D267867

Diffstat:
Mtesting/mochitest/runtests.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py @@ -516,6 +516,10 @@ class MochitestServer: self._httpdPath = SCRIPT_DIR self._httpdPath = os.path.abspath(self._httpdPath) + self._trainHop = "browser.newtabpage.trainhopAddon.version=any" in options.get( + "extraPrefs", [] + ) + MochitestServer.instance_count += 1 def start(self): @@ -529,6 +533,11 @@ class MochitestServer: else: env["LD_LIBRARY_PATH"] = ":".join([self._xrePath, env["LD_LIBRARY_PATH"]]) + if self._trainHop: + env["LD_LIBRARY_PATH"] = ":".join( + [os.path.join(os.path.dirname(here), "bin"), env["LD_LIBRARY_PATH"]] + ) + # When running with an ASan build, our xpcshell server will also be ASan-enabled, # thus consuming too much resources when running together with the browser on # the test machines. Try to limit the amount of resources by disabling certain