Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Issue 2601083003: [ios] Correctly determine last seen WKNavigation object. (Closed)

Created:
3 years, 11 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 11 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Correctly determine last seen WKNavigation object. When double tapping on Forward navigation button the following happens: - loadRequest: is called for the first Forward Tap (WKNavigation #1) - loadRequest: is called for the second Forward Tap (WKNavigation #2) - didStartProvisionalNavigation: is called for WKNavigation #1 - didFailProvisionalNavigation: is called for WKNavigation #1 CRWWebController used to record WKNavigation #1 as latest navigation in didStartProvisionalNavigation: overriding WKNavigation #2. Later inside didFailProvisionalNavigation: CRWWebController cancelled the load because WKNavigation #1 was determined as latest. This CL replaces _latestWKNavigation object with CRWWKNavigationStates object which allows better tracking of latest WKNavigation object. BUG=677327 Committed: https://crrev.com/5f16753d7bb612d6afb2e290df9299a34a01a696 Cr-Commit-Position: refs/heads/master@{#441287}

Patch Set 1 #

Patch Set 2 : Added missing files #

Patch Set 3 : Self review #

Total comments: 1

Patch Set 4 : Fixed compilation #

Patch Set 5 : Do not DCHECK on multiple redirects #

Total comments: 6

Patch Set 6 : Addressed review comments. #

Total comments: 4

Patch Set 7 : Addressed more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -19 lines) Patch
M ios/web/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 14 chunks +40 lines, -19 lines 0 comments Download
A ios/web/web_state/ui/crw_wk_navigation_states.h View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
A ios/web/web_state/ui/crw_wk_navigation_states.mm View 1 2 3 4 5 1 chunk +113 lines, -0 lines 0 comments Download
A ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2601083003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm File ios/web/web_state/ui/crw_web_controller.mm (left): https://codereview.chromium.org/2601083003/diff/40001/ios/web/web_state/ui/crw_web_controller.mm#oldcode3589 ios/web/web_state/ui/crw_web_controller.mm:3589: if (self.sessionController.pendingEntryIndex != -1 && This is not needed ...
3 years, 11 months ago (2016-12-29 02:18:51 UTC) #5
kkhorimoto
looks good, but have some nits. https://codereview.chromium.org/2601083003/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2601083003/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode14 ios/web/web_state/ui/crw_wk_navigation_states.h:14: enum WKNavigationState { ...
3 years, 11 months ago (2017-01-03 22:29:31 UTC) #16
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2601083003/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2601083003/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode14 ios/web/web_state/ui/crw_wk_navigation_states.h:14: enum WKNavigationState { On 2017/01/03 22:29:31, kkhorimoto_ wrote: > ...
3 years, 11 months ago (2017-01-04 00:09:27 UTC) #18
kkhorimoto
lgtm with a couple nits https://codereview.chromium.org/2601083003/diff/100001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2601083003/diff/100001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode44 ios/web/web_state/ui/crw_wk_navigation_states.h:44: // should have either ...
3 years, 11 months ago (2017-01-04 00:13:58 UTC) #20
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2601083003/diff/100001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2601083003/diff/100001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode44 ios/web/web_state/ui/crw_wk_navigation_states.h:44: // should have either WKNavigationState::REQUESTED or WKNavigationState::STARTED On ...
3 years, 11 months ago (2017-01-04 00:20:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2601083003/120001
3 years, 11 months ago (2017-01-04 00:20:41 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
3 years, 11 months ago (2017-01-04 01:36:17 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 01:38:27 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5f16753d7bb612d6afb2e290df9299a34a01a696
Cr-Commit-Position: refs/heads/master@{#441287}

Powered by Google App Engine
This is Rietveld 408576698