mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
[PM-6575] Collection of page details might error when getting text content from field sibilings (#8169)
This commit is contained in:
parent
34fbfaf2ee
commit
16bbddf0e7
@ -755,6 +755,9 @@ class CollectAutofillContentService implements CollectAutofillContentServiceInte
|
||||
|
||||
// Prioritize capturing text content from elements rather than nodes.
|
||||
currentElement = currentElement.parentElement || currentElement.parentNode;
|
||||
if (!currentElement) {
|
||||
return textContentItems;
|
||||
}
|
||||
|
||||
let siblingElement = nodeIsElement(currentElement)
|
||||
? currentElement.previousElementSibling
|
||||
|
Loading…
Reference in New Issue
Block a user