Copy SSLStatus instead of storing the pointer to avoid crash
Currently in WebStateImpl::ClearTransientContent we store a pointer to the SSLStatus of old visible nav-item, and compare it with the new nav-item after interstitial is dismissed. This will lead to a crash if old nav-item is released in the middle. Copying SSLStatus to a local variable will avoid this crash. Bug: 1001622 Change-Id: I0f0e78c5c8297516f79eb56c56b97b8a5c4d92e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816473Reviewed-by:Eugene But <eugenebut@chromium.org> Commit-Queue: Yi Su <mrsuyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#698844}
Showing
Please register or sign in to comment