Closed Bug 1966135 Opened 1 year ago Closed 1 year ago

Hang on Reddit after dragging selected text

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

VERIFIED FIXED
140 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox138 --- unaffected
firefox139 --- unaffected
firefox140 + verified

People

(Reporter: mccr8, Assigned: sefeng211)

References

(Regressed 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files)

STR:

  1. Go to a Reddit comment page like https://www.reddit.com/r/news/comments/1klnsb2/microsoft_is_cutting_3_of_all_workers/
  2. Select the text of a comment.
  3. Click and drag the highlighted text.

Results: the content process hangs. Here's a profile: https://share.firefox.dev/44Avepx

I think this is a regression. Sean, could this be a regression from bug 1932150? I can do a bisection if it doesn't seem like that's the problem.

I'm on the latest 2025-05-13 Nightly.

[Tracking Requested - why for this release]: Fairly easy to trigger hang that makes a popular page unusable.

Flags: needinfo?(sefeng)

I did a mozregression. Here's the resulting range.

Regressed by: 1965664
Attached file WIP: Bug 1966135

The bug is marked as tracked for firefox140 (nightly). We have limited time to fix this, the soft freeze is in 8 days. However, the bug still isn't assigned.

:hsinyi, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(htsai)

Looks like sefeng is working on this so I'll assign it to them.

Assignee: nobody → sefeng
Flags: needinfo?(htsai)

If the element is slotted and the aKind == TreeKind::Flat, it should
use the index of AssignedNodes of the slot element to do the
comparison.

See Also: → 1966807
Duplicate of this bug: 1966807
Pushed by sefeng@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4002275827f Make CompareToRange{Start|End} explicit about the ordering r=jjaschke,dom-core https://hg.mozilla.org/integration/autoland/rev/39ef68bec9f9 Allow CompareChildOffsetAndChildNode to do flattened tree comparison r=jjaschke,dom-core
See Also: 1966807
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Flags: needinfo?(sefeng)
QA Whiteboard: [qa-triage-done-c141/b140][qa-ver-needed-c141/b140]
Flags: qe-verify+
QA Contact: mchiorean

I was able to reproduce the issue on Ubuntu 24.04 using Firefox build 140.0a1(20250513214736).
Verified as fixed on Win11 / Ubuntu 24.04 using Firefox builds 141.0a1 and 140.0b2.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c141/b140][qa-ver-needed-c141/b140] → [qa-triage-done-c141/b140][qa-ver-done-c141/b140]
Flags: qe-verify+
Regressions: 1969289
Regressions: 1978693
Regressions: 1978714
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: