Closed
Bug 445828
Opened 18 years ago
Closed 18 years ago
Trying to re-init a TYPE_REPEATING_SLACK timer causes it to be added to timer thread twice
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
References
Details
Attachments
(1 file, 1 obsolete file)
|
859 bytes,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
jst found this while reviewing bug 437152. Trying to re-init a TYPE_REPEATING_SLACK timer causes it to be added to timer thread twice. Patch attached that removes a previous instance from the timer thread if it is reinitialized.
Attachment #330083 -
Flags: review?(brendan)
| Assignee | ||
Updated•18 years ago
|
Assignee: nobody → bent.mozilla
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Updated•18 years ago
|
Version: unspecified → Trunk
Comment 1•18 years ago
|
||
Comment on attachment 330083 [details] [diff] [review]
Patch, v1
Did you confirm that the callback added the timer again? Isn't that a bug at some level (if the type is repeating)?
/be
Attachment #330083 -
Flags: review?(brendan) → review+
| Assignee | ||
Comment 2•18 years ago
|
||
My case was a TYPE_ONE_SHOT timer reinitializing as a TYPE_REPEATING_SLACK. By the time we get to the code in question InitCommon has already updated mType.
Keywords: checkin-needed
| Assignee | ||
Updated•18 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 3•18 years ago
|
||
Actually, brendan, I think this patch is better. What do you think?
Attachment #330569 -
Flags: review?(brendan)
Comment 4•18 years ago
|
||
Comment on attachment 330569 [details] [diff] [review]
Patch, v2
Yes, that is better.
/be
Attachment #330569 -
Flags: review?(brendan) → review+
| Assignee | ||
Updated•18 years ago
|
Attachment #330083 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•18 years ago
|
||
Pushed to moz-central.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•