diff --git a/src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefLoadHandler.cs b/src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefLoadHandler.cs index bd3930a..d7bc160 100644 --- a/src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefLoadHandler.cs +++ b/src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefLoadHandler.cs @@ -43,29 +43,4 @@ protected override void OnLoadEnd(CefBrowser browser, CefFrame frame, int httpSt if (frame.IsMain) client.ClientControls.LoadFinish(url); } - - protected override void OnLoadError(CefBrowser browser, CefFrame frame, CefErrorCode errorCode, - string errorText, string failedUrl) - { - CefLoggerWrapper.Error( - $"An error occurred while trying to load '{failedUrl}'! Error details: {errorText} (Code: {errorCode})"); - - if (errorCode is CefErrorCode.Aborted - or CefErrorCode.BLOCKED_BY_RESPONSE - or CefErrorCode.BLOCKED_BY_CLIENT - or CefErrorCode.BLOCKED_BY_CSP) - return; - - //TODO: We should move this to an internal scheme page thingy - string html = - $@" -
Error: {errorText}
(Code: {(int)errorCode})