commit 326110ddbd205956a777f8ea3885811f8abe3157
parent e44734e251876fc025dd2f5398eec9eb48e8254c
Author: Atila Butkovits <abutkovits@mozilla.com>
Date: Wed, 26 Nov 2025 09:16:20 +0200
Revert "Bug 2002034: When matching for CompressionDictionaries pass the cache entry URI to URLPattern r=necko-reviewers,valentin" for causing xpc failures at test_dictionary_compression_dcb.js.
This reverts commit baecbcec1afd9a692858ec84e3991b4e97655a51.
Diffstat:
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/netwerk/cache2/Dictionary.cpp b/netwerk/cache2/Dictionary.cpp
@@ -169,7 +169,7 @@ bool DictionaryCacheEntry::Match(const nsACString& aFilePath,
aType)) != mMatchDest.NoIndex) {
UrlpPattern pattern;
UrlpOptions options;
- const nsCString base(mURI);
+ const nsCString base("https://foo.com/"_ns);
if (!urlp_parse_pattern_from_string(&mPattern, &base, options,
&pattern)) {
DICTIONARY_LOG(
diff --git a/netwerk/test/unit/test_dictionary_compression_dcb.js b/netwerk/test/unit/test_dictionary_compression_dcb.js
@@ -444,7 +444,7 @@ async function setupDicts() {
let dictKey = dictKeys[i];
let url = `${server.origin()}${path}`;
dump(
- `registering dictionary ${path} for match pattern ${DCB_TEST_DICTIONARIES[dictKey].pattern}\n`
+ `registering dictionary ${path} for match patter ${DCB_TEST_DICTIONARIES[dictKey].patterh}\n`
);
let chan = makeChan(url);
diff --git a/netwerk/test/unit/xpcshell.toml b/netwerk/test/unit/xpcshell.toml
@@ -487,7 +487,6 @@ run-sequentially = ["true"] # httpd server
run-sequentially = ["true"] # httpd server
["test_cache2_compression_dictionary.js"]
-run-sequentially = ["true"]
["test_cache2_nostore.js"]
@@ -596,13 +595,10 @@ prefs = ["content.cors.use_triggering_principal=true"] # See bug 1982916.
["test_defaultURI.js"]
["test_dictionary_compression_dcb.js"]
-run-sequentially = ["true"]
["test_dictionary_retrieval.js"]
-run-sequentially = ["true"]
["test_dictionary_storage.js"]
-run-sequentially = ["true"]
["test_dns_by_type_resolve.js"]