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