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

Unified Diff: ios/web/interstitials/web_interstitial_impl.mm

Issue 2455463004: [ios] Fixed SSL Interstitial reload. (Closed)
Patch Set: Created 4 years, 2 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 | « ios/chrome/browser/ssl/ios_ssl_error_handler.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/interstitials/web_interstitial_impl.mm
diff --git a/ios/web/interstitials/web_interstitial_impl.mm b/ios/web/interstitials/web_interstitial_impl.mm
index 35d785a8e9dfe9018f163fb285abb34551bcff79..fb5ef39d6c0d90c6e3d2192c15303c478cfd2910 100644
--- a/ios/web/interstitials/web_interstitial_impl.mm
+++ b/ios/web/interstitials/web_interstitial_impl.mm
@@ -83,11 +83,16 @@ void WebInterstitialImpl::DontProceed() {
// Clear the pending entry, since that's the page that's not being
// proceeded to.
- GetWebStateImpl()->GetNavigationManager()->DiscardNonCommittedItems();
+ NavigationManager* nav_manager = GetWebStateImpl()->GetNavigationManager();
+ nav_manager->DiscardNonCommittedItems();
Hide();
GetDelegate()->OnDontProceed();
+
+ // Reload last committed entry.
+ nav_manager->Reload(true /* check_for_repost */);
+
delete this;
}
« no previous file with comments | « ios/chrome/browser/ssl/ios_ssl_error_handler.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698