Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 748c861a0721e4b04d6e0a98230ea7ac0536638b..e9356b13afa2c2b22c0e875f3bc193e068d9a7dc 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -4314,7 +4314,7 @@ TEST_F(WebFrameTest, SimulateFragmentAnchorMiddleClick) |
destination.setFragmentIdentifier("test"); |
RefPtr<WebCore::Event> event = WebCore::MouseEvent::create(WebCore::EventTypeNames::click, false, false, |
- document->defaultView(), 0, 0, 0, 0, 0, 0, 0, false, false, false, false, 1, 0, 0); |
+ document->domWindow(), 0, 0, 0, 0, 0, 0, 0, false, false, false, false, 1, 0, 0); |
WebCore::FrameLoadRequest frameRequest(document->securityOrigin(), WebCore::ResourceRequest(destination)); |
frameRequest.setTriggeringEvent(event); |
webViewHelper.webViewImpl()->page()->mainFrame()->loader()->load(frameRequest); |