From dfcd401333f96e8146ab81b919286f8bae187790 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Thu, 30 Nov 2017 17:59:57 +0100 Subject: Update setCookie documentation WebEngine prepends "." to domain if one is set explicitly to the cookie. Task-nmuber: QTBUG-64732 Change-Id: Ic54531281cf3a26f7a516118b8ecd78a2ac27e4a Reviewed-by: Leena Miettinen Reviewed-by: Kai Koehne --- src/core/api/qwebenginecookiestore.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/api/qwebenginecookiestore.cpp') diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp index 4617882ab..6b2d542ea 100644 --- a/src/core/api/qwebenginecookiestore.cpp +++ b/src/core/api/qwebenginecookiestore.cpp @@ -229,7 +229,10 @@ QWebEngineCookieStore::~QWebEngineCookieStore() /*! Adds \a cookie to the cookie store. - It is possible to provide an optional \a origin URL argument to limit the scope of the cookie. + \note If \a cookie specifies a QNetworkCookie::domain() that does not start with a dot, + a dot is automatically prepended. To limit the cookie to the exact server, + omit QNetworkCookie::domain() and set \a origin instead. + The provided URL should also include the scheme. \note This operation is asynchronous. -- cgit v1.2.3