[Mfill Android][Crash Fix] Don't use invalid origins
Before this CL, we would occasionally crash when refreshing suggestions for a field right after it was unfocused. To prevent this, we now check that the focus is set and if it isn't, we use an opaque origin for which we can never have suggestions since it is a unique Nonce element. Bug: 957549 Change-Id: I4118b5ea9b7d44416f2f5b3d652cba348487c2df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635570 Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Cr-Commit-Position: refs/heads/master@{#665526}
Showing
Please register or sign in to comment