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

Unified Diff: chrome/common/chrome_content_client.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
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_thread_observer.cc » ('j') | url/url_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index abe96ad6858cd0afd281a654dc30a9970a26e0ac..9d6ebf9a07a4a67ab746cd9725b2ea7708790941 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -593,6 +593,11 @@ void ChromeContentClient::AddAdditionalSchemes(Schemes* schemes) {
schemes->no_access_schemes.push_back(chrome::kChromeNativeScheme);
+ // chrome-native: is a scheme used for placeholder navigations that allow
+ // UIs to be drawn with platform native widgets instead of HTML. These pages
+ // should be treated as empty documents that can commit synchronously.
+ schemes->empty_document_schemes.push_back(chrome::kChromeNativeScheme);
+
#if BUILDFLAG(ENABLE_EXTENSIONS)
if (extensions::feature_util::ExtensionServiceWorkersEnabled())
schemes->service_worker_schemes.push_back(extensions::kExtensionScheme);
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_thread_observer.cc » ('j') | url/url_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698