treat empty url-prefix() as non-matching

This commit is contained in:
tophf 2020-10-03 20:17:59 +03:00
parent c416fa7ca0
commit 3b83f02cd7

View File

@ -586,7 +586,7 @@ const styleManager = (() => {
) {
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;
}
// as per spec the fragment portion is ignored in @-moz-document: