SEBWIN-416: Ensured third-party applications with custom URI schemes are correctly opened.
This commit is contained in:
parent
63e8f9b45e
commit
a82f2d5780
2 changed files with 9 additions and 0 deletions
|
@ -233,6 +233,10 @@ namespace SafeExamBrowser.Browser
|
|||
{
|
||||
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
|
||||
{
|
||||
var title = text.Get(TextKey.Browser_LoadErrorPageTitle);
|
||||
|
|
|
@ -77,6 +77,11 @@ namespace SafeExamBrowser.Browser.Handlers
|
|||
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)
|
||||
{
|
||||
SearchSessionIdentifiers(response);
|
||||
|
|
Loading…
Reference in a new issue