Open Bug 1868050 Opened 2 years ago Updated 2 years ago

Undo after changing paragraph style causes text deletion and forgets undo history

Categories

(Thunderbird :: Message Compose Window, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: jhg, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

In HTML compose window, with style Paragraph selected

1 Type several lines of text separated by ENTER (i.e. multiple paragraphs)
2 Make several changes on multiple lines (i.e. add a character at the end)
3 Verify that those changes can be undone and redone (CtrlZ, CtrlShiftZ)
4 Place the cursor in the first line
5 Select style Heading1
6 Undo

Actual results:

  • The first line of text disappears
  • The undo history is forgotten; pressing Ctrl+Z now has no effect

This about 90% reproducible. Some combinations of typing, style changes, etc exhibit correct behavior. I haven't been able to find a 100% consistent way to reproduce this.

Expected results:

The Heading1 style application should have been undone with no effect on remaining undo history.

This is likely a Core:Editor bug. Can you reproduce with Firefox alone at https://www-archive.mozilla.org/editor/midasdemo/ ?

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