Closed Bug 1849776 Opened 1 years ago Closed 1 years ago

Don't allocate DeferredContentEditableCountChangeEvent unnecessarily

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

In the profiles from bug 1844470 I saw allocations and frees of DeferredContentEditableCountChangeEvent but no time spent in DeferredContentEditableCountChangeEvent::Run. It turns out that Editor-TipTap has a lot of invocations to Document::ChangeContentEditableCount with aElement being nullptr.

Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/a1487474ef27 Don't enqueue DeferredContentEditableCountChangeEvent if aElement is nullptr. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: