diff options
author | Kai Koehne <kai.koehne@qt.io> | 2017-09-12 09:03:59 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2017-09-14 11:21:43 +0000 |
commit | 0ba8cbcb9ce3936b7906f26f1a06baea01aedae4 (patch) | |
tree | bdd57205f65dec1003d3ccb714c1eca7c3cb9e12 /src/webenginewidgets/api/qwebengineprofile.cpp | |
parent | c7d46325e635d1fb4482b53dce866e2c55026a7e (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>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.cpp b/src/webenginewidgets/api/qwebengineprofile.cpp index cd4fc8b02..a4810d272 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 |