Closed Bug 1759816 Opened 2 years ago Closed 2 years ago

Too many "WARNING: '!aChild->IsContent()', file m:/fx64-dbg/dist/include\mozilla/EditorDOMPoint.h:534" in test log

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix
firefox100 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

When I run ./mach mochitest editor/libeditor/tests, I got 586 instances of the warning.

Set release status flags based on info from the regressing bug 1496320

When setting a point, the child must be nsIContent. However, climbing up
the tree from a point with EditorDOMPointBase<PT, CT>, it may reach top of
the DOM tree (fragment). Then, we'd get a warning which wouldn't hit in
usual cases. Therefore, we should add new API to get parent point of an
EditorDOMPointBase<PT, CT> instance and it should check properly before
creating new instance.

Depends on D141195

Has Regression Range: --- → yes
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/976339473832
Create `EditorDOMPointBase<PT, CT>::ParentPoint()` for avoiding warning spam caused by no necessary checks r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: