tor-browser

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

commit e72c1e9f7b5ed3b51f8f8875ebc6171c0b56d6c3
parent e2c68930ed327b9afb136604d96fc7cc035d95bf
Author: Gijs Kruitbosch <gijskruitbosch@gmail.com>
Date:   Mon, 20 Oct 2025 11:28:58 +0000

Bug 1993486 - make debugger or jsdebugger use avoid timing out browser mochitests mid-debugging, r=jmaher

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

Diffstat:
Mtesting/mochitest/browser-test.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/testing/mochitest/browser-test.js b/testing/mochitest/browser-test.js @@ -143,7 +143,7 @@ function testInit() { let processCount = Services.prefs.getIntPref("dom.ipc.processCount", 1); if (processCount > 1) { - // Currently starting a content process is slow, to aviod timeouts, let's + // Currently starting a content process is slow, to avoid timeouts, let's // keep alive content processes. Services.prefs.setIntPref("dom.ipc.keepProcessesAlive.web", processCount); } @@ -344,6 +344,10 @@ Tester.prototype = { this._coverageCollector = new CoverageCollector(coveragePath); } + if (gConfig.debugger || gConfig.debuggerInteractive || gConfig.jsdebugger) { + gTimeoutSeconds = 24 * 60 * 60 * 1000; // 24 hours + } + this.structuredLogger.info("*** Start BrowserChrome Test Results ***"); Services.console.registerListener(this); this._globalProperties = Object.keys(window);