diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-07-09 14:18:11 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-07-16 08:56:50 +0000 |
commit | a6f9de61cc3a51c776d35fe40f3489c097c91908 (patch) | |
tree | 103535216f51ab1436f7221e256c2b9cd35f30d2 /src/core | |
parent | 5fbe7fe2f9fef3f9430c468e3e0dd3898d3012c1 (diff) |
Create WebContents with initially_hidden = true
Task-number: QTBUG-69360
Change-Id: Ia17ce79a8221aa339c72763a984bf1958935ef96
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index fc4dc9b2a..ec1416010 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -223,6 +223,7 @@ static content::WebContents *createBlankWebContents(WebContentsAdapterClient *ad create_params.routing_id = MSG_ROUTING_NONE; create_params.initial_size = gfx::Size(kTestWindowWidth, kTestWindowHeight); create_params.context = reinterpret_cast<gfx::NativeView>(adapterClient); + create_params.initially_hidden = true; return content::WebContents::Create(create_params); } @@ -430,6 +431,7 @@ void WebContentsAdapter::initialize(content::SiteInstance *site) content::WebContents::CreateParams create_params(m_profileAdapter->profile(), site); create_params.initial_size = gfx::Size(kTestWindowWidth, kTestWindowHeight); create_params.context = reinterpret_cast<gfx::NativeView>(m_adapterClient); + create_params.initially_hidden = true; m_webContents.reset(content::WebContents::Create(create_params)); } |