Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: components/printing/renderer/print_web_view_helper.cc

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android test+naming Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698