What version of the product are you using?
75.1.141
What architecture x86 or x64?
Either
On what operating system?
Win 10
Are you using WinForms, WPF or OffScreen?
All
What steps will reproduce the problem?
Call LoadHtml without setting browser.RequestHandler
What is the expected output? What do you see instead?
Html to load, instead only a blank screen.
Originally reported in https://github.com/cefsharp/CefSharp/issues/2788#issuecomment-522976148
Current implementation checks if RequestHandler is null then returns NULL which is incorrect.
https://github.com/cefsharp/CefSharp/blob/cefsharp/75/CefSharp.Core/Internals/ClientAdapter.cpp#L542
Workaround in the short term is to set the RequestHandler to the default implementation.
c#
browser.RequestHandler = new CefSharp.Handler.RequestHandler();
Updated title as this also is a problem for RegisterResourceHandler which LoadHtml uses.
Fixed in master in commit https://github.com/cefsharp/CefSharp/commit/61e82bc50c8c7e54da089bef99fc031deee58c50 and cefsharp/75 branch in https://github.com/cefsharp/CefSharp/commit/aab505a1fc2a8708ccce3ae9ac15634b7600db2f
Most helpful comment
Current implementation checks if
RequestHandleris null then returnsNULLwhich is incorrect.https://github.com/cefsharp/CefSharp/blob/cefsharp/75/CefSharp.Core/Internals/ClientAdapter.cpp#L542
Workaround in the short term is to set the
RequestHandlerto the default implementation.c# browser.RequestHandler = new CefSharp.Handler.RequestHandler();