[bfcache] Make Autofill to create driver on demand.
The Autofill component is associating an Autofill driver on every RenderFrameHost by observing: - WebContentsObserver::RenderFrameCreated(render_frame_host) - WebContentsObserver::RenderFrameDeleted(render_frame_host) The problem is that it starts observing when the WebContent is being added to the tab strip. It means some RenderFrameCreated events are missing. To resolve that, this component was simulating receiving RenderFrameCreated for every active frame. This is not sufficient, because it misses RenderFrameHost pending deletion and the ones in the BackForwardCache as well. To fix that, create the Autofill driver on demand when they are needed. Bug: 999842 Change-Id: I64e86f9b795f3a40dc5340d49132a120912b5530 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1826885Reviewed-by:Lowell Manners <lowell@chromium.org> Reviewed-by:
Vadym Doroshenko <dvadym@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#700228}
Showing
Please register or sign in to comment