| Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc
|
| diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
|
| index cf9c8c79ecf8fda878cea954f280ea01daf508e6..1f2b243521c9e689157a668219e7c809c356169a 100644
|
| --- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc
|
| +++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
|
| @@ -2912,9 +2912,9 @@ void DoReplaceStateWhilePending(Shell* shell,
|
| stalled_url, Referrer(), ui::PAGE_TRANSITION_LINK, std::string());
|
|
|
| // That should be the pending entry.
|
| - NavigationEntryImpl* entry = controller.GetPendingEntry();
|
| - ASSERT_NE(nullptr, entry);
|
| - EXPECT_EQ(stalled_url, entry->GetURL());
|
| + NavigationEntryImpl* original_pending_entry = controller.GetPendingEntry();
|
| + ASSERT_NE(nullptr, original_pending_entry);
|
| + EXPECT_EQ(stalled_url, original_pending_entry->GetURL());
|
|
|
| {
|
| // Now the existing page uses history.replaceState().
|
| @@ -2929,6 +2929,10 @@ void DoReplaceStateWhilePending(Shell* shell,
|
| // classification.
|
| EXPECT_EQ(NAVIGATION_TYPE_EXISTING_PAGE, capturer.details().type);
|
| EXPECT_TRUE(capturer.details().is_in_page);
|
| +
|
| + // That should not have affected the pending entry.
|
| + NavigationEntryImpl* pending_entry = controller.GetPendingEntry();
|
| + EXPECT_EQ(original_pending_entry, pending_entry);
|
| }
|
|
|
| ResourceDispatcherHost::Get()->SetDelegate(nullptr);
|
|
|