Closed
Bug 51428
Opened 25 years ago
Closed 25 years ago
Uninitialized Variable in nsEventStateManager.cpp
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
VERIFIED
FIXED
mozilla0.9
People
(Reporter: lhankins, Assigned: hjtoi-bugzilla)
Details
(Whiteboard: [rtm-][fixinhand])
Attachments
(2 files)
86.35 KB,
patch
|
Details | Diff | Splinter Review | |
822 bytes,
patch
|
Details | Diff | Splinter Review |
There is a (very easy to fix) bug in the following method:
nsEventStateManager::DispatchNewEvent (nsISupports *, nsIDOMEvent*)
This bug is around line 2566 in nsEventStateManager.cpp for the M17 baseline.
The nsEventStatus variable "status" is declared and later used without being
properly initialized to some value (so its value is garbage in some cases).
This variable should be initialized with a value of nsEventStatus_eIgnore.
We discovered this bug while attempting to manufacture DOM events from C++.
Unless this variable's initial state is set to nsEventStatus_eIgnore, this
manufacturing DOM events will not work correctly. After changing the
offending line of code, and rebuilding, things appear to work just fine.
Reporter | ||
Comment 1•25 years ago
|
||
Comment 4•25 years ago
|
||
Confirming to get on joki's radar. Nominating rtm as a one-line, low risk fix.
OK, so it's not a crasher, but it seems to break something for
lhankins@focus-technologies.com :-)
Gerv
Assignee | ||
Comment 5•25 years ago
|
||
Unless you can point out a high visibility website that breaks because of this,
this is not going to make it into RTM. Marking [rtm-] for now.
I will make the first attachment into a proper patch.
Whiteboard: [rtm-][fixinhand]
Target Milestone: --- → Future
Assignee | ||
Comment 6•25 years ago
|
||
Assignee | ||
Comment 7•25 years ago
|
||
I am stealing this 'cos I have been running with this fix for a while and I
would like to get it checked in an stop messign up my diffs.
Assignee: joki → heikki
Assignee | ||
Updated•25 years ago
|
Target Milestone: Future → mozilla0.9
Comment 8•25 years ago
|
||
r=jst for the attached patch.
Assignee | ||
Comment 10•25 years ago
|
||
Patch checked in, marking fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 11•24 years ago
|
||
lhankins, can you verify this?
Updated•24 years ago
|
Component: DOM Level 1 → DOM Events
You need to log in
before you can comment on or make changes to this bug.
Description
•