Open Bug 1756738 Opened 3 years ago Updated 3 years ago

[Fcitx][IME][Linux] If preedit disabled, typing causes web rich text editor crash

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: garywill, Unassigned)

Details

Steps to reproduce:

  1. Setup Linux (x86_64) and set:
  1. Install fcitx IME(I used fcitx 4 here)
  2. Switch to fcitx
  3. Disable preedit (press Ctrl-Alt-P to disable. By default it is enabled)
  1. Open a web with rich text editor (RTE), eg
  1. https://react-rte.org/demo ( source code https://github.com/sstur/react-rte )
  2. Reddit https://www.reddit.com/submit
  3. Zhihu
  4. (there are also other websites affected I think)
  1. Focus the rich text editor
  2. Try to input any character with fcitx

Actual results:

When the first character was about to be put onto the RTE, something went wrong:

  1. On react-rte.org/demo, the whole web crash
  2. On Reddit, RTE lose focus
  3. On Zhihu, similar to Reddit
  4. (there are also other websites affected I think)

The reason why I think this is Firefox's issue, not the web's :

  1. This bug not on Firefox 89.0.2 and before. Only since Firefox 90.0b1
  2. Different websites with RTE meet this problem
  3. This bug not when fcitx preedit not disabled
  4. This bug not on Chrome
  5. This bug not on Windows

Expected results:

The characters should be inputted correctly and no error happend.

Sorry for the mistaken format. I post the Steps to reproduce here again:

  1. Setup Linux (x86_64) and set:
    1. Install fcitx IME(I used fcitx 4 here)
    2. Switch to fcitx
    3. Disable preedit (press Ctrl-Alt-P to disable. By default it is enabled)
  2. Open a web with rich text editor (RTE), eg
    1. https://react-rte.org/demo ( source code https://github.com/sstur/react-rte )
    2. Reddit https://www.reddit.com/submit
    3. Zhihu
    4. (there are also other websites affected I think)
  3. Focus the rich text editor
  4. Try to input any character with fcitx

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

web rich text editor crash

Does it mean that Firefox crashes? Does this occur on Firefox Nightly (download from nightly.mozilla.org/)? If so, please add the comment of crash id (I can find crash id in about:crashes)

Flags: needinfo?(garywill)

Does it mean that Firefox crashes

No, just the web crash. Becomes empty web.

Does this occur on Firefox Nightly

Yes this bug still on firefox-101.0a1.en-US.linux-x86_64 (just downloaded)

Flags: needinfo?(garywill)

When the web crashes (become blank web), on the console is:

DOMException: Node.removeChild: The node to be removed is not a child of this node         demo.js:19:46950
Uncaught DOMException: Node.removeChild: The node to be removed is not a child of this node             demo.js:19

Similar to https://bugzilla.mozilla.org/show_bug.cgi?id=1739489#c36

You need to log in before you can comment on or make changes to this bug.