Closed Bug 1658534 Opened 4 years ago Closed 4 years ago

Make `HTMLEditor::HandleDeleteCollapsedSelectionAtAtomicContent()` stop recursive call

Categories

(Core :: DOM: Editor, task, P2)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(2 files)

When it removes an invisible <br> element, it calls HandleDeleteSelectionInternal() recursively to delete its preceding content. However, now, we must be able to compute the preceding content's range and delete it without the dangerous recursive call.

Severity: -- → S3
Priority: -- → P2
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/361b77c4aaa2 part 1: Split the removing invisible `<br>` element part off from `HTMLEditor::HandleDeleteCollapsedSelectionAtAtomicContent()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/fe37e2106c17 part 2: Avoid infinite recursive calls at removing an invisible `<br>` element r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: