32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
|
From: uazo <uazo@users.noreply.github.com>
|
||
|
Date: Mon, 17 Apr 2023 12:38:44 +0000
|
||
|
Subject: Disable devtools remote and custom protocols
|
||
|
|
||
|
---
|
||
|
chrome/browser/ui/webui/devtools_ui_data_source.cc | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/chrome/browser/ui/webui/devtools_ui_data_source.cc b/chrome/browser/ui/webui/devtools_ui_data_source.cc
|
||
|
--- a/chrome/browser/ui/webui/devtools_ui_data_source.cc
|
||
|
+++ b/chrome/browser/ui/webui/devtools_ui_data_source.cc
|
||
|
@@ -175,7 +175,7 @@ void DevToolsDataSource::StartDataRequest(
|
||
|
// Serve request to devtools://remote from remote location.
|
||
|
std::string remote_path_prefix(chrome::kChromeUIDevToolsRemotePath);
|
||
|
remote_path_prefix += "/";
|
||
|
- if (base::StartsWith(path, remote_path_prefix,
|
||
|
+ if ((false) && base::StartsWith(path, remote_path_prefix,
|
||
|
base::CompareCase::INSENSITIVE_ASCII)) {
|
||
|
if (MaybeHandleCustomRequest(path.substr(remote_path_prefix.length()),
|
||
|
&callback)) {
|
||
|
@@ -198,7 +198,7 @@ void DevToolsDataSource::StartDataRequest(
|
||
|
// Serve request to devtools://custom from custom URL.
|
||
|
std::string custom_path_prefix(chrome::kChromeUIDevToolsCustomPath);
|
||
|
custom_path_prefix += "/";
|
||
|
- if (base::StartsWith(path, custom_path_prefix,
|
||
|
+ if ((false) && base::StartsWith(path, custom_path_prefix,
|
||
|
base::CompareCase::INSENSITIVE_ASCII)) {
|
||
|
GURL custom_devtools_frontend = GetCustomDevToolsFrontendURL();
|
||
|
if (!custom_devtools_frontend.is_empty()) {
|
||
|
--
|
||
|
2.25.1
|