treat empty url-prefix() as non-matching
This commit is contained in:
parent
cb89be8682
commit
6b2dff6687
|
@ -586,7 +586,7 @@ const styleManager = (() => {
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (section.urlPrefixes && section.urlPrefixes.some(p => query.url.startsWith(p))) {
|
if (section.urlPrefixes && section.urlPrefixes.some(p => p && query.url.startsWith(p))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// as per spec the fragment portion is ignored in @-moz-document:
|
// as per spec the fragment portion is ignored in @-moz-document:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user