Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ozone/wayland: Avoid set_surrounding_text when text length exceeds li…
…mit. Due to the length limitation of wayland messages, we can not send text longer than 4096 bytes in set_surrounding_text. In the spec of text-input-unstable-v3, the max length is explicitly specified as 4000 bytes. https://github.com/wayland-project/wayland-protocols/blob/master/unstable/text-input/text-input-unstable-v3.xml#L141 Although we use v1 instead of v3, the semantics of set_surrounding_text seems unchanged and I follow the 4000 bytes limit. Bug: 1171936 Change-Id: I73aab9b94cb4d388f88ae97aa34653135c5574cb Text: Pasting text longer than 5000 in Omnibox and text input in groups.google.com. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2666657 Commit-Queue: Naoki Fukino <fukino@chromium.org> Reviewed-by: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#849640}
- Loading branch information