In the case of password managers, amy decent one will put their DOM elements in a closed shadowDOM root, which prevents the page scripts from interacting with it entirely.
Shadow DOM is not a security boundary, and can be bypassed.
Shadow DOM is not a security boundary, and can be bypassed.