Open Bug 1728746 Opened 4 years ago Updated 1 month ago

Incorrect character backspace behavior for compound emoji

Categories

(Core :: DOM: Editor, defect)

Firefox 91
defect

Tracking

()

ASSIGNED
Tracking Status
firefox91 --- affected
firefox92 --- affected
firefox93 --- affected

People

(Reporter: fwage73, Assigned: fwage73, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Compound emoji characters, like 🏳️‍🌈 or 👩‍🚀, pressing backspace won't delete the whole character. For 🏳️‍🌈, backspace once produces 🏳️.

Expected results:

These emojis should be seen as single characters.

Reproduced on the latest version of Nightly 93.0a1 (2021-09-03), beta 92.0 and release 91.0.2.
Setting up flags, severity and a component for this in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.
Not a recent regression as this can be reproduced to at least Firefox 70.0.
Not reproducible on Chrome.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Animation
Ever confirmed: true
Product: Firefox → Core
Component: DOM: Animation → DOM: Editor
Mentor: fwage73
Mentor: fwage73
Assignee: nobody → fwage73
Attachment #9526559 - Attachment description: WIP: Bug 1728746 - consider grapheme cluster when deleting backwards → Bug 1728746 - consider grapheme cluster when deleting backwards
Status: NEW → ASSIGNED
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c6b00049a937 https://hg.mozilla.org/integration/autoland/rev/c5e57dfd3937 Revert "Bug 1728746 - consider grapheme cluster when deleting backwards r=masayuki" for causing mochitest failures @ test_bug332636.html

Backed out for causing mochitest failures

Flags: needinfo?(fwage73)

Failed within these tests:
https://searchfox.org/firefox-main/rev/54da8f6bfead7871ca89f2cb18323af5f00d9620/editor/libeditor/tests/test_bug332636.html#19,24

The Unicode character is: https://www.compart.com/de/unicode/U+10A0F

And now, similar thing is tested within the new test. So, I think we can just remove these 4 lines and optionally adds this character's case into the new test.

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

Attachment

General

Creator:
Created:
Updated:
Size: