chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.38k stars 467 forks source link

osr : Browser not correctly refreshing on Resize in CEF 129 #3826

Closed Hethsron closed 1 week ago

Hethsron commented 1 week ago

Describe the bug The bug was clearly described in the following post and the following issue

Screenshots For more details, see the video

Expected behavior When the window size is resized, the view should normally be refreshed.

Versions

magreenblatt commented 1 week ago

Duplicate of #3822.

magreenblatt commented 1 week ago

You say:

with the CEF sample cefclient --off-screen-rendering-enabled --multi-threaded-message-loop it does not reproduce the issue because CefRefPtr::WasResized is still called in the CEF_UIT thread so there is no task posted, the work is executed synchronuously.

This suggests that your timing of calling WasResized and returning updated values from GetViewRect may be incorrect. You need to make sure that GetViewRect is returning the correct value when WasResized actually executes.

Hethsron commented 1 week ago

@magreenblatt Thanks for your quick answer. But after a huge debug session in our side, there is something strange which happens in cef, you can reproduice easily with your cefclient. (see https://magpcss.org/ceforum/viewtopic.php?f=6&t=20038&p=56405&hilit=CEF129#p56405)