angler-fishThe Vulnerability History Project

Remove FrameDetached and FrameWillClose listeners from AutofillAgent.

      AutofillAgent::FrameDetached is no longer necessary because form_cache_ only holds the forms for a single frame.
AutofillAgent::FrameWillClose is only called on the actual closing frame (which might be a parent frame).
AutofillAgent::FrameDetached can't take the place of AutofillAgent::FrameWillClose because the RenderFrame disables sending IPCs during detachment.

Therefore, move the automatic closing of rAc from the renderer (autofill_agent.cc) to the browser (chrome_autofill_client.cc).

For PasswordAutofillAgent, add FrameDetached to RenderFrameHost.

BUG=433486

Review URL: https://codereview.chromium.org/796493004

Cr-Commit-Position: refs/heads/master@{#310162}
    
commit 1dbe123c5e7b2d41e517049c1b98d8ad75563b98
+1 -1
+1 -1
+1 -1
+2 -88
+6 -22
+3 -12
+45
+3
+11 -4
+7 -3
+4 -4
+7 -2
+31 -1
+5 -1
+8 -2
+2 -1
+1 -1
+1 -1
+1 -1
+1 -1
+1 -8
-1
expand_less