| Index: ios/web/web_state/navigation_callbacks_inttest.mm
|
| diff --git a/ios/web/web_state/navigation_callbacks_inttest.mm b/ios/web/web_state/navigation_callbacks_inttest.mm
|
| index ec7867d5c4657691fd1f9a0eef85b9137e2424ca..9df911e2eeddb45a8de7796a0ed4d0bf9a7b137c 100644
|
| --- a/ios/web/web_state/navigation_callbacks_inttest.mm
|
| +++ b/ios/web/web_state/navigation_callbacks_inttest.mm
|
| @@ -87,15 +87,9 @@ ACTION_P3(VerifyPostStartedContext, web_state, url, context) {
|
| EXPECT_FALSE((*context)->GetError());
|
| ASSERT_FALSE((*context)->GetResponseHeaders());
|
| ASSERT_TRUE(web_state->IsLoading());
|
| - // TODO(crbug.com/676129): Reload does not create a pending item. Remove this
|
| - // workaround once the bug is fixed.
|
| - if (!ui::PageTransitionTypeIncludingQualifiersIs(
|
| - ui::PageTransition::PAGE_TRANSITION_RELOAD,
|
| - (*context)->GetPageTransition())) {
|
| - NavigationManager* navigation_manager = web_state->GetNavigationManager();
|
| - NavigationItem* item = navigation_manager->GetPendingItem();
|
| - EXPECT_EQ(url, item->GetURL());
|
| - }
|
| + NavigationManager* navigation_manager = web_state->GetNavigationManager();
|
| + NavigationItem* item = navigation_manager->GetPendingItem();
|
| + EXPECT_EQ(url, item->GetURL());
|
| }
|
|
|
| // Verifies correctness of |NavigationContext| (|arg0|) for navigations via POST
|
| @@ -217,9 +211,8 @@ ACTION_P3(VerifyReloadStartedContext, web_state, url, context) {
|
| EXPECT_FALSE((*context)->IsSameDocument());
|
| EXPECT_FALSE((*context)->GetError());
|
| EXPECT_FALSE((*context)->GetResponseHeaders());
|
| - // TODO(crbug.com/676129): Reload does not create a pending item. Check
|
| - // pending item once the bug is fixed.
|
| - EXPECT_FALSE(web_state->GetNavigationManager()->GetPendingItem());
|
| + EXPECT_EQ(web_state->GetNavigationManager()->GetPendingItem(),
|
| + web_state->GetNavigationManager()->GetLastCommittedItem());
|
| }
|
|
|
| // Verifies correctness of |NavigationContext| (|arg0|) for reload navigation
|
|
|