I know there have been other topics addressing this issue but I couldn't find a solution yet.
I updated from CEF 3.2704.1431 to 3.3112.1656 and I'm wokring with Win10.
I need to load html code which contains links to local files (for example *.css or images). In the old version it worked by using
- Code: Select all
browser->GetMainFrame()->LoadString(html.toStdWString(), "file:///local");
And CefRequestHandler::GetResourceHandler returned my Custom Scheme Handler which was used to load the local files.
The problem with the current version is that the GetResourceHandler function is not called when using the same code. I've seen other topics where it's stated that instead of using LoadString() a data uri should be used. But I've tried this and using a data uri won't trigger the GetResourceHandler function either. Which means I can't load my local files.
Any ideas how to load html code with links to local files?