| Index: components/autofill/content/renderer/password_autofill_agent.cc
|
| diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
|
| index 8b18ee962940f9bb53417d6d17151097d113732a..fcbc6094fd5f004c9c89bbf908cef7cde68c2965 100644
|
| --- a/components/autofill/content/renderer/password_autofill_agent.cc
|
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc
|
| @@ -1429,7 +1429,8 @@ void PasswordAutofillAgent::OnAutofillUsernameAndPasswordDataReceived(
|
| void PasswordAutofillAgent::OnFindFocusedPasswordForm() {
|
| std::unique_ptr<PasswordForm> password_form;
|
|
|
| - blink::WebElement element = render_frame()->GetFocusedElement();
|
| + blink::WebElement element =
|
| + render_frame()->GetWebFrame()->document().focusedElement();
|
| if (!element.isNull() && element.hasHTMLTagName("input")) {
|
| blink::WebInputElement input = element.to<blink::WebInputElement>();
|
| if (input.isPasswordField() && !input.form().isNull()) {
|
|
|