mirror of https://github.com/gorhill/uBlock.git
[mv3] Fix `removeparam` potentially causing invalid DNR rules
This commit is contained in:
parent
17e0a35650
commit
f9ce06977d
|
@ -4652,11 +4652,13 @@ StaticNetFilteringEngine.prototype.dnrFromCompiled = function(op, context, ...ar
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if ( rule.condition.resourceTypes === undefined ) {
|
if ( rule.condition.resourceTypes === undefined ) {
|
||||||
rule.condition.resourceTypes = [
|
if ( rule.condition.excludedResourceTypes === undefined ) {
|
||||||
'main_frame',
|
rule.condition.resourceTypes = [
|
||||||
'sub_frame',
|
'main_frame',
|
||||||
'xmlhttprequest',
|
'sub_frame',
|
||||||
];
|
'xmlhttprequest',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// https://github.com/uBlockOrigin/uBOL-home/issues/140
|
// https://github.com/uBlockOrigin/uBOL-home/issues/140
|
||||||
// Mitigate until DNR API flaw is addressed by browser vendors
|
// Mitigate until DNR API flaw is addressed by browser vendors
|
||||||
|
|
Loading…
Reference in New Issue