Chromium Version: 96.0.4664.110
I'm using prebuild binaries and did not build CEF manually.
I'm using offscreen rendering.
JavaScript is enabled and functional.
I don't have any command-line switches enabled.
Problem:
Many iframes (but not all) only show as grey rectangles and can't be interacted with. This includes embedded YouTube videos, Google Maps, some ads, etc.
Example #1:
A very simple test iframe: http://pragma-engine.com/test_cef_iframe.php?example=1
This one works just fine when I load the URL with CEF:
I can also interact with it (i.e. select the text).
Example #2:
A generic YouTube video embed: https://pragma-engine.com/test_cef_iframe.php?example=2
This one shows as a grey rectangle when loading it with CEF:
The rectangle cannot be interacted with (i.e. it's not just a rendering issue, the video can't be started either).
Loading the video (https://www.youtube.com/embed/jNQXAC9IVRw) directly in CEF works just fine (including audio), so it's not a codec issue:
Example #3:
An OpenStreetMap embed: http://pragma-engine.com/test_cef_iframe.php?example=3
Once again, it only shows up as a grey rectangle when trying to load it via CEF:
Here are some of my settings:
- Code: Select all
CefSettings settings {};
settings.windowless_rendering_enabled = true;
settings.multi_threaded_message_loop = false;
settings.uncaught_exception_stack_size = 1;
settings.no_sandbox = true; // I've also tried setting this one to false, but the issue with the iframes remained
CefString(&settings.cache_path).FromASCII("path/to/cache"); // (This isn't the actual path)
CefString(&settings.browser_subprocess_path).FromASCII("path/to/subprocess.exe"); // (This isn't the actual path)
[...]
CefWindowInfo windowInfo;
windowInfo.SetAsWindowless(nullptr);
[...]
CefBrowserSettings browserSettings;
// Default browser settings
[...]
I call CefDoMessageLoopWork approximately 60 times per second.
When loading Example #1, I'm not getting any output from CefDisplayHandler::OnConsoleMessage or BrowserRenderProcessHandler::OnUncaughtException.
When loading Example #2 I get the following output:
[0127/202859.290:WARNING:browser_info.cc(298)] Returning a speculative frame for 386547056645 [90,5]
[0127/202859.368:WARNING:browser_info.cc(298)] Returning a speculative frame for 386547056645 [90,5]
[0127/202859.369:WARNING:browser_info.cc(298)] Returning a speculative frame for 386547056645 [90,5]
[0127/202859.371:WARNING:browser_info.cc(298)] Returning a speculative frame for 386547056645 [90,5]
[0127/202859.371:WARNING:browser_info.cc(298)] Returning a speculative frame for 386547056645 [90,5]
OnConsoleMessage: [Lv:3] Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-full-version-list'. [Src::0
[0127/202859.377:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-full-version-list'.", source: (0)
When loading Example #3 I get the following output:
[0127/202829.281:WARNING:browser_info.cc(298)] Returning a speculative frame for 377957122053 [88,5]
[0127/202829.282:WARNING:browser_info.cc(298)] Returning a speculative frame for 377957122053 [88,5]
[0127/202829.283:WARNING:browser_info.cc(298)] Returning a speculative frame for 377957122053 [88,5]
[0127/202829.283:WARNING:browser_info.cc(298)] Returning a speculative frame for 377957122053 [88,5]
[0127/202829.284:WARNING:browser_info.cc(298)] Returning a speculative frame for 377957122053 [88,5]
I don't think any of these messages are related to the actual issue, however. I can load https://www.w3schools.com/html/html_iframe.asp in CEF just fine (including the iframe), but I also get a bunch of "Returning a speculative frame for..." for that one:
Any tips or ideas would be much appreciated .