Fix-favicons-fallback-search.patch

This commit is contained in:
none 2021-03-07 09:14:20 +01:00
parent e228ddb4e4
commit c56195bbd9

View file

@ -9,13 +9,13 @@ Subject: Fix favicons fallback search
diff --git a/components/favicon/core/favicon_database.cc b/components/favicon/core/favicon_database.cc
--- a/components/favicon/core/favicon_database.cc
+++ b/components/favicon/core/favicon_database.cc
@@ -782,7 +782,9 @@ base::Optional<GURL> FaviconDatabase::FindFirstPageURLForHost(
@@ -790,7 +790,9 @@ base::Optional<GURL> FaviconDatabase::FindFirstPageURLForHost(
// Bind the host with a prefix of "://" and suffix of "/" to ensure the entire
// host name is matched.
- statement.BindString(0, base::StringPrintf("%%://%s/%%", url.host().c_str()));
+ statement.BindString(0, base::StringPrintf("%s://%s/%%",
+ std::string(url.scheme_piece()).c_str(),
+ statement.BindString(0, base::StringPrintf("%s://%s/%%",
+ std::string(url.scheme_piece()).c_str(),
+ url.host().c_str()));
while (statement.Step()) {