Closed Bug 1843473 Opened 1 year ago Closed 1 year ago

Avoid dispatching DOMActivate for button.click() / checkbox.click(), at least in common cases

Categories

(Core :: DOM: Events, task)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: mstange, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

About 20% of the time in the testcases in bug 1834003 is spent dispatching a DOMActivate event.

WebKit does not send this event.

My plan is to never dispatch DOMActive if there are no listeners. Definitely not trivial change though, currently lots of the default handling is bound to DOMActive.

Assignee: nobody → smaug
Attachment #9349452 - Attachment description: WIP: Bug 1843473 - Don't dispatch DOMActivate if there are no listeners for it, r=masayuki → Bug 1843473 - Don't dispatch DOMActivate if there are no listeners for it, r=masayuki
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ff0291058601
Don't dispatch DOMActivate if there are no listeners for it, r=masayuki
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: