You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently encountered a problem with the focus in CEF. We had difficulty reproducing it because it rarely happened. But we're contacting you today because we've managed to find a simple scenario that you can easily reproduce.
Try to search something on the first page to be redirected on another.
Write something in the new input field and clear it.
Then click again in the input field, the carret, which originally appeared as a flashing vertical bar, is no longer displayed. But you can still type.
In our case, we observed this expected behaviour in a form created with VueJS. We had a drop-down list that wasn't displayed because the focus event hadn't been received, even though the activeElement property had changed.
We tested with Chrome and Edge and didn't have the problem. The problem only occurs when you activate the Chrome runtime with the Alloy style.
Expected behavior
We expect the behaviour to be in line with that of Chrome and Edge.
Hethsron
changed the title
osr: offscreen-rendering : focus does not work as expected
osr: chrome-runtime + alloy-style : focus does not work as expected
Jan 16, 2025
Hethsron
changed the title
osr: chrome-runtime + alloy-style : focus does not work as expected
osr: chrome-runtime + alloy-style : focus is not fired in some scenarios
Jan 17, 2025
Maybe related to issue #3510 and #3436
If someone has any hint to help us starting to debug, we're very interested as we have blocking scenarios on such issue.
I've tried to start the debug by the callstack of the renderer process when CefRenderProcessHandler::OnFocusedNodeChanged is called but this method is actually callbacked correctly, even when the onfocus event is not fired.
Which code manages the focus in OSR mode ? where I can start the debug ?
However, we believe that redirection significantly disrupts focus as implemented in the internal layers of CEF/Chromium.
We are ready to help if you provide us with feedback on the subject, in order to achieve a more lasting solution than this bypass.
Hethsron
changed the title
osr: chrome-runtime + alloy-style : focus is not fired in some scenarios
osr: focus is lost after a redirection (thus causing the text cursor to be missing (caret) and the FocusEvent not being triggered)
Feb 4, 2025
Describe the bug
Hello @magreenblatt
We recently encountered a problem with the focus in CEF. We had difficulty reproducing it because it rarely happened. But we're contacting you today because we've managed to find a simple scenario that you can easily reproduce.
To Reproduce
Steps to reproduce the behavior:
In our case, we observed this expected behaviour in a form created with VueJS. We had a drop-down list that wasn't displayed because the focus event hadn't been received, even though the activeElement property had changed.
We tested with Chrome and Edge and didn't have the problem. The problem only occurs when you activate the Chrome runtime with the Alloy style.
Expected behavior
We expect the behaviour to be in line with that of Chrome and Edge.
Video
https://github.com/user-attachments/assets/fbc9e37e-ce6e-4002-91ca-14be454da1fd
Impacted Version:
Additional context
Yes, the problem is reproducible with cefclient as you can see.
The text was updated successfully, but these errors were encountered: