Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace WidgetObserver::OnWidgetClosing() with OnWidgetDestroying()
In some cases, OnWidgetClosing() is not called when the widget is closed, resulting an invalid pointer |widget_| stored in WebContentsDisplayObserverView. This CL replaces OnWidgetClosing() with OnWidgetDestroying(), which is recommended in crbug.com/1240365 Bug: 1291728 Change-Id: I64fef8b30930f60220008809ee00f4385d6c3520 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3425473 Auto-Submit: Muyao Xu <muyaoxu@google.com> Reviewed-by: Takumi Fujimoto <takumif@chromium.org> Commit-Queue: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/main@{#965431}
- Loading branch information