Ensure ContentAutofillDriver exists before getting AutofillManager
During Autofill captured sites tests, when there is a new popup, it appears the RenderFrameHost is not always owned by the current WebContents. This may be a further issue with the way current_main_rfh_ but this change just ensures that the pointer exists before attempting to retrieve it's autofill_manager instance. This fixes 2 existing Autofill captured sites tests. Bug: 988532 Change-Id: I0b60679843900c8313fc18f71e00cd64faf78528 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724494 Commit-Queue: Ian Struiksma <ianstruiksma@google.com> Reviewed-by:Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#683283}
Showing
Please register or sign in to comment