Status of Custom Error Page Handling with CEF 123+

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Status of Custom Error Page Handling with CEF 123+

Postby aleitner » Mon Jul 01, 2024 12:59 pm

Does rendering error pages in CEFSharp with cef versions 123.0.7 and above is still function properly?

I'm seeking insights on the functionality of error page handling in CEFSharp concerning the changes observed from cef version 123.0.7+ (Chromium 123.0.6312.46). I am writing an application using the capi, but I have modeled various things off what I have seen within the CEFSharp.

Up until cef version 122.1.13 (Chromium 122.0.6261.130), writing directly to the document within the On Load Error callback for displaying error pages worked as expected. However, starting with cef version 123.0.7 (Chromium 123.0.6312.46) the renderer process terminates upon navigation failure, as noted by magreenblatt (viewtopic.php?f=6&t=19837#p55533). My application now does not receive the paint events for html page I wrote to the document.

I am curious to know if calling document.write with my error html is functionally different from using the DevTools to setDocumentContent. This post is a continuation from this discussion viewtopic.php?t=19837

UPDATE

It still works. Turns out using Dev Tools to set content guarantees a renderer that is not terminated
Last edited by aleitner on Mon Jul 29, 2024 11:13 am, edited 1 time in total.
aleitner
Mentor
 
Posts: 60
Joined: Fri Jun 16, 2023 12:05 pm

Re: Status of Custom Error Page Handling with CEF 123+

Postby amaitland » Thu Jul 11, 2024 9:25 pm

You can try out the minimal example. From memory the WinForms version should set the content via devtools.

https://github.com/cefsharp/CefSharp.MinimalExample
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1311
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 2 guests