Closed Bug 51428 Opened 25 years ago Closed 25 years ago

Uninitialized Variable in nsEventStateManager.cpp

Categories

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

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: lhankins, Assigned: hjtoi-bugzilla)

Details

(Whiteboard: [rtm-][fixinhand])

Attachments

(2 files)

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.
Mass update of qa contact
QA Contact: gerardok → janc
Tom, could you have a look at this?
Assignee: jst → joki
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
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: rtm
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
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
Target Milestone: Future → mozilla0.9
r=jst for the attached patch.
sr=vidur. See bug 48886 for additional comments.
Patch checked in, marking fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
lhankins, can you verify this?
Component: DOM Level 1 → DOM Events
QA Contact Update
QA Contact: janc → vladimire
verifying per developer's coments
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: