| 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 d7b291a15f11e026398cc7d282d9d597b9c486cb..d3fe5c0c693eca65b0a768bc22ce5a4493a98085 100644 | 
| --- a/components/autofill/content/renderer/password_autofill_agent.cc | 
| +++ b/components/autofill/content/renderer/password_autofill_agent.cc | 
| @@ -1030,6 +1030,14 @@ void PasswordAutofillAgent::DidStopLoading() { | 
| } | 
|  | 
| void PasswordAutofillAgent::FrameDetached() { | 
| +  // If a sub frame has been destroyed while the user was entering information | 
| +  // into a password form, try to save the data. See https://crbug.com/450806 | 
| +  // for examples of sites that perform login using this technique. | 
| +  if (render_frame()->GetWebFrame()->parent() && | 
| +      ProvisionallySavedPasswordIsValid()) { | 
| +    Send(new AutofillHostMsg_InPageNavigation(routing_id(), | 
| +                                              *provisionally_saved_form_)); | 
| +  } | 
| FrameClosing(); | 
| } | 
|  | 
|  |