| 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 f77fc8663c5fdc4042dede4d58991c6d38c25f33..79ca3a8af824401d65a575173e5f1086552a726b 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -2209,9 +2209,11 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
|
|
| NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
|
| if (![userDefaults boolForKey:@"PendingIndexNavigationDisabled"]) {
|
| - BOOL sameDocumentNavigation =
|
| - [sessionController isSameDocumentNavigationBetweenEntry:fromEntry
|
| - andEntry:entries[index]];
|
| + [self clearTransientContentView];
|
| +
|
| + BOOL sameDocumentNavigation = [sessionController
|
| + isSameDocumentNavigationBetweenItem:fromEntry.navigationItem
|
| + andItem:toEntry.navigationItem];
|
| if (sameDocumentNavigation) {
|
| [self.sessionController goToEntryAtIndex:index];
|
|
|
|
|