1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

Fix regression with reporting "important" in logger

Related feedback:
- a2a8ef7e85 (commitcomment-54972030)
This commit is contained in:
Raymond Hill 2021-08-17 07:32:54 -04:00
parent 053c8eb29e
commit 9ceef65f9a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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(