summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_context.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-12-04 15:20:59 +0100
committerMichal Klocek <michal.klocek@qt.io>2018-12-04 16:02:17 +0000
commitb6683549626e5a0131a708842f555dd35d413b50 (patch)
treed8d0cfa9bda89b73739adcde049d97119d984a5f /src/core/web_engine_context.h
parent4b2ab1d0816683dd53311ecb719ac8ede0d5b327 (diff)
Fix recursion in WebEngineContext constructor
Gpu process startup needs sync point manager and it can ask for current web engine context, while is being created. Moreover this call will take place from GPU thread, so it leads to race condition. Done-With: Kirill Burtsev<kirill.burtsev@qt.io> Fixes: QTBUG-72113 Change-Id: I43bf37da0cf28ccb5c5cee0d82ed541053016e2e Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_engine_context.h')
-rw-r--r--src/core/web_engine_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h
index f588918a7..647f28f55 100644
--- a/src/core/web_engine_context.h
+++ b/src/core/web_engine_context.h
@@ -90,6 +90,7 @@ public:
#if QT_CONFIG(webengine_printing_and_pdf)
printing::PrintJobManager* getPrintJobManager();
#endif
+ void initialize();
void destroyBrowserContext();
void addBrowserContext(ProfileAdapter *profileAdapter);
void removeBrowserContext(ProfileAdapter *profileAdapter);