Do not select background images as best candidate in picker

Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/s2lrm0/picker_cant_select_and_block_this/
This commit is contained in:
Raymond Hill 2022-01-13 09:24:04 -05:00
parent 2b65f25dfd
commit ebaa8a8bb2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ const netFilterFromElement = function(elem) {
const pattern = mergeStrings(urls);
if ( bestCandidateFilter === null ) {
if ( bestCandidateFilter === null && elem.matches('html,body') === false ) {
bestCandidateFilter = {
type: 'net',
filters: candidates,