Closed Bug 1800043 Opened 3 years ago Closed 3 years ago

macOS Crash in [@ mozilla::EditorDOMPointBase<T>::ContainerAs<T>]

Categories

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

Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox106 --- unaffected
firefox107 --- unaffected
firefox108 --- fixed

People

(Reporter: aryx, Assigned: jjaschke)

References

(Regression)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

8 crashes from 6 installations on macOS, oldest reported version is Firefox 108.0a1 20221030090504.

Masayuki, are you aware of a change which would explain this?

Crash report: https://crash-stats.mozilla.org/report/index/c7e6a5ec-c3a3-4b7c-8b97-a34fd0221110

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(ContentNodeType::FromNode(mParent))

Top 10 frames of crashing thread:

0  XUL  mozilla::EditorDOMPointBase<nsINode*, nsIContent*>::ContainerAs<mozilla::dom::Text> const  editor/libeditor/EditorDOMPoint.h:214
0  XUL  mozilla::EditorDOMPointBase<nsINode*, nsIContent*>::Char const  editor/libeditor/EditorDOMPoint.h:390
1  XUL  mozilla::EditorDOMPointBase<nsINode*, nsIContent*>::IsCharASCIISpaceOrNBSP const  editor/libeditor/EditorDOMPoint.h:397
1  XUL  mozilla::DeleteRangeTransaction::MaybeExtendDeletingRangeWithSurroundingWhitespace const  editor/libeditor/DeleteRangeTransaction.cpp:76
1  XUL  mozilla::DeleteRangeTransaction::DoTransaction  editor/libeditor/DeleteRangeTransaction.cpp:125
2  XUL  mozilla::EditAggregateTransaction::DoTransaction  editor/libeditor/EditAggregateTransaction.cpp:38
3  XUL  mozilla::TransactionItem::DoTransaction  editor/txmgr/TransactionItem.cpp:83
3  XUL  mozilla::TransactionManager::BeginTransaction  editor/txmgr/TransactionManager.cpp:422
4  XUL  mozilla::TransactionManager::DoTransaction  editor/txmgr/TransactionManager.cpp:74
5  XUL  mozilla::EditorBase::DoTransactionInternal  editor/libeditor/EditorBase.cpp:908
Flags: needinfo?(masayuki)

Jan: Could you take a look? This is obviously a regression of bug 1783641.

Flags: needinfo?(masayuki) → needinfo?(jjaschke)
Regressed by: 1783641
Assignee: nobody → jjaschke
Flags: needinfo?(jjaschke)

New crash regression - let's by default give it a high severity & priority.

Severity: -- → S2
Priority: -- → P1
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6fab61424d92 Fixed condition to determine end of selected string. r=masayuki

Comment on attachment 9303038 [details]
Bug 1800043: Fixed condition to determine end of selected string. r=masayuki

Beta/Release Uplift Approval Request

  • User impact if declined: Segfaults occur when macOS users double click the last word in a div contenteditable and press delete, if the content ends with an empty <span> element:

<div contenteditable><p>abc def<span></span></p></div>

(double click on "def" + pressing delete crashes)

  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: (see above. A wpt is included in the patch that tests this)
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The faulty condition that led to segfaults has been fixed. A wpt test case has been added that reproduced the crash and verifies that it is resolved now.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9303038 - Flags: approval-mozilla-beta?

Beta (v107) is not affected - bug 1783641 only landed for Nightly (v108). Can the uplift request be ignored?

Flags: needinfo?(jjaschke)

Ah, my bad. Yes, can be ignored.

Flags: needinfo?(jjaschke)
Attachment #9303038 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: