From 909e83ac118c242d598cc95173813de37ed066ca Mon Sep 17 00:00:00 2001
From: Dragana Damjanovic
Date: Fri, 26 Feb 2021 08:42:50 +0000
Subject: [PATCH] Bug 1689554 - Enable UDPSocket on the socket process and fix
a test r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106506
---
netwerk/build/components.conf | 1 +
netwerk/test/unit/test_trr_https_fallback.js | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/netwerk/build/components.conf b/netwerk/build/components.conf
index bd23d769ba2f..07f2d0e775b4 100644
--- a/netwerk/build/components.conf
+++ b/netwerk/build/components.conf
@@ -460,6 +460,7 @@ Classes = [
'contract_ids': ['@mozilla.org/network/udp-socket;1'],
'type': 'mozilla::net::nsUDPSocket',
'headers': ['/netwerk/base/nsUDPSocket.h'],
+ 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
},
{
'cid': '{ff41913b-546a-4bff-9201-dc9b2c032eba}',
diff --git a/netwerk/test/unit/test_trr_https_fallback.js b/netwerk/test/unit/test_trr_https_fallback.js
index 4349149a1010..fc76a01a927f 100644
--- a/netwerk/test/unit/test_trr_https_fallback.js
+++ b/netwerk/test/unit/test_trr_https_fallback.js
@@ -673,6 +673,11 @@ add_task(async function testH3Connection() {
);
Services.prefs.setBoolPref("network.http.http3.enabled", true);
+ Services.prefs.setIntPref(
+ "network.dns.httpssvc.http3_fast_fallback_timeout",
+ 100
+ );
+
await trrServer.registerDoHAnswers("test.h3.com", "HTTPS", [
{
name: "test.h3.com",