summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-03-20 11:53:08 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-03-22 11:09:19 +0000
commit17eefd8f92adb71da25b8c9d67b3e973684a8bf9 (patch)
treeb1b6b6a9ccecc01ddce7cca199111300460bba7a
parent404ad4e48e47415fde2b7dc42578a5503a35b74b (diff)
Improve QWebEngineCookieStore documentation
Change-Id: If11154d716b2ea98cc6b0b07c4fe2501fe27dcdb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r--src/core/api/qwebenginecookiestore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp
index c87cb12bf..4ef512d62 100644
--- a/src/core/api/qwebenginecookiestore.cpp
+++ b/src/core/api/qwebenginecookiestore.cpp
@@ -342,7 +342,7 @@ void QWebEngineCookieStore::deleteAllCookies()
The following code snippet illustrates how to set a cookie filter:
\code
- profile->setCookieFilter(
+ profile->cookieStore()->setCookieFilter(
[&allowThirdPartyCookies](const QWebEngineCookieStore::FilterRequest &request)
{ return !request.thirdParty || allowThirdPartyCookies; }
);
@@ -396,7 +396,7 @@ void QWebEngineCookieStore::setCookieFilter(std::function<bool(const FilterReque
/*!
\variable QWebEngineCookieStore::FilterRequest::origin
- \brief The URL of the script or content accessing a cookie
+ \brief The URL of the script or content accessing a cookie.
Can be used to white-list or black-list third-party cookie access
for specific services.
@@ -406,7 +406,7 @@ void QWebEngineCookieStore::setCookieFilter(std::function<bool(const FilterReque
/*!
\variable QWebEngineCookieStore::FilterRequest::thirdParty
- \brief Whether this is considered a third-party access
+ \brief Whether this is considered a third-party access.
This is calculated by comparing FilterRequest::origin and FilterRequest::firstPartyUrl and
checking if they share a common origin that is not a top-domain (like .com or .co.uk),