[ios] Prevent WebStateList crash
A prior fix early exited the observer method |didDetachWebState| if the WebStateList is nil. We also logged a histogram to see how often we see that WebStateList is nil. The histogram shows that the WebStateList is never nil at that point. However, we are still seeing these real world crashes in a free function one frame lower in the call stack. This CL adds an early exit and histogram log to the free function, which is where the crash has always been occurring. Bug: 877792 Change-Id: Icd099af3e399a748fa744674cc6756cfac09cf4e Reviewed-on: https://chromium-review.googlesource.com/c/1384791 Commit-Queue: edchin <edchin@chromium.org> Reviewed-by:edchin <edchin@chromium.org> Reviewed-by:
Ilya Sherman <isherman@chromium.org> Reviewed-by:
Peter Lee <pkl@chromium.org> Cr-Commit-Position: refs/heads/master@{#618319}
Showing
Please register or sign in to comment