tor-browser

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

commit 18449793c18bd1414b0ee991b2d5126c351dc30d
parent 762a2f5afff16d20f9f2e36edd1b5a5ec3b4cb93
Author: Nika Layzell <nika@thelayzells.com>
Date:   Tue, 16 Dec 2025 04:53:44 +0000

Bug 1908693 - Part 2: Allow specifying a MOZ_TEST_URL environment variable, r=glandium,geckoview-reviewers,owlish

This provides a convenient mechanism for our test runner to specify the initial
URL to load in the test browser. An environment variable was chosen over the
command line for initial implementation simplicity, but it may be worth
changing how the URL is loaded in the future.

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

Diffstat:
Mmobile/ios/GeckoTestBrowser/GeckoTestBrowser/UI/RootViewController.swift | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mobile/ios/GeckoTestBrowser/GeckoTestBrowser/UI/RootViewController.swift b/mobile/ios/GeckoTestBrowser/GeckoTestBrowser/UI/RootViewController.swift @@ -84,7 +84,9 @@ class RootViewController: UIViewController { geckoview.session = session - if !homepage.isEmpty { + if let testUrl = ProcessInfo.processInfo.environment["MOZ_TEST_URL"] { + browse(to: testUrl) + } else if !homepage.isEmpty { browse(to: homepage) } }