diff --git a/SafeExamBrowser.Browser/BrowserApplicationController.cs b/SafeExamBrowser.Browser/BrowserApplicationController.cs index f3035232..d3ab8868 100644 --- a/SafeExamBrowser.Browser/BrowserApplicationController.cs +++ b/SafeExamBrowser.Browser/BrowserApplicationController.cs @@ -10,7 +10,6 @@ using System; using System.Collections.Generic; using System.Linq; using CefSharp; -using SafeExamBrowser.Browser.Handlers; using SafeExamBrowser.Contracts.Browser; using SafeExamBrowser.Contracts.Configuration; using SafeExamBrowser.Contracts.I18n; @@ -103,9 +102,6 @@ namespace SafeExamBrowser.Browser LogSeverity = LogSeverity.Info }; - cefSettings.RegisterScheme(new CefCustomScheme { SchemeName = "seb", SchemeHandlerFactory = new SchemeHandlerFactory() }); - cefSettings.RegisterScheme(new CefCustomScheme { SchemeName = "sebs", SchemeHandlerFactory = new SchemeHandlerFactory() }); - return cefSettings; } diff --git a/SafeExamBrowser.Browser/Handlers/SchemeHandlerFactory.cs b/SafeExamBrowser.Browser/Handlers/SchemeHandlerFactory.cs deleted file mode 100644 index ba928001..00000000 --- a/SafeExamBrowser.Browser/Handlers/SchemeHandlerFactory.cs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET) - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -using CefSharp; - -namespace SafeExamBrowser.Browser.Handlers -{ - /// - /// See https://cefsharp.github.io/api/63.0.0/html/T_CefSharp_ISchemeHandlerFactory.htm. - /// - internal class SchemeHandlerFactory : ISchemeHandlerFactory - { - public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request) - { - var page = @""; - var handler = ResourceHandler.FromString(page); - - return handler; - } - } -} diff --git a/SafeExamBrowser.Browser/SafeExamBrowser.Browser.csproj b/SafeExamBrowser.Browser/SafeExamBrowser.Browser.csproj index 0e656b81..8831c9ce 100644 --- a/SafeExamBrowser.Browser/SafeExamBrowser.Browser.csproj +++ b/SafeExamBrowser.Browser/SafeExamBrowser.Browser.csproj @@ -73,7 +73,6 @@ - diff --git a/SafeExamBrowser.UserInterface.Classic/PasswordDialog.xaml b/SafeExamBrowser.UserInterface.Classic/PasswordDialog.xaml index 76476a29..c541bbaf 100644 --- a/SafeExamBrowser.UserInterface.Classic/PasswordDialog.xaml +++ b/SafeExamBrowser.UserInterface.Classic/PasswordDialog.xaml @@ -2,6 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:fa="http://schemas.fontawesome.io/icons/" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:SafeExamBrowser.UserInterface.Classic" mc:Ignorable="d" Height="200" Width="450" ResizeMode="NoResize" Topmost="True"> @@ -17,13 +18,22 @@ - - - - - - - + + + + + + + + + + + + + + + +