From 81877999293e809737cadc817a740656dc3e48ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Sun, 18 Apr 2021 17:37:35 +0200 Subject: [PATCH] SEBWIN-450: Disabled context menus, dev tools and status bar for proctoring view. --- SafeExamBrowser.Proctoring/ProctoringControl.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SafeExamBrowser.Proctoring/ProctoringControl.cs b/SafeExamBrowser.Proctoring/ProctoringControl.cs index c446fada..5c54f947 100644 --- a/SafeExamBrowser.Proctoring/ProctoringControl.cs +++ b/SafeExamBrowser.Proctoring/ProctoringControl.cs @@ -30,6 +30,9 @@ namespace SafeExamBrowser.Proctoring { if (e.IsSuccess) { + CoreWebView2.Settings.AreDefaultContextMenusEnabled = false; + CoreWebView2.Settings.AreDevToolsEnabled = false; + CoreWebView2.Settings.IsStatusBarEnabled = false; CoreWebView2.ContainsFullScreenElementChanged += CoreWebView2_ContainsFullScreenElementChanged; CoreWebView2.PermissionRequested += CoreWebView2_PermissionRequested; logger.Info("Successfully initialized.");