mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix bad access to hostname info from filtering context
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1398
Regression from:
- 6df32675b1
This commit is contained in:
parent
1ff8132216
commit
d4425ad753
1 changed files with 2 additions and 2 deletions
|
@ -377,7 +377,7 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
|
||||||
};
|
};
|
||||||
|
|
||||||
onBeforeBehindTheSceneRequest.journalAddRequest = (fctxt, result) => {
|
onBeforeBehindTheSceneRequest.journalAddRequest = (fctxt, result) => {
|
||||||
const { docHostname } = fctxt;
|
const docHostname = fctxt.getDocHostname();
|
||||||
if (
|
if (
|
||||||
docHostname !== hostname ||
|
docHostname !== hostname ||
|
||||||
pageStoresToken !== µBlock.pageStoresToken
|
pageStoresToken !== µBlock.pageStoresToken
|
||||||
|
@ -395,7 +395,7 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
|
||||||
gcTimer = vAPI.setTimeout(gc, 30011);
|
gcTimer = vAPI.setTimeout(gc, 30011);
|
||||||
}
|
}
|
||||||
for ( const pageStore of pageStores ) {
|
for ( const pageStore of pageStores ) {
|
||||||
pageStore.journalAddRequest(fctxt.hostname, result);
|
pageStore.journalAddRequest(fctxt.getHostname(), result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue