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

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

Issue 2607053002: Remove POST data from navigations for which the state is replaced. (Closed)
Patch Set: rebase + fixes Created 3 years, 11 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 | ios/web/navigation/history_state_operations_inttest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_controller.mm
diff --git a/ios/web/navigation/crw_session_controller.mm b/ios/web/navigation/crw_session_controller.mm
index d175790efa26b6bb3168fac4cbfc65be230b00f4..32fd7940d70516b7f42c348e41653ce3aad4a708 100644
--- a/ios/web/navigation/crw_session_controller.mm
+++ b/ios/web/navigation/crw_session_controller.mm
@@ -544,6 +544,7 @@ - (void)updateCurrentEntryWithURL:(const GURL&)url
currentItem->SetURL(url);
currentItem->SetSerializedStateObject(stateObject);
currentItem->SetHasStateBeenReplaced(true);
+ currentItem->SetPostData(nil);
currentEntry.navigationItem->SetURL(url);
// If the change is to a committed entry, notify interested parties.
if (currentEntry != self.pendingEntry && _navigationManager)
« no previous file with comments | « no previous file | ios/web/navigation/history_state_operations_inttest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698