Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1183)

Unified Diff: content/common/url_schemes.cc

Issue 2760463005: Fix handling of external protocols with PlzNavigate. (Closed)
Patch Set: review comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/url_schemes.cc
diff --git a/content/common/url_schemes.cc b/content/common/url_schemes.cc
index 29a3c85f5bc85c9781189e7e99ef95f611dc5a44..6667cb10b30f9a5bdc657fd0def969345f80a51c 100644
--- a/content/common/url_schemes.cc
+++ b/content/common/url_schemes.cc
@@ -68,6 +68,9 @@ void RegisterContentSchemes(bool lock_schemes) {
for (auto& scheme : schemes.csp_bypassing_schemes)
url::AddCSPBypassingScheme(scheme.c_str());
+ for (auto& scheme : schemes.empty_document_schemes)
+ url::AddEmptyDocumentScheme(scheme.c_str());
+
// Prevent future modification of the scheme lists. This is to prevent
// accidental creation of data races in the program. Add*Scheme aren't
// threadsafe so must be called when GURL isn't used on any other thread. This

Powered by Google App Engine
This is Rietveld 408576698