Closed
Bug 1190735
Opened 9 years ago
Closed 9 years ago
Make nsITimer.TYPE_REPEATING_PRECISE a synonym for nsITimer.TYPE_REPEATING_PRECISE_CAN_SKIP
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla42
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
(Keywords: addon-compat, dev-doc-complete)
Attachments
(2 files)
9.56 KB,
patch
|
froydnj
:
review+
ritu
:
approval-mozilla-beta+
lizzard
:
approval-mozilla-esr38-
|
Details | Diff | Splinter Review |
9.49 KB,
patch
|
Details | Diff | Splinter Review |
The docs for TYPE_REPEATING_PRECISE say "Use this timer type with extreme caution. Chances are, this is not what you want." Bug 650379 introduced TYPE_REPEATING_PRECISE_CAN_SKIP as a safer alternative. That bug also converted all uses of TYPE_REPEATING_PRECISE in the tree to TYPE_REPEATING_PRECISE_CAN_SKIP. Since then, one use of TYPE_REPEATING_PRECISE has been added to the tree relating to network stats (https://dxr.mozilla.org/mozilla-central/source/dom/network/NetworkStatsService.jsm#130). The value is exposed via IDL so add-ons might use it. Making it equivalent to TYPE_REPEATING_PRECISE_CAN_SKIP might be a reasonable thing to do.
Assignee | ||
Comment 1•9 years ago
|
||
The patch is straightforward. The hard part is deciding if this is the right thing to do. froydnj, please feel free to muster additional troops for the review if appropriate; there's no rush on this.
Attachment #8642887 -
Flags: review?(nfroyd)
Comment 2•9 years ago
|
||
Comment on attachment 8642887 [details] [diff] [review] Remove nsITimer.TYPE_REPEATING_PRECISE Review of attachment 8642887 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/threads/nsITimer.idl @@ +92,5 @@ > * guarantees that it will not queue up new events to fire the callback > * until the previous callback event finishes firing. If the callback > * takes a long time, then the next callback will be scheduled immediately > + * afterward, but only once. This is the only non-slack timer. > + * to use. Nit: this "to use" should be wrapped with the line above, which also means removing the period after "timer".
Attachment #8642887 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 4•9 years ago
|
||
I'll update the MDN docs once this has stuck.
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e14cb4eb7c0b
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•9 years ago
|
Keywords: addon-compat
Assignee | ||
Comment 6•9 years ago
|
||
I updated the description of TYPE_REPEATING_PRECISE in https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsITimer.
Keywords: dev-doc-complete
Comment 7•9 years ago
|
||
Comment on attachment 8642887 [details] [diff] [review] Remove nsITimer.TYPE_REPEATING_PRECISE Approval Request Comment [Feature/regressing bug #]: N/A (to support landing bug 1197152) [User impact if declined]: Can't uplift bug 1197152 to beta [Describe test coverage new/current, TreeHerder]: Lots of stuff uses timers... [Risks and why]: In nightly and aurora since 8/7. Low risk to uplift [String/UUID change made/needed]: none
Attachment #8642887 -
Flags: approval-mozilla-beta?
Updated•9 years ago
|
status-firefox-esr38:
--- → affected
tracking-firefox-esr38:
--- → 41+
Comment 8•9 years ago
|
||
Comment on attachment 8642887 [details] [diff] [review] Remove nsITimer.TYPE_REPEATING_PRECISE [Approval Request Comment] If this is not a sec:{high,crit} bug, please state case for ESR consideration: See request in bug 1197152 User impact if declined: Can't land bug 1197152. Fix Landed on Version: 42 Risk to taking this patch (and alternatives if risky): Pretty low risk, and been in for a long while. String or UUID changes made by this patch: none See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #8642887 -
Flags: approval-mozilla-esr38?
Comment on attachment 8642887 [details] [diff] [review] Remove nsITimer.TYPE_REPEATING_PRECISE We need this bug to be uplifted to fix bug 1197152. Beta41+
Attachment #8642887 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
status-firefox41:
--- → affected
Comment 10•9 years ago
|
||
Comment 12•9 years ago
|
||
Nicholas, is manual QA required here? If yes, please let us know what we can do to help verify this fix.
Flags: needinfo?(n.nethercote)
Assignee | ||
Comment 13•9 years ago
|
||
> Nicholas, is manual QA required here? If yes, please let us know what we can
> do to help verify this fix.
There's no useful QA that I can think of.
Flags: needinfo?(n.nethercote)
Comment 14•9 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #13) > > Nicholas, is manual QA required here? If yes, please let us know what we can > > do to help verify this fix. > > There's no useful QA that I can think of. Thank you for the prompt reply! Setting qe-verify- based on Comment 13.
Flags: qe-verify-
Comment 15•9 years ago
|
||
Comment on attachment 8642887 [details] [diff] [review] Remove nsITimer.TYPE_REPEATING_PRECISE After discussion with the rest of the team, we're not taking this for ESR but can take it on a thunderbird relbranch.
Attachment #8642887 -
Flags: approval-mozilla-esr38? → approval-mozilla-esr38-
Updated•9 years ago
|
status-thunderbird_esr38:
--- → affected
tracking-thunderbird_esr38:
--- → ?
Updated•9 years ago
|
Updated•9 years ago
|
Comment 16•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-esr38/rev/9e87ca58e3f5 for THUNDERBIRD_38_VERBRANCH (I did not roll the idl since this was a documentation change only).
You need to log in
before you can comment on or make changes to this bug.
Description
•