Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Report exception/important matches through engine.matches API #4

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

antonok-edm
Copy link
Collaborator

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

@antonok-edm antonok-edm force-pushed the important-signature branch from 0204579 to b53294f Compare July 30, 2019 19:57
@antonok-edm antonok-edm marked this pull request as ready for review July 30, 2019 23:24
@antonok-edm antonok-edm requested a review from bbondy July 30, 2019 23:25
@antonok-edm antonok-edm changed the title Slight reworks to the engine.matches API Report exception/important matches through engine.matches API Jan 20, 2021
@antonok-edm antonok-edm merged commit 594e6a1 into master Jan 21, 2021
@antonok-edm antonok-edm deleted the important-signature branch January 21, 2021 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants