cef
cef copied to clipboard
Linux: cefclient frozen when pasting clipboard
Original report by Emmanuel Jorge (Bitbucket: e.jorge).
1 - Steps to reproduce:
-- Launch ./cefclient
-- https://www.google.com is loaded
-- From the address bar, copy (using ctrl+c) the url or some word of the url (e.g: google)
-- Paste the related text (using ctrl+v) in an input field into the webview (e.g: google.com search field)
2 - Expected output: the text may be pasted
Instead, the entire application freezes, then after exactly 30 sec, the application comes back to life but the copied word is not pasted
3 - Tested version : CEF 90 (https://cef-builds.spotifycdn.com/cef_b ... 64.tar.bz2) built and run from Ubuntu 18.04 64 bits
The issue seems to have been introduced from CEF 89. I could not reproduce it using CEF 88.
Running with multi-threaded-message-loop avoid the issue:
./cefclient --multi-threaded-message-loop
Original comment by Emmanuel Jorge (Bitbucket: e.jorge).
Reproduced not only in OSR mode (updated issue description)
Original changes by Emmanuel Jorge (Bitbucket: e.jorge).
- changed title from "cefclient OSR frozen when pasting clipboard" to "cefclient frozen when pasting clipboard"
- edited description
- changed title from "cefclient frozen when pasting clipboard" to "Linux: cefclient frozen when pasting clipboard"
- changed component from "Unclassified" to "SampleApps"
@magreenblatt I have this issue with CEF 123 on Debian 12 with my CEF application in offscreen rendering mode:
-
When selecting a paragraph with the mouse, then doing
browser->GetMainFrame()->Copy()then pasting inside a text editor (orecho <Ctr-C> | cat -e) it gives the text with 3 consecutive '\n' instead of 1. -
When doing the same thing (
browser->GetMainFrame()->Paste()) inside a GitHub input text, it works (\n are removed). But if I paste it for either in a Godot input text or getting the Godot clipboard, then my CEF application is freezing. -
In Godot when pressing keys they can repeat actions, I noticed this called many times
browser->GetMainFrame()->Copy()with consequence it cumulates the selected text.
I think there is possible memory corruption with browser->GetMainFrame()->Copy().
PS: how to get the C++ string of browser->GetMainFrame()->Paste() ?