Gesture Nav: Protect against the case when navigation completes as soon as it is requested.
If DidStopLoading is called on WebContentsObserver immeditely after navigation is requested, then window_ in could be released via StopObservingIfDone as soon as GoForward/GoBack is called OerscrollNavigationOverlay::OnOverscrollCompleted requests navigaions by calling GoForward/GoBack on the controller. If these navigations immeditely trigger DidStopLoading, main_window->SetTransform would segfault. Protect against this case by setting up the transforms and window positioning before doing navigation. BUG=623620 Review-Url: https://codereview.chromium.org/2102283002 Cr-Commit-Position: refs/heads/master@{#403186}
Showing
Please register or sign in to comment