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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21
Tracking Status
firefox20 --- wontfix
firefox21 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

Attachments

(1 file)

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?
FTR I think bent volunteered to write this patch on IRC.  :)
Attached patch Patch, v1Splinter Review
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Attachment #714413 - Flags: review?(justin.lebar+bug)
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+
https://hg.mozilla.org/mozilla-central/rev/f1b4f443548d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
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?
Comment on attachment 714413 [details] [diff] [review]
Patch, v1

Approving for v1-train uplift.
Attachment #714413 - Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
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.

Attachment

General

Created:
Updated:
Size: