tor-browser

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

commit fcda48a506bce62b8e7f5698adb6bdc638c1684c
parent 97729e2bed94a28e4f5710a1229821887c43d8ed
Author: Randell Jesup <rjesup@mozilla.com>
Date:   Thu, 20 Nov 2025 15:02:14 +0000

Bug 2001262: Enable Compression Dictionary feature for tests via pref r=necko-reviewers,kershaw

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

Diffstat:
Mnetwerk/test/unit/test_cache2_compression_dictionary.js | 1+
Mnetwerk/test/unit/test_dictionary_compression_dcb.js | 1+
Mnetwerk/test/unit/test_dictionary_retrieval.js | 1+
Mnetwerk/test/unit/test_dictionary_storage.js | 1+
Mtesting/web-platform/meta/fetch/compression-dictionary/__dir__.ini | 2+-
5 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/netwerk/test/unit/test_cache2_compression_dictionary.js b/netwerk/test/unit/test_cache2_compression_dictionary.js @@ -76,6 +76,7 @@ function serveCompressedResource(request, response) { } add_setup(async function () { + Services.prefs.setBoolPref("network.http.dictionaries.enable", true); if (!server) { server = new NodeHTTPSServer(); await server.start(); diff --git a/netwerk/test/unit/test_dictionary_compression_dcb.js b/netwerk/test/unit/test_dictionary_compression_dcb.js @@ -472,6 +472,7 @@ async function setupDicts() { } add_setup(async function () { + Services.prefs.setBoolPref("network.http.dictionaries.enable", true); if (!server) { server = await setupDCBTestServer(); } diff --git a/netwerk/test/unit/test_dictionary_retrieval.js b/netwerk/test/unit/test_dictionary_retrieval.js @@ -63,6 +63,7 @@ async function sync_from_server() { } add_setup(async function () { + Services.prefs.setBoolPref("network.http.dictionaries.enable", true); if (!server) { server = await setupServer(); } diff --git a/netwerk/test/unit/test_dictionary_storage.js b/netwerk/test/unit/test_dictionary_storage.js @@ -46,6 +46,7 @@ const TEST_DICTIONARIES = { let server = null; add_setup(async function () { + Services.prefs.setBoolPref("network.http.dictionaries.enable", true); if (!server) { server = await setupServer(); } diff --git a/testing/web-platform/meta/fetch/compression-dictionary/__dir__.ini b/testing/web-platform/meta/fetch/compression-dictionary/__dir__.ini @@ -1 +1 @@ -prefs: [network.cache.purge_disable:true] +prefs: [network.http.dictionaries.enable:true, network.cache.purge_disable:true]