1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +02:00

MV3 implicit Rule priority is 1, not 0

Related issue:
- https://github.com/uBlockOrigin/uBOL-issues/issues/30
This commit is contained in:
Raymond Hill 2023-03-03 16:52:28 -05:00
parent 82c73199e4
commit cd21a0bb9d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -769,7 +769,7 @@ class FilterImportant {
}
static dnrFromCompiled(args, rule) {
rule.priority = (rule.priority || 0) + 10;
rule.priority = (rule.priority || 1) + 10;
}
static keyFromArgs() {
@ -4416,7 +4416,7 @@ FilterContainer.prototype.dnrFromCompiled = function(op, context, ...args) {
}
break;
case 'redirect-rule': {
let priority = rule.priority || 0;
let priority = rule.priority || 1;
let token = rule.__modifierValue;
if ( token !== '' ) {
const match = /:(\d+)$/.exec(token);