Closed Bug 1039048 Opened 11 years ago Closed 11 years ago

EventDispatcher can eat errors

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 34

People

(Reporter: wesj, Assigned: bnicholson)

References

Details

Attachments

(1 file)

I had a NativeEventListener that was throwing something close enough to an IllegalArgumentException that the EventDispatcher was catching it here: http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/EventDispatcher.java#169 That lead to the EventDispatcher falling back to using non-Native listeners and complaining that none exist. We should log these errors here (I'm not sure that "type" comment is correct either), and bail if one of them throws (or better yet, don't catch them?)
So is this all we need?
Assignee: nobody → bnicholson
Status: NEW → ASSIGNED
Attachment #8461770 - Flags: review?(nchen)
Comment on attachment 8461770 [details] [diff] [review] Don't eat IllegalArgumentExceptions in dispatchEvent Review of attachment 8461770 [details] [diff] [review]: ----------------------------------------------------------------- Yup, assuming it passes try.
Attachment #8461770 - Flags: review?(nchen) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Blocks: 1047888
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: