mirror of https://github.com/gorhill/uBlock.git
Fix regression in looking up scriptlets for entity
Related feedback: https://www.reddit.com/r/uBlockOrigin/comments/19fihsu/
This commit is contained in:
parent
663df76e8a
commit
567508f619
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue