Closed Bug 1812644 Opened 2 years ago Closed 2 years ago

Event::PreventDefaultInternal should call WarnOnceAbout only once.

Categories

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

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

Current a string is created and destroyed always, and that requires allocation/deallocation.
https://searchfox.org/mozilla-central/rev/e35e7107299a46a696b8aa8a4a5c03a39458ac21/dom/base/Document.cpp#13358 anyhow returns then early.

Having if (!doc->HasWarnedAbout(Document::ePreventDefaultFromPassiveListener)) before WarnOnceAbout should work.

Assignee: nobody → smaug
Severity: -- → S3
Priority: -- → P3

This is probably the only place where WarnOnceAbout is called in such a hot code, so I didn't try to change the API, at least not for now.

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb9e29f74b61 Event::PreventDefaultInternal should call WarnOnceAbout only once, r=masayuki
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: