summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_library_info.h
diff options
context:
space:
mode:
authorTamas Zakor <ztamas@inf.u-szeged.hu>2020-10-02 15:11:38 +0200
committerTamas Zakor <ztamas@inf.u-szeged.hu>2020-10-09 08:43:33 +0200
commit95e32f7648a4e0c1e8bece03e6b501f1364e683d (patch)
tree7bac0bf5c2303267bf2dd9c1e8278e3720145d04 /src/core/web_engine_library_info.h
parentf7b67ee67a53396d231b529ec5db358deb9e5ce0 (diff)
Warn about QtWebengineProcess launching from network share
Add error message when trying to launch QtWebEngineProcess from network share if sandbox is enabled. Task-number: QTBUG-84632 Change-Id: Ia7d5df38accf60eafe8fb4d43dab3db4d2d51287 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_engine_library_info.h')
-rw-r--r--src/core/web_engine_library_info.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_engine_library_info.h b/src/core/web_engine_library_info.h
index a5cd914d3..4d23d8921 100644
--- a/src/core/web_engine_library_info.h
+++ b/src/core/web_engine_library_info.h
@@ -43,6 +43,8 @@
#include "base/files/file_path.h"
#include "base/strings/string16.h"
+#include <QString>
+
enum {
QT_RESOURCES_PAK = 5000,
QT_RESOURCES_100P_PAK = 5001,
@@ -56,6 +58,10 @@ public:
// Called by localized_error in our custom chrome layer
static base::string16 getApplicationName();
static std::string getApplicationLocale();
+#if defined(OS_WIN)
+ static bool isRemoteDrivePath(const QString &path);
+ static bool isUNCPath(const QString &path);
+#endif
};