tor-browser

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

commit 73e21f505e8f0930fecaf4045915396b52b1093f
parent 8bc0bdaaa050082b5f64d705901ae9bd9fc8d0bd
Author: Valentin Gosu <valentin.gosu@gmail.com>
Date:   Fri, 17 Oct 2025 07:28:53 +0000

Bug 1994728 - Also fix dns_service_wrap test r=necko-reviewers,kershaw

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

Diffstat:
Mnetwerk/test/unit_ipc/test_dns_service_wrap.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/netwerk/test/unit_ipc/test_dns_service_wrap.js b/netwerk/test/unit_ipc/test_dns_service_wrap.js @@ -2,6 +2,14 @@ // Run test script in content process instead of chrome (xpcshell's default) // +const overrideService = Cc[ + "@mozilla.org/network/native-dns-override;1" +].getService(Ci.nsINativeDNSResolverOverride); + +// This domain used to resolve. We fake the response to avoid +// depending on the network for automated tests. +overrideService.addIPOverride("xn--bcher-kva.org", "127.0.0.1"); + function run_test() { run_test_in_child("../unit/test_dns_service.js"); }