[ios] Dismiss the InfobarModal after Never for This Site is tapped.
The password InfobarModal was never getting dismissed after deleting the backing Infobar delegate. It was only working previously because deleting the delegate dismissed the banner which had a side effect of dismissing the modal. After changes on https://crrev.com/c/1670393/ the banner will no longer dismiss the modal, so now we have to explicitly dismiss the Modal before deleting the backing Infobar delegate. This CL also dismisses the Modal if the detachView gets called. This way the user won't be able to manipulate the Modal/Infobar once the Infobar has been destroyed. Bug: 978384 Change-Id: I0f8578bab082b16887111328931a356870455258 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1676912Reviewed-by:Chris Lu <thegreenfrog@chromium.org> Commit-Queue: Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#672526}
Showing
Please register or sign in to comment