Loading progress bar is not dismissed when repost warning is canceled |
|||||
Issue descriptionThis only happens when #slim-navigation-manager is enabled. Steps to reproduce: (1) Visit http://output.jsbin.com/jikoyac (2) Click on "Submit" (3) After example.com loads, refresh the page. (4) Click on "Cancel" in the repost warning dialog Actual result: Loading progress bar is shown and remains visible. See attached video. Expected result: Loading progress bar is not visible.
,
Sep 12
,
Sep 14
It seems that this may not be a very common use case, since it only affects repost. Leaving it as RBS now, but P3, so if we can't get to it in time, maybe the RBS label can be dropped.
,
Sep 28
After https://chromium-review.googlesource.com/c/chromium/src/+/1243323, loading bar will be dismissed if user cancels, though it is still visible briefly. See attached screenshot. I investigated the idea from comment #1. It turns out on reload, [CRWWebController -webViewLoadingStateDidChange] KVO callback triggers with |webView.loading| being true before the |webView:decidePolicyForNavigationAction| callback, which is where we display the repost confirmation. We can add special logic to try to ignore the |isLoading| KVO if we know the current request is a repost, but I'm not convinced that it's worth the trouble. eugenebut@: do you think the current fix is acceptable?
,
Sep 28
Thanks Danyao! I think the current fix is totally acceptable. There are quite a few cases where Chrome briefly shows toolbar progress for no good reason, and I feel like form repost is more like an edge case.
,
Sep 28
Excellent! Thanks for confirming. :)
,
Oct 1
Verified in: App Version: 71.0.3567.0 canary Devices: iPad Air, iPhone 8 Plus iOS Version: 11.4.1, 12.1 beta 1 Loading progress bar is dismissed when repost warning is cancelled |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by danyao@chromium.org
, Jul 20Labels: -ReleaseBlock-Beta -Pri-2 -M-69 Pri-3