Make object equivalent of frame for dynamic filtering purpose

Related issue:
- uBlockOrigin/uBlock-issues#2496
This commit is contained in:
Raymond Hill 2023-03-31 09:46:22 -04:00
parent b4ae2d3bf4
commit 0d26064a26
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -711,7 +711,7 @@ const PageStore = class {
const journal = this.journal;
const pivot = Math.max(0, this.journalLastCommitted);
const now = Date.now();
const { SCRIPT, SUB_FRAME } = µb.FilteringContext;
const { SCRIPT, SUB_FRAME, OBJECT } = µb.FilteringContext;
let aggregateAllowed = 0;
let aggregateBlocked = 0;
@ -729,7 +729,7 @@ const PageStore = class {
if ( itype === SCRIPT ) {
hnDetails.counts.inc(blocked, 'script');
this.counts.inc(blocked, 'script');
} else if ( itype === SUB_FRAME ) {
} else if ( itype === SUB_FRAME || itype === OBJECT ) {
hnDetails.counts.inc(blocked, 'frame');
this.counts.inc(blocked, 'frame');
} else {