Index: components/printing/renderer/print_web_view_helper.cc |
diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc |
index cfb1c777bf002b864cd29bb249a82e50cd005d09..9c11affe3d2f6b4850e76bf8fed3f8a1be093020 100644 |
--- a/components/printing/renderer/print_web_view_helper.cc |
+++ b/components/printing/renderer/print_web_view_helper.cc |
@@ -522,7 +522,7 @@ void PrintWebViewHelper::PrintHeaderAndFooter( |
page_layout.margin_top + page_layout.margin_bottom + |
page_layout.content_height); |
- blink::WebView* web_view = blink::WebView::create(NULL); |
+ blink::WebView* web_view = blink::WebView::create(nullptr, true); |
web_view->settings()->setJavaScriptEnabled(true); |
blink::WebLocalFrame* frame = |
@@ -739,7 +739,7 @@ void PrepareFrameAndViewForPrint::CopySelection( |
WebPreferences prefs = preferences; |
prefs.javascript_enabled = false; |
- blink::WebView* web_view = blink::WebView::create(this); |
+ blink::WebView* web_view = blink::WebView::create(this, true); |
owns_web_view_ = true; |
content::RenderView::ApplyWebPreferences(prefs, web_view); |
web_view->setMainFrame( |