From 0458d01eb2aa3338c0a9a75343b255388674bd59 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 14 May 2018 08:11:50 -0400 Subject: [PATCH] handle initiator === "null" (see https://issues.adblockplus.org/ticket/6586) --- platform/chromium/vapi-webrequest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/chromium/vapi-webrequest.js b/platform/chromium/vapi-webrequest.js index d57f2e2fe..8fa29324e 100644 --- a/platform/chromium/vapi-webrequest.js +++ b/platform/chromium/vapi-webrequest.js @@ -109,7 +109,8 @@ vAPI.net.registerListeners = function() { // the URL of the origin from which the network request was made. if ( details.tabId === vAPI.noTabId && - typeof details.initiator === 'string' + typeof details.initiator === 'string' && + details.initiator !== 'null' ) { details.tabId = vAPI.anyTabId; details.documentUrl = details.initiator;