Skip to content

Commit

Permalink
Refactor [vXXX] auto update credential provider script (#20755)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jun 24, 2024
1 parent 25d5e92 commit 8d13be0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions firefox-ios/Client/Assets/CC_Script/FormAutofillUtils.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,19 @@ FormAutofillUtils = {
element.checkVisibility &&
!FormAutofillUtils.ignoreVisibilityCheck
) {
return element.checkVisibility({
checkOpacity: true,
checkVisibilityCSS: true,
});
if (
!element.checkVisibility({
checkOpacity: true,
checkVisibilityCSS: true,
})
) {
return false;
}
} else if (element.hidden || element.style.display == "none") {
return false;
}

return !element.hidden && element.style.display != "none";
return element.getAttribute("aria-hidden") != "true";
},

/**
Expand Down

0 comments on commit 8d13be0

Please sign in to comment.