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

Issue 2838593002: Allow storing null navigations in CRWWKNavigationStates. (Closed)

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

Description

Allow storing null navigations in CRWWKNavigationStates. This CL (6 of 7) is a part of large refactoring to create NavigationContext when navigation was started, not when it is finished. This refactoring will allow to pass the same instance of NavigationContext to DidStartNavigation and DidFinishNavigation (crbug.com/713836). Also this will allow to associate NavigationItem with NavigationContext object to commit non-latest navigation (crbug.com/712269). WKWebView passes null WKNavigation to WKNavigationDelegate callbacks for window opening navigation actions. This is a normal flow so CRWWKNavigationStates should be able to store null navigations. Because there can be at most one window opening navigation it is safe to use unique key for storing null navigation. BUG=713836, 712269 Review-Url: https://codereview.chromium.org/2838593002 Cr-Commit-Position: refs/heads/master@{#470439} Committed: https://chromium.googlesource.com/chromium/src/+/2c79b906de7b97f04ea867398b884ec9c0341839

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -39 lines) Patch
M ios/web/web_state/ui/crw_wk_navigation_states.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states.mm View 1 5 chunks +45 lines, -35 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Eugene But (OOO till 7-30)
3 years, 8 months ago (2017-04-24 14:04:50 UTC) #2
kkhorimoto
lgtm https://codereview.chromium.org/2838593002/diff/1/ios/web/web_state/ui/crw_wk_navigation_states.mm File ios/web/web_state/ui/crw_wk_navigation_states.mm (right): https://codereview.chromium.org/2838593002/diff/1/ios/web/web_state/ui/crw_wk_navigation_states.mm#newcode103 ios/web/web_state/ui/crw_wk_navigation_states.mm:103: _nullNavigation = static_cast<WKNavigation*>([NSNull null]); Is reinterpret_cast more appropriate ...
3 years, 7 months ago (2017-04-25 14:00:11 UTC) #3
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2838593002/diff/1/ios/web/web_state/ui/crw_wk_navigation_states.mm File ios/web/web_state/ui/crw_wk_navigation_states.mm (right): https://codereview.chromium.org/2838593002/diff/1/ios/web/web_state/ui/crw_wk_navigation_states.mm#newcode103 ios/web/web_state/ui/crw_wk_navigation_states.mm:103: _nullNavigation = static_cast<WKNavigation*>([NSNull null]); On 2017/04/25 14:00:11, kkhorimoto_ ...
3 years, 7 months ago (2017-04-26 05:51:33 UTC) #4
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/2838593002/20001
3 years, 7 months ago (2017-05-09 21:25:52 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 23:50:10 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2c79b906de7b97f04ea867398b88...

Powered by Google App Engine
This is Rietveld 408576698