From 0c5cdd8f2a6f4d07d87c6c4d1c51540ff9abfd97 Mon Sep 17 00:00:00 2001 From: "Ngo Iok Ui (Wu Yu Wei)" Date: Wed, 23 Jun 2021 19:34:51 +0800 Subject: [PATCH] Fix file explorer getting blocked by automation (#310) --- .changes/file-linux.md | 5 +++++ src/webview/web_context.rs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changes/file-linux.md diff --git a/.changes/file-linux.md b/.changes/file-linux.md new file mode 100644 index 000000000..59b08678d --- /dev/null +++ b/.changes/file-linux.md @@ -0,0 +1,5 @@ +--- +wry: patch +--- + +Fix file explorer getting blocked by automation. diff --git a/src/webview/web_context.rs b/src/webview/web_context.rs index e62ad19e8..4129cd50e 100644 --- a/src/webview/web_context.rs +++ b/src/webview/web_context.rs @@ -114,8 +114,7 @@ pub mod unix { let context = context_builder.build(); - // default to true since other platforms don't have a way to disable it (yet) - let automation = true; + let automation = false; context.set_automation_allowed(automation); // e.g. wry 0.9.4