Loading bar does not go away when navigating forward |
|||
Issue descriptionA weird edge case exposed by https://crrev.com/c/1370374 and restoring session when some pages cannot be reached. How to reproduce: 1. load http://localhost:8009/somepage in new tab 2. load https://wikipedia.org 3. Tap Back button 4. Force kill Chrome 5. Kill the local test server 6. restart app => error page is displayed, because localhost is no longer reachable 7. Tap Forward button => wikipedia is loaded 8. Tap Back button => error page is shown 9. Tap Forward button => notice loading bar is visible and never goes away, even after wikipedia is loaded The specific localhost or wikipedia URLs don't matter. The key is to have a entry that is not reachable after session restoration, and an entry that is.
,
Dec 21
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8f2187bd41d8aa8ef5b2027d6beffcb25f48f7ea commit 8f2187bd41d8aa8ef5b2027d6beffcb25f48f7ea Author: Danyao Wang <danyao@chromium.org> Date: Fri Dec 21 20:52:39 2018 [iOS] Switch |didFinishNavigation| to operate on NavigationContext. This change prevents an edge case where |_navigationStates| contains a non-null NavigationContext for the key |nil|, which can happen in same-document back/forward navigation. This NavigationContext is incorrectly used later when calling [self didFinishNavigation:nil], when the caller expects there to be no navigation context. Outside of this pathological case, this refactor is a no-op as it simply extracted the lookup of NavigationContext from WKNavigation* from this method to the caller. Change-Id: If900a7cbed92d68a415ab2be8575f3e866f742ca Bug: 917162 Reviewed-on: https://chromium-review.googlesource.com/c/1387951 Commit-Queue: Danyao Wang <danyao@chromium.org> Reviewed-by: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#618589} [modify] https://crrev.com/8f2187bd41d8aa8ef5b2027d6beffcb25f48f7ea/ios/web/web_state/ui/crw_web_controller.mm
,
Dec 21
,
Jan 15
Verified on 73.0.3672.0 Canary, iPhoneXR iOS 12.1.2 Looks good. |
|||
►
Sign in to add a comment |
|||
Comment 1 by danyao@chromium.org
, Dec 20