mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +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
@ -377,7 +377,7 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
|
||||
};
|
||||
|
||||
onBeforeBehindTheSceneRequest.journalAddRequest = (fctxt, result) => {
|
||||
const { docHostname } = fctxt;
|
||||
const docHostname = fctxt.getDocHostname();
|
||||
if (
|
||||
docHostname !== hostname ||
|
||||
pageStoresToken !== µBlock.pageStoresToken
|
||||
@ -395,7 +395,7 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
|
||||
gcTimer = vAPI.setTimeout(gc, 30011);
|
||||
}
|
||||
for ( const pageStore of pageStores ) {
|
||||
pageStore.journalAddRequest(fctxt.hostname, result);
|
||||
pageStore.journalAddRequest(fctxt.getHostname(), result);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user