Closed Bug 518135 Opened 16 years ago Closed 16 years ago

mouse up in a Cocoa event model plugin generates an event of unrecognized type

Categories

(Core Graveyard :: Plug-ins, defect)

All
macOS
defect
Not set
normal

Tracking

(status1.9.2 .2-fixed)

RESOLVED FIXED
Tracking Status
status1.9.2 --- .2-fixed

People

(Reporter: jaas, Assigned: jaas)

References

Details

Attachments

(2 files, 1 obsolete file)

Mouse up in a Cocoa event model plugin causes an event of unrecognized type (0) to be sent to the plugin.
Attached patch fix v1.0 (obsolete) — Splinter Review
If we receive an event without a native event attached and we don't care about it we send a bogus event to the plugin. We should bail instead, ignoring the event. We can test for this in bug 518278.
Attachment #402434 - Flags: review?(roc)
Comment on attachment 402434 [details] [diff] [review] fix v1.0 Actually we might not want to do this. It doesn't correctly match start/end draw calls.
Attachment #402434 - Flags: review?(roc)
Attached patch fix v1.1Splinter Review
Attachment #402434 - Attachment is obsolete: true
Attachment #402446 - Flags: review?(roc)
Attached patch alt fix v1.0Splinter Review
We could also do it like this, which avoids early returns.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
roc landed this on 1.9.2 yesterday, but inadvertently on a relbranch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/329b6494c800 I backed it out of the relbranch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/f57f01f6b371 and relanded it on the default branch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/ed9a0c476849 However, I'm a little confused about whether it was supposed to land on 1.9.2 in the first place; I don't see anything in the bug about it being intended for 1.9.2 until roc marked it as fixed for 1.9.2.2.
Blocks: 537269
Josh, is there a way to test/verify this bug ?
Not easily right now. You can test other bugs it fixed, but our test plugin is only Cocoa when used in 64-bit builds right now.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: