From ac91b09f7be12bc4fb97abd934ab56b914957483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 9 Feb 2021 14:46:57 +0100 Subject: [PATCH] SEBWIN-458: Ensured browser navigation keeps working when blocking a request. --- SafeExamBrowser.Browser/Handlers/RequestHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs index 015ff629..cd14576b 100644 --- a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs +++ b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs @@ -86,6 +86,11 @@ namespace SafeExamBrowser.Browser.Handlers if (request.ResourceType == ResourceType.MainFrame) { RequestBlocked?.Invoke(request.Url); + + if (browser.HasDocument) + { + browser.Reload(); + } } return true;