Closed Bug 1828976 Opened 3 years ago Closed 3 years ago

Reorder some checks in EventDispatch::Dispatch to avoid useless GetRootPresContext() calls

Categories

(Core :: DOM: Events, defect, P3)

defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 external file)

No description provided.

The GetRootPresContext calls don't matter in real world cases, with trusted clicks or keypresses, but benchmarks trigger lots of other untrusted events,
and both these cases care about clicks and keypresses, so have similar checks.
I don't want to reuse the refreshDriver which is on the stack since event dispatch might have destroyed aPresContext so that it doesn't have
root anymore.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b664f0ec954 Reorder some checks in EventDispatch::Dispatch to avoid useless GetRootPresContext() calls, r=edgar
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: