Closed Bug 1832515 Opened 1 year ago Closed 1 year ago

Optimize out EventListenerManager calls when the event is untrusted but there are listeners only for trusted events

Categories

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

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(2 files)

We have MessageManager and WindowRoot in the event path in the content processes, but listeners in those should in general be for trusted events only.
And some benchmarks trigger tons of untrusted events.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f23d4642c5b4 remove unsused *PrivilegedClickListeners and mIsChrome, r=masayuki https://hg.mozilla.org/integration/autoland/rev/25379e9dc04d optimize out untrusted events from EventListenerManager when there are no listeners for untrusted events, r=masayuki
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: