Index: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
index fff97d9d34d8f5ef45666685d46762704c915721..560d866adea3971979613edc3df1ffc768d161f8 100644 |
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
@@ -205,7 +205,8 @@ WebViewBase* WebViewHelper::InitializeWithOpener( |
if (!web_widget_client) |
web_widget_client = web_view_client->WidgetClient(); |
web_view_ = static_cast<WebViewBase*>( |
- WebView::Create(web_view_client, kWebPageVisibilityStateVisible)); |
+ WebView::Create(web_view_client, kWebPageVisibilityStateVisible, |
+ opener ? opener->View() : nullptr)); |
web_view_->GetSettings()->SetJavaScriptEnabled(enable_javascript); |
web_view_->GetSettings()->SetPluginsEnabled(true); |
// Enable (mocked) network loads of image URLs, as this simplifies |