SEBWIN-458: Ensured browser navigation keeps working when blocking a request.
This commit is contained in:
parent
3b7410b83d
commit
ac91b09f7b
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ namespace SafeExamBrowser.Browser.Handlers
|
||||||
if (request.ResourceType == ResourceType.MainFrame)
|
if (request.ResourceType == ResourceType.MainFrame)
|
||||||
{
|
{
|
||||||
RequestBlocked?.Invoke(request.Url);
|
RequestBlocked?.Invoke(request.Url);
|
||||||
|
|
||||||
|
if (browser.HasDocument)
|
||||||
|
{
|
||||||
|
browser.Reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue