From d6471b3556b9e1678227d82eb940add7d2cd5ae6 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 24 May 2019 13:08:27 -0400 Subject: [PATCH] Fix https://github.com/uBlockOrigin/uMatrix-issues/issues/159 --- src/js/traffic.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index 3186df1..ac1099a 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -203,9 +203,11 @@ var onBeforeSendHeadersHandler = function(details) { const requestHeaders = details.requestHeaders; // https://github.com/uBlockOrigin/uMatrix-issues/issues/155 + // https://github.com/uBlockOrigin/uMatrix-issues/issues/159 // TODO: import all filtering context improvements from uBO. - const srcHn = µmuri.hostnameFromURI(details.documentUrl) || - pageStore.pageHostname; + const srcHn = tabId >= 0 + ? pageStore.pageHostname + : µmuri.hostnameFromURI(details.documentUrl) || pageStore.pageHostname; // https://github.com/gorhill/httpswitchboard/issues/342 // Is this hyperlink auditing?