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 ea28c2697cebc9b5f1f5ae09eee5a01387f3931b..48bb21bd1248a26feb690742476da65ad28f7f1c 100644 |
--- a/ios/web/web_state/ui/crw_web_controller.mm |
+++ b/ios/web/web_state/ui/crw_web_controller.mm |
@@ -2084,13 +2084,11 @@ - (void)triggerPendingLoad { |
- (BOOL)shouldReload:(const GURL&)destinationURL |
transition:(ui::PageTransition)transition { |
// Do a reload if the user hits enter in the address bar or re-types a URL. |
- CRWSessionController* sessionController = |
- _webStateImpl->GetNavigationManagerImpl().GetSessionController(); |
web::NavigationItem* item = |
_webStateImpl->GetNavigationManagerImpl().GetVisibleItem(); |
return (transition & ui::PAGE_TRANSITION_FROM_ADDRESS_BAR) && item && |
(destinationURL == item->GetURL() || |
- destinationURL == [sessionController currentEntry].originalUrl); |
+ destinationURL == item->GetOriginalRequestURL()); |
} |
// Reload either the web view or the native content depending on which is |