Closed Bug 972475 Opened 11 years ago Closed 11 years ago

[System] Killed active ActivityWindow break if 2 "_closed" are triggered at almost the same time

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cedric, Assigned: cedric)

References

Details

Attachments

(1 file)

In the kill method of apps/system/js/activity_window.js: The '_closed' event listener of the child element is not removed when this event is triggered (it is instead... added again, obviously copy/paste here). It then results in an error and possibly undefined behavior. Link to code: https://github.com/mozilla-b2g/gaia/blob/f0a1e556fe9f6416c4f96bdf43fc63bcbb55acfc/apps/system/js/activity_window.js#L214 I am not sure it happens in reality, but this is good to fix before it spawns lurking bug.
Attached file Proposed PR, one-line change (deleted) —
Attachment #8375660 - Flags: review?(alive)
Comment on attachment 8375660 [details] Proposed PR, one-line change Nice catch, thank you!!
Attachment #8375660 - Flags: review?(alive) → review+
Assignee: nobody → cedric
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
https://github.com/mozilla-b2g/gaia/commit/729e4cef7ad41cd6315430270a31fd5d7513c041 Next time add 'checkin-needed' after r+ someone will merge for you.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: