This introduces a new boolean output argument to engine.matches that represents whether or not a matched network filter is important.
Additionally, this changes saved_from_exception to just did_match_exception and uses true as the return value only when a filter matches. This way, it's possible to determine whether or not an exception matched even if no filter was matched.
Depends on changes from brave/adblock-rust/pull/42
Intended as part of the fix for brave/brave-browser#5440
This introduces a new boolean output argument to
engine.matches
that represents whether or not a matched network filter isimportant
.Additionally, this changes
saved_from_exception
to justdid_match_exception
and usestrue
as the return value only when a filter matches. This way, it's possible to determine whether or not an exception matched even if no filter was matched.Depends on changes from brave/adblock-rust/pull/42
Intended as part of the fix for brave/brave-browser#5440