Closed Bug 1625755 Opened 4 years ago Closed 4 years ago

crash @ mozilla::HTMLEditor::DoInsertHTMLWithContext

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox-esr68 --- wontfix
firefox74 --- wontfix
firefox75 --- wontfix
firefox76 --- fixed

People

(Reporter: wsmwk, Assigned: masayuki)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Priority: -- → P2

I'm still not sure how the crash occurs especially on Thunderbird. However,
it could be possible if pointToInsert is modified with an orphan node (i.e.,
when pointToInsert.GetContainer() returns nullptr). Therefore, this patch
makes it check whether the inserted node stays at expected position or not,
and if it's not, make it keep inserting next content nodes to previous position
because it must look like odd that inserting to different position.

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/2839bb5efce7
Make `HTMLEditor::DoInsertHTMLWithContext()` check whether inserted content stays at expected point before modifying next insertion point r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/22668 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Upstream PR merged by moz-wptsync-bot
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: