Closed Bug 1921701 Opened 26 days ago Closed 23 days ago

`test_bug430392.html` checks after NOOP result

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

The editing host has:

 <span contenteditable="false">A</span> ; <span contenteditable="false">B</span> ; <span contenteditable="false">C</span> 

Then, the first test tries to to move selection as:

 <span contenteditable="false">A</span>[] ; <span contenteditable="false">B</span> ; <span contenteditable="false">C</span> 

However, the selection becomes:

 <span contenteditable="false">A[]</span> ; <span contenteditable="false">B</span> ; <span contenteditable="false">C</span> 

So, caret is collapsed in the non-editable text node. However, due to bug 1921700, beforeinput is fired as expected, however, insertParagraph, insertParagraph, deleteContentBackward and deleteContentBackward do nothing since non-editable state. Then, the test checks the result whether the content is same as first.

Before bug 1921705, the first ArrowRight key press moves caret to end of the
non-editable character "A". Therefore, nothing is changed by pressing Enter
nor Backspace. However, beforeinput events are fired due to bug 1921700.

In bug 1921705, we fix the caret move issue. Then, this test starts editing.
Therefore, input events should be fired as same as beforeinput events.
Additionally, due to the complicated collapsible white-space handling, some
results are not same as original text content. Therefore, we need to adjust
the expected results.

Depends on D224183

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/cc74fc8bf585 Update `test_bug430392.html` for the new behavior changed in bug 1921705 r=m_kato
No longer blocks: 1921146
Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: