Closed
Bug 1812644
Opened 2 years ago
Closed 2 years ago
Event::PreventDefaultInternal should call WarnOnceAbout only once.
Categories
(Core :: DOM: Events, defect, P3)
Core
DOM: Events
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 | ||
Updated•2 years ago
|
Assignee: nobody → smaug
Severity: -- → S3
Priority: -- → P3
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
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
Comment 4•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox111:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Updated•2 years ago
|
Whiteboard: [sp3]
Updated•2 years ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-61
You need to log in
before you can comment on or make changes to this bug.
Description
•