aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--background/webrequest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/background/webrequest.js b/background/webrequest.js
index 446ad45..faff837 100644
--- a/background/webrequest.js
+++ b/background/webrequest.js
@@ -128,7 +128,8 @@ function on_before_request(details)
if (match) {
const queried_url = decodeURIComponent(match[1]);
- if (details.initiator && !queried_url.startsWith(details.initiator)) {
+ if (details.initiator && details.initiator !== "null" &&
+ !queried_url.startsWith(details.initiator)) {
console.warn(`Haketilo: Blocked suspicious query of '${queried_url}' by '${details.initiator}'. This might be the result of page fingerprinting the browser.`);
return {cancel: true};
}