Closed Bug 851180 Opened 13 years ago Closed 13 years ago

mAckNeeded may not always be initialized

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox20 unaffected, firefox21 fixed, firefox22 fixed)

RESOLVED FIXED
Tracking Status
firefox20 --- unaffected
firefox21 --- fixed
firefox22 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached patch PatchSplinter Review
Turns out there's a lot of AndroidGeckoEvent constructors, and most of them don't initialize mAckNeeded, but it's always read. Oops. The patch also removes an unused constructor.
Attachment #724986 - Flags: review?(gbrown)
Comment on attachment 724986 [details] [diff] [review] Patch Review of attachment 724986 [details] [diff] [review]: ----------------------------------------------------------------- LGTM. It looks like there are a lot of other AndroidGeckoEvent members that are not consistently initialized -- any concerns there?
Attachment #724986 - Flags: review?(gbrown) → review+
Yeah I was kind of worried about that too, but from a quick look around I didn't see any others that were used without being initialized. If we can come with some way to always guarantee that it would be nice but I think trying to initialize everything in all of the constructors might be overkill unless we run into actual problems.
Comment on attachment 724986 [details] [diff] [review] Patch [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 846774 User impact if declined: low risk of seemingly-random failures, because operations that are supposed to by synchronous could end up being not synchronous Testing completed (on m-c, etc.): locally Risk to taking this patch (and alternatives if risky): low-risk, fennec only String or UUID changes made by this patch: none
Attachment #724986 - Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Attachment #724986 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
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: