SEBWIN-416: Ensured third-party applications with custom URI schemes are correctly opened.

This commit is contained in:
Damian Büchel 2020-08-06 14:26:40 +02:00
parent 63e8f9b45e
commit a82f2d5780
2 changed files with 9 additions and 0 deletions

View file

@ -233,6 +233,10 @@ namespace SafeExamBrowser.Browser
{ {
logger.Info($"Request for '{url}' was aborted."); logger.Info($"Request for '{url}' was aborted.");
} }
else if (errorCode == (int) CefErrorCode.UnknownUrlScheme)
{
logger.Info($"Request for '{url}' contains unknown URL scheme and will be handled by the OS.");
}
else else
{ {
var title = text.Get(TextKey.Browser_LoadErrorPageTitle); var title = text.Get(TextKey.Browser_LoadErrorPageTitle);

View file

@ -77,6 +77,11 @@ namespace SafeExamBrowser.Browser.Handlers
return base.OnBeforeResourceLoad(webBrowser, browser, frame, request, callback); return base.OnBeforeResourceLoad(webBrowser, browser, frame, request, callback);
} }
protected override bool OnProtocolExecution(IWebBrowser webBrowser, IBrowser browser, IFrame frame, IRequest request)
{
return true;
}
protected override void OnResourceRedirect(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response, ref string newUrl) protected override void OnResourceRedirect(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, IResponse response, ref string newUrl)
{ {
SearchSessionIdentifiers(response); SearchSessionIdentifiers(response);