From 0ba8cbcb9ce3936b7906f26f1a06baea01aedae4 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 12 Sep 2017 09:03:59 +0200 Subject: 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 Reviewed-by: Leena Miettinen --- src/webenginewidgets/api/qwebengineprofile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/webenginewidgets/api/qwebengineprofile.cpp') 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 -- cgit v1.2.3