commit d4a1bafec5e85b963d187b30b91b9d59384551c3
parent 27f5ac699af07308304ac033e7b81642598dc237
Author: Valentin Gosu <valentin.gosu@gmail.com>
Date: Wed, 5 Nov 2025 14:35:04 +0000
Bug 1998271 - URLPattern "*" doesn't match letter "x" r=necko-reviewers,jesup
I think the `filter.unwrap_or('x'.to_owned()` was a TODO leftover from
the initial development.
Differential Revision: https://phabricator.services.mozilla.com/D271361
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netwerk/base/urlpattern_glue/src/helpers.rs b/netwerk/base/urlpattern_glue/src/helpers.rs
@@ -353,8 +353,8 @@ impl From<Uq::InnerMatcher> for UrlpInnerMatcher {
inner_type: UrlpInnerMatcherType::SingleCapture,
literal: nsCString::from("").to_owned(),
allow_empty, // maybe should be an optional
- filter_exists: true,
- filter: filter.unwrap_or('x'.to_owned()),
+ filter_exists: filter.is_some(),
+ filter: filter.unwrap_or('\0'),
regexp: nsCString::from("").to_owned(),
}
}