brave-browser: [Linux] fcitx5 input methods duplicate input on address bar

Description

fcitx5 input methods duplicate input on address bar. Tested with fcitx5-bamboo and fcitx5-unikey.

Steps to reproduce

  1. Install and setup fcitx5.
  2. Launch Brave with brave --incognito --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3.
  3. Go to the address bar, switch input methods and type anything followed by a space.

Actual result

Words are duplicated: https://github.com/user-attachments/assets/d5ec504e-5868-4ef0-a554-133853525f5e

Expected result

Words don’t duplicate.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave: 1.78.97 Chromium: 136.0.7103.93 (Official Build) (64-bit) Revision: d9496c9186abbc724489a964d9331a12b0536983 OS: Linux

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled
  • in the latest version of Chrome

Miscellaneous information

Doesn’t affect other text fields. Not reproducible on Chromium 136.0.7103.92.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 10
  • Comments: 18

Most upvoted comments

Seems like it is fixed upstream, just have to wait for Chromium v139.

Or some nice devs can include the patch early? ☺️

The situation appears to be worse with Brave 1.80.113 (Chromium 138.0.7204.49), on KDE Plasma Wayland 6.4.1.

  • If I disable WaylandTextInputV3: I cannot switch to or activate the IME; only English input is possible. Manually switching the IME in the taskbar has no effect (as reported in #45183, #45628, where the proposed solution was to enable WaylandTextInputV3).

  • If I enable WaylandTextInputV3: All input gets duplicated multiple times. It used to be duplicated 2-3 times, but now it’s 5-10 times (as reported in this issue and #46723, where the proposed solution was to disable WaylandTextInputV3). There is also a high chance of the browser crashing immediately after input.

This creates a catch-22 where it seems impossible to use an IME normally under Wayland, regardless of the setting.

This is very frustrating, and I’ve had to switch back to X11 (XWayland) as a result.


System Info:

Operating System: Arch Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-3-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
Graphics Processor: AMD Radeon 780M Graphics
Input Method: Fcitx5 5.1.14

Extra flags:

--enable-features=UseOzonePlatform
--ozone-platform=wayland
--enable-wayland-ime
--disable-features=GlobalShortcutsPortal,WaylandTextInputV3