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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments 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: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 7c3e78c269685851819ae4adfb9e0d8eb28bede5..b556f7269806ccfd6ad61e31d108aa494e3f0392 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -274,7 +274,7 @@ void WebEmbeddedWorkerImpl::prepareShadowPageForLoader()
// This code, and probably most of the code in this class should be shared
// with SharedWorker.
DCHECK(!m_webView);
- m_webView = WebView::create(0);
+ m_webView = WebView::create(nullptr, WebPageVisibilityStateVisible);
WebSettings* settings = m_webView->settings();
// FIXME: http://crbug.com/363843. This needs to find a better way to
// not create graphics layers.

Powered by Google App Engine
This is Rietveld 408576698