Closed
Bug 841612
Opened 11 years ago
Closed 11 years ago
TimeChangeObserver::FireMozTimeChangeEvent bails out if *any* weak windows have gone away
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
References
Details
Attachments
(1 file)
4.65 KB,
patch
|
justin.lebar+bug
:
review+
lsblakk
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
This doesn't seem right to me, but TimeChangeObserver::FireMozTimeChangeEvent bails out of its loop if any of the weak windows it was holding have gone away. I think you want to continue through the loop and notify all the others that could still be alive, right?
Comment 1•11 years ago
|
||
FTR I think bent volunteered to write this patch on IRC. :)
Updated•11 years ago
|
Blocks: b2g-system-time
Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Attachment #714413 -
Flags: review?(justin.lebar+bug)
Comment 3•11 years ago
|
||
Comment on attachment 714413 [details] [diff] [review] Patch, v1 Wow, I did a pretty bad review of this originally. Thanks for fixing this.
Attachment #714413 -
Flags: review?(justin.lebar+bug) → review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f1b4f443548d
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f1b4f443548d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Comment 6•11 years ago
|
||
Comment on attachment 714413 [details] [diff] [review] Patch, v1 Any webpage can register timechange listeners. If a webpage does so and then is closed, this code will cause us not to fire listeners which were added after that page's listener. In other words, we will drop timechange events. This will break alarms on the phone. See the embarrassment Apple has had wrt alarms and daylight savings time. Can we please uplift this patch? [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 714358 User impact if declined: See above. Testing completed: Simple patch; it's hard to imagine how this patch could make things worse than the clearly buggy state we're currently in. Risk to taking this patch (and alternatives if risky): Simple patch String or UUID changes made by this patch: None
Attachment #714413 -
Flags: approval-mozilla-b2g18?
Updated•11 years ago
|
Comment 7•11 years ago
|
||
Comment on attachment 714413 [details] [diff] [review] Patch, v1 Approving for v1-train uplift.
Attachment #714413 -
Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
Comment 8•11 years ago
|
||
We can't take this for b2g18-v1.0.1? Are we really OK with not firing alarms?
You need to log in
before you can comment on or make changes to this bug.
Description
•