mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
Fix regression with reporting "important" in logger
Related feedback:
- a2a8ef7e85 (commitcomment-54972030)
This commit is contained in:
parent
053c8eb29e
commit
9ceef65f9a
@ -297,6 +297,9 @@ class LogData {
|
|||||||
isRegex: false,
|
isRegex: false,
|
||||||
};
|
};
|
||||||
filterUnits[iunit].logData(logData);
|
filterUnits[iunit].logData(logData);
|
||||||
|
if ( (categoryBits & Important) !== 0 ) {
|
||||||
|
logData.options.unshift('important');
|
||||||
|
}
|
||||||
if ( (categoryBits & ThirdParty) !== 0 ) {
|
if ( (categoryBits & ThirdParty) !== 0 ) {
|
||||||
logData.options.unshift('3p');
|
logData.options.unshift('3p');
|
||||||
} else if ( (categoryBits & FirstParty) !== 0 ) {
|
} else if ( (categoryBits & FirstParty) !== 0 ) {
|
||||||
@ -3477,7 +3480,7 @@ class FilterCompiler {
|
|||||||
// the block-important realm should be checked when and only when
|
// the block-important realm should be checked when and only when
|
||||||
// there is a matched exception filter, which important filters are
|
// there is a matched exception filter, which important filters are
|
||||||
// meant to override.
|
// meant to override.
|
||||||
if ( (this.action & BlockImportant) !== 0 ) {
|
if ( (this.action & ActionBitsMask) === BlockImportant ) {
|
||||||
this.action &= ~Important;
|
this.action &= ~Important;
|
||||||
units.push(FilterImportant.compile());
|
units.push(FilterImportant.compile());
|
||||||
this.compileToAtomicFilter(
|
this.compileToAtomicFilter(
|
||||||
|
Loading…
Reference in New Issue
Block a user