mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +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.
|
// Prioritize capturing text content from elements rather than nodes.
|
||||||
currentElement = currentElement.parentElement || currentElement.parentNode;
|
currentElement = currentElement.parentElement || currentElement.parentNode;
|
||||||
|
if (!currentElement) {
|
||||||
|
return textContentItems;
|
||||||
|
}
|
||||||
|
|
||||||
let siblingElement = nodeIsElement(currentElement)
|
let siblingElement = nodeIsElement(currentElement)
|
||||||
? currentElement.previousElementSibling
|
? currentElement.previousElementSibling
|
||||||
|
Loading…
Reference in New Issue
Block a user