summaryrefslogtreecommitdiffstats
path: root/src/core/api
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2017-11-30 17:59:57 +0100
committerMichal Klocek <michal.klocek@qt.io>2017-12-22 10:15:49 +0000
commitdfcd401333f96e8146ab81b919286f8bae187790 (patch)
treef017eee4eb32b1a4c707193afdf649d116182df6 /src/core/api
parent10491dfcc06a3b663bcd52cc04a26f36d91b9d59 (diff)
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 <riitta-leena.miettinen@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/core/api')
-rw-r--r--src/core/api/qwebenginecookiestore.cpp5
1 files changed, 4 insertions, 1 deletions
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.