| Index: Source/web/tests/WebViewTest.cpp
|
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
|
| index c0a5f58ff43ada0cc572df6842e2a48f03e765b0..8810979fa9780b6df09f7a854206f026adbf0b07 100644
|
| --- a/Source/web/tests/WebViewTest.cpp
|
| +++ b/Source/web/tests/WebViewTest.cpp
|
| @@ -1392,16 +1392,14 @@ TEST_F(WebViewTest, FocusExistingFrameOnNavigate)
|
| frame->setName("_start");
|
|
|
| // Make a request that will open a new window
|
| - WebURLRequest webURLRequest;
|
| - webURLRequest.initialize();
|
| + WebURLRequest webURLRequest(WebURL(), true, true);
|
| WebCore::FrameLoadRequest request(0, webURLRequest.toResourceRequest(), "_blank");
|
| toLocalFrame(webViewImpl->page()->mainFrame())->loader().load(request);
|
| ASSERT_TRUE(client.createdWebView());
|
| EXPECT_FALSE(client.didFocusCalled());
|
|
|
| // Make a request from the new window that will navigate the original window. The original window should be focused.
|
| - WebURLRequest webURLRequestWithTargetStart;
|
| - webURLRequestWithTargetStart.initialize();
|
| + WebURLRequest webURLRequestWithTargetStart(WebURL(), true, true);
|
| WebCore::FrameLoadRequest requestWithTargetStart(0, webURLRequestWithTargetStart.toResourceRequest(), "_start");
|
| toLocalFrame(toWebViewImpl(client.createdWebView())->page()->mainFrame())->loader().load(requestWithTargetStart);
|
| EXPECT_TRUE(client.didFocusCalled());
|
|
|