| Index: ios/chrome/browser/tabs/tab.mm
|
| diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
|
| index ecaf6d83caf592f9d55d4303377fe7c7529b1020..756c856bd407813cb79ca67007e5bacb81e2ad50 100644
|
| --- a/ios/chrome/browser/tabs/tab.mm
|
| +++ b/ios/chrome/browser/tabs/tab.mm
|
| @@ -128,6 +128,7 @@
|
| #include "ios/web/public/favicon_status.h"
|
| #include "ios/web/public/favicon_url.h"
|
| #include "ios/web/public/interstitials/web_interstitial.h"
|
| +#include "ios/web/public/load_committed_details.h"
|
| #import "ios/web/public/navigation_manager.h"
|
| #include "ios/web/public/referrer.h"
|
| #import "ios/web/public/serializable_user_data_manager.h"
|
| @@ -1710,7 +1711,14 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
|
| object:parentTabModel_
|
| userInfo:@{kTabModelTabKey : self}];
|
| }
|
| - [parentTabModel_ navigationCommittedInTab:self];
|
| +
|
| + web::NavigationItem* previousItem = nullptr;
|
| + if (details.previous_item_index >= 0) {
|
| + previousItem = webState->GetNavigationManager()->GetItemAtIndex(
|
| + details.previous_item_index);
|
| + }
|
| +
|
| + [parentTabModel_ navigationCommittedInTab:self previousItem:previousItem];
|
|
|
| // Sending a notification about the url change for crash reporting.
|
| // TODO(crbug.com/661675): Consider using the navigation entry committed
|
|
|