summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-09-12 09:03:59 +0200
committerKai Koehne <kai.koehne@qt.io>2017-09-14 11:21:43 +0000
commit0ba8cbcb9ce3936b7906f26f1a06baea01aedae4 (patch)
treebdd57205f65dec1003d3ccb714c1eca7c3cb9e12
parentc7d46325e635d1fb4482b53dce866e2c55026a7e (diff)
Document that the Windows version in the user-agent might be wrong
Chromium uses GetVersionEx() to determine the Windows version that is reported in the default user agent. GetVersionEx() however always reports "Windows NT 6.2" for newer Windows versions, unless the executable's manifest file marks the newer version as supported. Since this is a common question we document this in the httpUserAgent accessors. Task-number: QTBUG-56472 Change-Id: I4698cd659f5552b92ef925c198f39326fcb936f3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r--src/webengine/api/qquickwebengineprofile.cpp4
-rw-r--r--src/webenginewidgets/api/qwebengineprofile.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineprofile.cpp b/src/webengine/api/qquickwebengineprofile.cpp
index 260d8958..3364e416 100644
--- a/src/webengine/api/qquickwebengineprofile.cpp
+++ b/src/webengine/api/qquickwebengineprofile.cpp
@@ -478,6 +478,10 @@ void QQuickWebEngineProfile::setCachePath(const QString &path)
\qmlproperty string WebEngineProfile::httpUserAgent
The user-agent string sent with HTTP to identify the browser.
+
+ \note On Windows 8.1 and newer, the default user agent will always report
+ "Windows NT 6.2" (Windows 8), unless the application does contain a manifest
+ that declares newer Windows versions as supported.
*/
/*!
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp
index cd4fc8b0..a4810d27 100644
--- a/src/webenginewidgets/api/qwebengineprofile.cpp
+++ b/src/webenginewidgets/api/qwebengineprofile.cpp
@@ -365,6 +365,10 @@ void QWebEngineProfile::setCachePath(const QString &path)
/*!
Returns the user-agent string sent with HTTP to identify the browser.
+ \note On Windows 8.1 and newer, the default user agent will always report
+ "Windows NT 6.2" (Windows 8), unless the application does contain a manifest
+ that declares newer Windows versions as supported.
+
\sa setHttpUserAgent()
*/
QString QWebEngineProfile::httpUserAgent() const