| Index: Source/web/tests/WebFrameTest.cpp
|
| diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
|
| index a9b8a62910172d7c6ce7b7f96546b23979721e0e..72230db7539dffbb9509d4e6f03bcf1f6f57b7c0 100644
|
| --- a/Source/web/tests/WebFrameTest.cpp
|
| +++ b/Source/web/tests/WebFrameTest.cpp
|
| @@ -5864,7 +5864,10 @@ TEST_F(WebFrameTest, SameDocumentHistoryNavigationCommitType)
|
| RefPtrWillBePersistent<HistoryItem> item = toLocalFrame(webViewImpl->page()->mainFrame())->loader().currentItem();
|
| runPendingTasks();
|
|
|
| - toLocalFrame(webViewImpl->page()->mainFrame())->loader().loadHistoryItem(item.get(), FrameLoadTypeBackForward, HistorySameDocumentLoad);
|
| + toLocalFrame(webViewImpl->page()->mainFrame())->loader().load(
|
| + FrameLoadRequest(nullptr, FrameLoader::resourceRequestFromHistoryItem(
|
| + item.get(), UseProtocolCachePolicy)),
|
| + FrameLoadTypeBackForward, item.get(), HistorySameDocumentLoad);
|
| EXPECT_EQ(WebBackForwardCommit, client.lastCommitType());
|
| }
|
|
|
|
|