Skip to content

Commit b44962c

Browse files
author
Allan Sandfeld Jensen
committed
Merge remote-tracking branch 'origin/5.7.1' into 5.7
Change-Id: Ifcf7423fa8d892ddad595300e33a09c7f63f5e6e
2 parents 7a4324f + 15ded5c commit b44962c

File tree

5 files changed

+79
-10
lines changed

5 files changed

+79
-10
lines changed

dist/changes-5.7.1

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Qt 5.7.1 is a bug-fix release. It maintains both forward and backward
2+
compatibility (source and binary) with Qt 5.7.0.
3+
4+
Qt 5.7.1 contains a merge from Qt 5.6.2 and all changes in Qt 5.6.2 are
5+
also in Qt 5.7.1. For more see changes-5.6.2.
6+
7+
Qt 5.7 introduces many new features and improvements as well as bugfixes
8+
over the 5.6.x series. For more details, refer to the online documentation
9+
included in this distribution. The documentation is also available online:
10+
11+
http://doc.qt.io/qt-5/index.html
12+
13+
The Qt version 5.7 series is binary compatible with the 5.6.x series.
14+
Applications compiled for 5.6 will continue to run with 5.7.
15+
16+
Some of the changes listed in this file include issue tracking numbers
17+
corresponding to tasks in the Qt Bug Tracker:
18+
19+
https://bugreports.qt.io/
20+
21+
Each of these identifiers can be entered in the bug tracker to obtain more
22+
information about a particular change.
23+
24+
****************************************************************************
25+
* General *
26+
****************************************************************************
27+
28+
- Chromium Snapshot:
29+
* Security fixes from Chromium up to version 54.0.2840.87
30+
Including: CVE-2016-5133, CVE-2016-5147, CVE-2016-5153, CVE-2016-5155,
31+
CVE-2016-5161, CVE-2016-5166, CVE-2016-5170, CVE-2016-5171,
32+
CVE-2016-5172, CVE-2016-5181, CVE-2016-5185, CVE-2016-5186,
33+
CVE-2016-5187, CVE-2016-5188, CVE-2016-5192, CVE-2016-5198
34+
* Support for macOS 10.12 Sierra
35+
* Various backported crash and assert fixes
36+
37+
- QtWebEngineCore:
38+
* [QTBUG-51244, QTBUG-54795] Fixed select control issues
39+
* Fixed several focus issues.
40+
* Fixed regression with fine-grained wheel events.
41+
* [QTBUG-54221] Fixed editing short-cuts in plugins.
42+
* [QTBUG-54222] Fixed potential infinite loop on history load.
43+
* Fixed Flash plugin clipboard access.
44+
45+
****************************************************************************
46+
* Platform Specific Changes *
47+
****************************************************************************
48+
49+
- Linux:
50+
* [QTBUG-55367] Fixed reading timezone when running sandboxed
51+
* Fixed crash when using Wayland QPA
52+
* Improved OpenGL check, so EGL/GLES2 mode can be used with Desktop
53+
OpenGL if the driver has th ARB_ES2_compatibility extension.
54+
55+
- Windows:
56+
* [QTBUG-52201, QTBUG-55501, QTBUG-56020] Fixed crashes and asserts
57+
upon initialization of the global shared OpenGL context.

src/3rdparty

Submodule 3rdparty updated 32 files

src/core/web_engine_context.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,14 @@ WebEngineContext::WebEngineContext()
314314
const char *glType = 0;
315315
if (!usingANGLE() && !usingSoftwareDynamicGL() && !usingQtQuick2DRenderer()) {
316316
if (qt_gl_global_share_context() && qt_gl_global_share_context()->isValid()) {
317-
if (!strcmp(qt_gl_global_share_context()->nativeHandle().typeName(), "QEGLNativeContext")) {
317+
// If the native handle is QEGLNativeContext try to use GL ES/2, if there is no native handle
318+
// assume we are using wayland and try GL ES/2, and finally Ozone demands GL ES/2 too.
319+
if (qt_gl_global_share_context()->nativeHandle().isNull()
320+
#ifdef USE_OZONE
321+
|| true
322+
#endif
323+
|| !strcmp(qt_gl_global_share_context()->nativeHandle().typeName(), "QEGLNativeContext"))
324+
{
318325
if (qt_gl_global_share_context()->isOpenGLES()) {
319326
glType = gfx::kGLImplementationEGLName;
320327
} else {

src/webengine/api/qquickwebenginefaviconprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ QQuickWebEngineView *QQuickWebEngineFaviconProvider::viewForIconUrl(const QUrl &
152152
// latest WebEngineView which was raised an iconChanged signal.
153153
if (m_latestView) {
154154
QList<QUrl> *iconUrls = m_iconUrlMap[m_latestView];
155-
if (iconUrls->contains(iconUrl))
155+
if (iconUrls && iconUrls->contains(iconUrl))
156156
return m_latestView;
157157
}
158158

src/webenginewidgets/api/qtwebenginewidgetsglobal.cpp

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,22 @@ namespace QtWebEngineCore
4848
}
4949

5050
QT_BEGIN_NAMESPACE
51+
52+
Q_GUI_EXPORT QOpenGLContext *qt_gl_global_share_context();
53+
5154
static void initialize()
5255
{
53-
//On window/ANGLE, calling QtWebEngine::initialize from DllMain will result in a crash.
54-
//To ensure it doesn't, we check that when loading the library
55-
//QCoreApplication is not yet instantiated, ensuring the call will be deferred
56-
#if defined(Q_OS_WIN)
57-
if (QCoreApplication::instance()
58-
&& QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGLES) {
56+
if (QCoreApplication::instance()) {
57+
//On window/ANGLE, calling QtWebEngine::initialize from DllMain will result in a crash.
58+
if (!qt_gl_global_share_context()) {
59+
qWarning("Qt WebEngine seems to be initialized from a plugin. Please "
60+
"set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute "
61+
"before constructing QGuiApplication.");
62+
}
5963
return;
6064
}
61-
#endif
65+
66+
//QCoreApplication is not yet instantiated, ensuring the call will be deferred
6267
qAddPreRoutine(QtWebEngineCore::initialize);
6368
}
6469

0 commit comments

Comments
 (0)