mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Make object equivalent of frame for dynamic filtering purpose
Related issue: - uBlockOrigin/uBlock-issues#2496
This commit is contained in:
parent
b4ae2d3bf4
commit
0d26064a26
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue