[Autofill Assistant] Fix crash when lite script ends.
The crash seems to happen because the delegate is deleted potentially while a call to Java is still pending. I assume (but am not sure) that JNI calls are put into the message queue and not executed immediately. The workaround for now is to use callbacks instead of a dedicated delegate, thereby circumventing lifecycle issues of the delegate. Bug: b/169129405 Change-Id: I6e34874141792df47a117cd1f7f045759f852254 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423885 Commit-Queue: Clemens Arbesser <arbesser@google.com> Reviewed-by:Sandro Maggi <sandromaggi@google.com> Reviewed-by:
Mathias Carlen <mcarlen@chromium.org> Cr-Commit-Position: refs/heads/master@{#809357}
Showing
Please register or sign in to comment