From 6b2dff668730791b9c7fe78c3f52e85ddf44cb9f Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 3 Oct 2020 20:17:59 +0300 Subject: [PATCH] treat empty url-prefix() as non-matching --- background/style-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/style-manager.js b/background/style-manager.js index ff18192d..4ddb6411 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -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: