summaryrefslogtreecommitdiffstats
path: root/src/core/api
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-15 17:58:31 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-03 16:37:32 +0000
commitdd2acb8a0a5ccbbf34664987fdcf4b3a418c54f9 (patch)
treece784d2a3f8d21bd1a57ec562dfc121906411085 /src/core/api
parentcce649b65d31353754af9e34148c0e8d4068d3cf (diff)
Tie worker rights to cookie policy like Chromium doesv5.11.0-beta3
Instead of always allowing all workers, disallow when similar cookies would have been disallowed. This is following the same logic as Chromium is using. Change-Id: I6b9d6c63b894287f64171b138fe03ec080af5115 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/api')
-rw-r--r--src/core/api/qwebenginecookiestore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp
index adf0cc49e..76e79c570 100644
--- a/src/core/api/qwebenginecookiestore.cpp
+++ b/src/core/api/qwebenginecookiestore.cpp
@@ -353,6 +353,10 @@ void QWebEngineCookieStore::deleteAllCookies()
The callback should not be used to execute heavy tasks since it is running on the
IO thread and therefore blocks the Chromium networking.
+ \note The cookie filter also controls other features with tracking capabilities similar to
+ those of cookies; including IndexedDB, DOM storage, filesystem API, service workers,
+ and AppCache.
+
\sa deleteAllCookies(), loadAllCookies()
*/
void QWebEngineCookieStore::setCookieFilter(const std::function<bool(const FilterRequest &)> &filterCallback)