From a708cec131a0b4cd4a81b9e1b7969f80a6225cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Luba=C5=84ski?= Date: Tue, 17 Oct 2023 11:46:34 +0200 Subject: [PATCH] Fix request metadata for Firefox (#1338) --- extension-manifest-v3/src/background/utils/request.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extension-manifest-v3/src/background/utils/request.js b/extension-manifest-v3/src/background/utils/request.js index c74a22fac..c94c5f6fc 100644 --- a/extension-manifest-v3/src/background/utils/request.js +++ b/extension-manifest-v3/src/background/utils/request.js @@ -30,6 +30,7 @@ export default class ExtendedRequest extends Request { hostname: parsedUrl.hostname || '', url: details.url, + sourceUrl, sourceDomain: parsedSourceUrl.domain || '', sourceHostname: parsedSourceUrl.hostname || '', @@ -47,6 +48,7 @@ export default class ExtendedRequest extends Request { this.blocked = false; this.modified = false; + this.sourceUrl = data.sourceUrl; this.sourceDomain = data.sourceDomain; this.sourceHostname = data.sourceHostname; }