summaryrefslogtreecommitdiff
path: root/src/core/api
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-11-02 10:07:14 +0100
committerLiang Qi <liang.qi@qt.io>2018-11-02 10:07:14 +0100
commit34b714122051eae86ac49fd95c7015fb081f79eb (patch)
tree7ba1917986e00da1df4821efe6e62f4e9bffb156 /src/core/api
parent6e3aaa4b22892fd1fecdb9cf6c6e96296c13844a (diff)
parent8eda96bc8ae68387807e079cd557c98c4a452c4f (diff)
downloadqtwebengine-34b714122051eae86ac49fd95c7015fb081f79eb.tar.gz
Merge remote-tracking branch 'origin/5.12.0' into 5.12
Change-Id: I4dfca686e8a03e592879c456208baf3ab0025f88
Diffstat (limited to 'src/core/api')
-rw-r--r--src/core/api/qwebenginecookiestore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/api/qwebenginecookiestore.cpp b/src/core/api/qwebenginecookiestore.cpp
index abb39f074..035c98342 100644
--- a/src/core/api/qwebenginecookiestore.cpp
+++ b/src/core/api/qwebenginecookiestore.cpp
@@ -195,7 +195,8 @@ bool QWebEngineCookieStorePrivate::canAccessCookies(const QUrl &firstPartyUrl, c
if (!filterCallback)
return true;
- bool thirdParty =
+ // Empty first-party URL indicates a first-party request (see net/base/static_cookie_policy.cc)
+ bool thirdParty = !firstPartyUrl.isEmpty() &&
!net::registry_controlled_domains::SameDomainOrHost(toGurl(url),
toGurl(firstPartyUrl),
net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);