Fix invalid password save offer in some cases.

Here we fix few password save flaws:
1. Invalid password save offer when a password form was filled and then a non
password form was submitted.
2. A proper password form handling when a form is submitted into about:blank
iframe using "target" attribute. This is a valid flow which some websites use to send private information via iframe.

The iframe test is implemented exactly for the #2 flaw.

Bug: 854171
Change-Id: I39aec0d9b1f5fcbda551efb145f0c3be2456c0da
Commit-Queue: Alexey Khoroshilov <>
Reviewed-by: Vadym Doroshenko <>
Cr-Commit-Position: refs/heads/master@{#575239}
10 files changed