 Chromium Code Reviews
 Chromium Code Reviews Issue 2398733004:
  Do not SendPasswordForms when LocalFrame is being detached  (Closed)
    
  
    Issue 2398733004:
  Do not SendPasswordForms when LocalFrame is being detached  (Closed) 
  | 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 0397c3b7ffd4a80fb39fcdb8b8133cfcfd24b1ff..521fd48258658bca126c1dc06153f356b19ffbbb 100644 | 
| --- a/components/autofill/content/renderer/password_autofill_agent.cc | 
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc | 
| @@ -946,7 +946,10 @@ void PasswordAutofillAgent::SendPasswordForms(bool only_visible) { | 
| logger->LogBoolean(Logger::STRING_ONLY_VISIBLE, only_visible); | 
| } | 
| - blink::WebFrame* frame = render_frame()->GetWebFrame(); | 
| + blink::WebLocalFrame* frame = render_frame()->GetWebFrame(); | 
| 
esprehn
2016/10/07 06:55:23
Why do we get here when doing stopAllLoaders? I'd
 
kojii
2016/10/07 07:03:01
We seem to call didFinishLoad() even when close/ca
 
vabr (Chromium)
2016/10/07 11:00:48
Just to make sure I understand correctly -- it is
 
vabr (Chromium)
2016/10/07 11:00:48
+1 to esprehn's concern. The comment at WebFrameCl
 
kojii
2016/10/07 11:32:44
I'm not very familiar with code outside Blink, but
 
kojii
2016/10/07 11:45:08
Actually both tkent@ and I +1 too; cancel and clos
 | 
| + if (frame->isInStopAllLoaders()) | 
| + return; | 
| + | 
| // Make sure that this security origin is allowed to use password manager. | 
| blink::WebSecurityOrigin origin = frame->document().getSecurityOrigin(); | 
| if (logger) { |