Undoing paragraph deletion incorrectly adds an empty paragraph
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: saschanaz, Assigned: masayuki)
References
Details
Attachments
(4 files, 4 obsolete files)
- Open the attachment
- Try deleting in either direction and undoing that action.
Expected: Paragraph should restore
Actual: An empty paragraph appears instead of the original one
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Reporter | ||
Comment 3•5 years ago
|
||
Reporter | ||
Comment 4•5 years ago
|
||
Emojis are unexpectedly broken, filed Bug 1639311.
Comment 5•5 years ago
|
||
I couldn't reproduce this on Win10, nightly 78.
Reporter | ||
Comment 6•5 years ago
|
||
"Here" is meant to be the right side (or left in the second case) of the emoji, while it's currently broken. Could you try again?
Reporter | ||
Comment 7•5 years ago
|
||
Trying again after Bug 1639311...
Updated•5 years ago
|
Comment 8•4 years ago
|
||
Still broken; also on Ubuntu.
Assignee | ||
Comment 9•3 years ago
|
||
A preparation patch for bug 1735608 will fix this. I'll post the patch to here soon.
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D132120
Assignee | ||
Comment 12•3 years ago
|
||
JoinNodeTransaction::UndoTransaction()
has its own splitting code. However,
it has some bugs, it does not handle surrogate pairs correctly and it does not
care selections. HTMLEditor::DoSplitNode()
is used for splitting a DOM node
from SplitNodeTransaction::DoTransaction()
. So that we should make
JoinNodeTransaction::UndoTransaction()
should use HTMLEditor::DoSplitNode()
for saving the maintenance cost.
Depends on D132121
Assignee | ||
Comment 13•3 years ago
|
||
Similarly, SplitNodeTransaction::RedoTransaction()
has its own code, but it
does not work well. Let's make it use HTMLEditor::DoSplitNode()
instead.
This fixes bug 1740656.
Depends on D132122
Comment 14•3 years ago
|
||
Comment 16•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ccf78c106ecf
https://hg.mozilla.org/mozilla-central/rev/0b4c7957b844
https://hg.mozilla.org/mozilla-central/rev/517f1f870d28
Updated•3 years ago
|
Description
•