Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 697066 Details for
Bug 910976
Lightning's alarms too late / internal time is wrong
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch from Mozilla's bug entry for this problem
thunderbird_lightning_bug_757762_130213b.patch (text/plain), 2.05 KB, created by
John Heidemann
on 2013-02-14 05:37:07 UTC
(
hide
)
Description:
patch from Mozilla's bug entry for this problem
Filename:
MIME Type:
Creator:
John Heidemann
Created:
2013-02-14 05:37:07 UTC
Size:
2.05 KB
patch
obsolete
># from https://bugzilla.mozilla.org/attachment.cgi?id=668783&action=edit ># wrt https://bugzilla.mozilla.org/show_bug.cgi?id=757762 ># HG changeset patch ># Parent 98eadf6b21c06e21f55ee02e31c06e6cc9d84dea ># User Matthew Mecca <matthew.mecca@gmail.com> ># tweaked by johnh to match lightning-1.9 >--- comm-beta/calendar/base/src/calAlarmService.js.orig 2012-11-14 00:14:09.000000000 -0800 >+++ comm-beta/calendar/base/src/calAlarmService.js 2013-02-13 13:58:49.283303171 -0800 >@@ -29,6 +29,38 @@ > this.mTimerMap = {}; > this.mObservers = new calListenerBag(Components.interfaces.calIAlarmServiceObserver); > >+ this.mSleepMonitor = { >+ service: this, >+ interval: 60000, >+ timer: null, >+ expected: null, >+ >+ checkExpected: function sm_checkExpected() { >+ let now = Date.now(); >+ if (now - this.expected > 1000) { >+ cal.LOG("[calAlarmService] Sleep cycle detected, reloading alarms"); >+ this.service.shutdown(); >+ this.service.startup(); >+ } else { >+ this.expected = now + this.interval; >+ } >+ }, >+ >+ start: function sm_start() { >+ this.stop(); >+ this.expected = Date.now() + this.interval; >+ this.timer = newTimerWithCallback(this.checkExpected.bind(this), >+ this.interval, true); >+ }, >+ >+ stop: function sm_stop() { >+ if (this.timer) { >+ this.timer.cancel(); >+ this.timer = null; >+ } >+ } >+ }; >+ > this.calendarObserver = { > alarmService: this, > >@@ -274,6 +306,8 @@ > > this.mUpdateTimer = newTimerWithCallback(timerCallback, kHoursBetweenUpdates * 3600000, true); > >+ this.mSleepMonitor.start(); >+ > this.mStarted = true; > }, > >@@ -309,6 +343,8 @@ > observerSvc.removeObserver(this, "xpcom-shutdown"); > observerSvc.removeObserver(this, "wake_notification"); > >+ this.mSleepMonitor.stop(); >+ > this.mStarted = false; > }, >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 910976
: 697066 |
697067