From 590e152ea218a55f17798a14da5ed4a22ff3e2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 11 May 2021 20:02:54 +0200 Subject: [PATCH] SEBWIN-450: Fixed issue with user data folder for WebView2. --- SafeExamBrowser.Proctoring/ProctoringController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SafeExamBrowser.Proctoring/ProctoringController.cs b/SafeExamBrowser.Proctoring/ProctoringController.cs index 81261b4b..f9b5e8df 100644 --- a/SafeExamBrowser.Proctoring/ProctoringController.cs +++ b/SafeExamBrowser.Proctoring/ProctoringController.cs @@ -10,6 +10,7 @@ using System; using System.IO; using System.Reflection; using System.Windows; +using Microsoft.Web.WebView2.Wpf; using SafeExamBrowser.Configuration.Contracts; using SafeExamBrowser.Core.Contracts.Notifications; using SafeExamBrowser.Core.Contracts.Notifications.Events; @@ -150,6 +151,7 @@ namespace SafeExamBrowser.Proctoring fileSystem.Save(content, filePath); control = new ProctoringControl(logger.CloneFor(nameof(ProctoringControl))); + control.CreationProperties = new CoreWebView2CreationProperties { UserDataFolder = appConfig.TemporaryDirectory }; control.EnsureCoreWebView2Async().ContinueWith(_ => { control.Dispatcher.Invoke(() =>