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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 1575683002: Don't try to store POST data for a nil CWRSessionEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 8351079b65535476e64fb92b68f143288b083016..e8eee55a4b1a7901d1b72daa16a6548500bcff7b 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -2819,8 +2819,11 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
}
if ([[request HTTPMethod] isEqualToString:@"POST"]) {
- [self cachePOSTDataForRequest:request
- inSessionEntry:[self currentSessionEntry]];
+ CRWSessionEntry* currentEntry = [self currentSessionEntry];
+ // TODO(crbug.com/570699): Remove this check once it's no longer possible to
+ // have no current entries.
+ if (currentEntry)
+ [self cachePOSTDataForRequest:request inSessionEntry:currentEntry];
}
return YES;
« 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