mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
19 lines
700 B
Diff
19 lines
700 B
Diff
diff --git net/base/schemeful_site.cc net/base/schemeful_site.cc
|
|
index 4b9760d916213..87556e7e0dc99 100644
|
|
--- net/base/schemeful_site.cc
|
|
+++ net/base/schemeful_site.cc
|
|
@@ -43,6 +43,13 @@ bool IsSameSiteInternal(const url::Origin& a,
|
|
return true;
|
|
}
|
|
|
|
+ // If host equality is false, then the only way the origins can be same site
|
|
+ // is if we have a standard scheme with a network host, which is the only case
|
|
+ // when SchemefulSite looks at the registerable domain.
|
|
+ if (!IsStandardSchemeWithNetworkHost(a.scheme())) {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
std::string_view b_site = GetDomainAndRegistryAsStringPiece(
|
|
b, net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
|
|
|