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

Unified Diff: ios/web/navigation/navigation_item_impl.mm

Issue 2706173003: change navigation initiation type default value to RENDERER_INITIATED (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_item_impl.mm
diff --git a/ios/web/navigation/navigation_item_impl.mm b/ios/web/navigation/navigation_item_impl.mm
index 1757cd998998640c6f9a0b5764aa0e8032c41445..8c027067b09746b8b65710e80499cd033b57680b 100644
--- a/ios/web/navigation/navigation_item_impl.mm
+++ b/ios/web/navigation/navigation_item_impl.mm
@@ -46,7 +46,7 @@ static int GetUniqueIDInConstructor() {
is_created_from_hash_change_(false),
should_skip_repost_form_confirmation_(false),
navigation_initiation_type_(
- web::NavigationInitiationType::USER_INITIATED),
+ web::NavigationInitiationType::RENDERER_INITIATED),
is_unsafe_(false),
facade_delegate_(nullptr) {}
@@ -308,7 +308,8 @@ static int GetUniqueIDInConstructor() {
void NavigationItemImpl::ResetForCommit() {
// Any state that only matters when a navigation item is pending should be
// cleared here.
- SetNavigationInitiationType(web::NavigationInitiationType::USER_INITIATED);
+ SetNavigationInitiationType(
+ web::NavigationInitiationType::RENDERER_INITIATED);
kkhorimoto 2017/02/21 18:53:19 This should remain as USER_INITIATED. Once a REND
Eugene But (OOO till 7-30) 2017/02/21 19:03:40 Is this actually true? During back forward navigat
kkhorimoto 2017/02/21 19:28:11 That was at least the intention of this function w
Eugene But (OOO till 7-30) 2017/02/21 19:33:29 NavigationEntry also marks the entry as user-initi
liaoyuke 2017/02/21 22:56:17 Got it! Thank you for explaining!
}
} // namespace web
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698