diff options
author | Martin Negyokru <negyokru@inf.u-szeged.hu> | 2022-09-16 15:55:37 +0200 |
---|---|---|
committer | Martin Negyokru <negyokru@inf.u-szeged.hu> | 2022-10-14 16:08:52 +0200 |
commit | 49d7bef1815651e2fa0339e02e1ebbde65149ed2 (patch) | |
tree | bf2436a08f51194790c0667434d9e11a1687b5c4 /src/core/net | |
parent | cd82a30311302ded70b278bfc4919097b0f421f7 (diff) |
Add devtools file system support
Use Chrome's DevToolsFileHelper implementation.
Enable downloading contents from devtools.
Enable editing and saving files with devtools workspace.
Task-number: QTBUG-85171
Change-Id: I987c667a59c12792c35a802326596e5799f42290
Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu>
Diffstat (limited to 'src/core/net')
-rw-r--r-- | src/core/net/webui_controller_factory_qt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/net/webui_controller_factory_qt.cpp b/src/core/net/webui_controller_factory_qt.cpp index 68bbb42fa..66491e019 100644 --- a/src/core/net/webui_controller_factory_qt.cpp +++ b/src/core/net/webui_controller_factory_qt.cpp @@ -9,6 +9,7 @@ #include "webui_controller_factory_qt.h" #include "build_config_qt.h" +#include "devtools_frontend_qt.h" #include "base/bind.h" #include "build/build_config.h" @@ -93,8 +94,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI *web_ui, Profile *profile, co return &NewWebUI<NetInternalsUI>; if (url.SchemeIs(content::kChromeDevToolsScheme)) { - // if (!DevToolsUIBindings::IsValidFrontendURL(url)) - // return nullptr; + if (!QtWebEngineCore::DevToolsFrontendQt::IsValidFrontendURL(url)) + return nullptr; return &NewWebUI<DevToolsUI>; } if (url.host() == chrome::kChromeUIAccessibilityHost) |