From 567508f61970734d439721b6a7af7ee91c98d3b5 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 26 Jan 2024 06:46:21 -0500 Subject: [PATCH] Fix regression in looking up scriptlets for entity Related feedback: https://www.reddit.com/r/uBlockOrigin/comments/19fihsu/ --- src/js/scriptlet-filtering.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 764e340a9..fed2e23ec 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -349,17 +349,16 @@ export class ScriptletFilteringEngineEx extends ScriptletFilteringEngine { if ( typeof details.frameId !== 'number' ) { return; } const hostname = hostnameFromURI(details.url); + const domain = domainFromHostname(hostname); - const request = { + const scriptletDetails = this.retrieve({ tabId: details.tabId, frameId: details.frameId, url: details.url, hostname, - domain: domainFromHostname(hostname), - entity: entityFromDomain(hostname), - }; - - const scriptletDetails = this.retrieve(request); + domain, + entity: entityFromDomain(domain), + }); if ( scriptletDetails === undefined ) { contentScriptRegisterer.unregister(hostname); return;