treat empty url-prefix() as non-matching

This commit is contained in:
tophf 2020-10-03 20:17:59 +03:00
parent cb89be8682
commit 6b2dff6687

View File

@ -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: