[Fcitx][IME][Linux] If preedit disabled, typing causes web rich text editor crash
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: garywill, Unassigned)
Details
Steps to reproduce:
- Setup Linux (x86_64) and set:
- Install fcitx IME(I used fcitx 4 here)
- Switch to fcitx
- Disable preedit (press Ctrl-Alt-P to disable. By default it is enabled)
- Open a web with rich text editor (RTE), eg
- https://react-rte.org/demo ( source code https://github.com/sstur/react-rte )
- Reddit https://www.reddit.com/submit
- Zhihu
- (there are also other websites affected I think)
- Focus the rich text editor
- Try to input any character with fcitx
Actual results:
When the first character was about to be put onto the RTE, something went wrong:
- On react-rte.org/demo, the whole web crash
- On Reddit, RTE lose focus
- On Zhihu, similar to Reddit
- (there are also other websites affected I think)
The reason why I think this is Firefox's issue, not the web's :
- This bug not on Firefox 89.0.2 and before. Only since Firefox 90.0b1
- Different websites with RTE meet this problem
- This bug not when fcitx preedit not disabled
- This bug not on Chrome
- 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:
- Setup Linux (x86_64) and set:
- Install fcitx IME(I used fcitx 4 here)
- Switch to fcitx
- Disable preedit (press Ctrl-Alt-P to disable. By default it is enabled)
- Open a web with rich text editor (RTE), eg
- https://react-rte.org/demo ( source code https://github.com/sstur/react-rte )
- Reddit https://www.reddit.com/submit
- Zhihu
- (there are also other websites affected I think)
- Focus the rich text editor
- Try to input any character with fcitx
Comment 2•3 years ago
|
||
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.
Comment 3•3 years ago
•
|
||
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)
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)
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
Description
•