Closed
Bug 527800
Opened 15 years ago
Closed 15 years ago
NPCocoaEvent structures sometimes not initialized in nsChildView.mm
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smichaud, Assigned: smichaud)
Details
Attachments
(1 file, 1 obsolete file)
866 bytes,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
Support was recently added on the trunk for the Cocoa event model in plugins. But this support still has problems -- among them the following: There are several places in nsChildView.mm where an NPCocoaEvent structure is created (and sent to a plugin) without being properly initialized. This can lead to crashes, both in my DebugPluginEvents plugin from bug 441880 and in Apple's NetscapeCocoaPlugin example from WebKit code. What specifically causes the crashes is that, in the case of an NPCocoaEventFlagsChanged event, the data.key.characters and data.key.charactersIgnoringModifiers fields are unitialized. Each of these is a pointer to an NPNSString (the equivalent of a pointer to an NSString). A patch will follow shortly.
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #411545 -
Flags: review?(joshmoz)
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → smichaud
We should just call "InitNPCocoaEvent" at the top of "ConvertCocoaKeyEventToNPCocoaEvent".
Assignee | ||
Comment 3•15 years ago
|
||
That also works.
Attachment #411545 -
Attachment is obsolete: true
Attachment #411694 -
Flags: review?(joshmoz)
Attachment #411545 -
Flags: review?(joshmoz)
Attachment #411694 -
Flags: review?(joshmoz) → review+
Assignee | ||
Comment 4•15 years ago
|
||
Landed on trunk: http://hg.mozilla.org/mozilla-central/rev/e3077f83f366
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•