Skip to content

Commit ae94dc0

Browse files
committed
Remove UWB custom load error page. It shows the default chrome one now.
1 parent ba16d25 commit ae94dc0

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

src/UnityWebBrowser.Engine.Cef/Shared/Browser/UwbCefLoadHandler.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,4 @@ protected override void OnLoadEnd(CefBrowser browser, CefFrame frame, int httpSt
4343

4444
if (frame.IsMain) client.ClientControls.LoadFinish(url);
4545
}
46-
47-
protected override void OnLoadError(CefBrowser browser, CefFrame frame, CefErrorCode errorCode,
48-
string errorText, string failedUrl)
49-
{
50-
CefLoggerWrapper.Error(
51-
$"An error occurred while trying to load '{failedUrl}'! Error details: {errorText} (Code: {errorCode})");
52-
53-
if (errorCode is CefErrorCode.Aborted
54-
or CefErrorCode.BLOCKED_BY_RESPONSE
55-
or CefErrorCode.BLOCKED_BY_CLIENT
56-
or CefErrorCode.BLOCKED_BY_CSP)
57-
return;
58-
59-
//TODO: We should move this to an internal scheme page thingy
60-
string html =
61-
$@"<style>
62-
@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
63-
body {{
64-
font-family: 'Ubuntu', sans-serif;
65-
}}
66-
</style>
67-
<h2>An error occurred while trying to load '{failedUrl}'!</h2>
68-
<p>Error: {errorText}<br>(Code: {(int)errorCode})</p>";
69-
client.LoadHtml(html);
70-
}
7146
}

0 commit comments

Comments
 (0)