Closed
Bug 1492095
Opened 6 years ago
Closed 6 years ago
Replace the XPCOM component registration for nsAppStartupNotifier removed in bug 1491741
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
6.6
People
(Reporter: jorgk-bmo, Assigned: darktrojan)
References
Details
(Whiteboard: [Thunderbird-temporary-fix])
Attachments
(3 files, 1 obsolete file)
3.36 KB,
patch
|
Details | Diff | Splinter Review | |
2.05 KB,
patch
|
Details | Diff | Splinter Review | |
6.75 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
Causes test failures: TEST-UNEXPECTED-FAIL | xpcshell-icaljs.ini:comm/calendar/test/unit/test_alarmservice.js | - TypeError: Components.classes['@mozilla.org/embedcomp/appstartup-notifier;1'] is undefined;
Reporter | ||
Comment 1•6 years ago
|
||
Same recipe as before.
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/b656dcc776f9 Replace the XPCOM component registration for nsAppStartupNotifier removed in bug 1491741. rs=bustage-fix DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 64.0
Version: 24 → 64
Reporter | ||
Comment 3•6 years ago
|
||
This compiled locally, but now I see that Linux and Mac are busted: /builds/worker/workspace/build/src/comm/common/src/nsCommonModule.cpp:23:1: error: no member named 'QueryInterface' in 'nsAppStartupNotifier' /builds/worker/workspace/build/src/obj-thunderbird/dist/include/mozilla/RefPtr.h:47:11: error: no member named 'Release' in 'nsAppStartupNotifier' /builds/worker/workspace/build/src/obj-thunderbird/dist/include/mozilla/RefPtr.h:44:11: error: no member named 'AddRef' in 'nsAppStartupNotifier' I noticed that Ehsan took this line away: https://hg.mozilla.org/mozilla-central/rev/f60256376b97#l2.19 Or maybe it's due to the DeCOMtamination here: https://hg.mozilla.org/mozilla-central/rev/a31e6269caee In that case the recipe doesn't work and we need to take the approach of https://hg.mozilla.org/comm-central/rev/a8bd1c32fd2d
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 4•6 years ago
|
||
Grrr, I forgot to pull the latest M-C :-(
Reporter | ||
Comment 5•6 years ago
|
||
Looking at this further, I think we're out of luck here. The approach of bug 1485275 (https://hg.mozilla.org/comm-central/rev/a8bd1c32fd2d), because the nsAppStartupNotifier lost its XPCOM interface altogether.
Reporter | ||
Updated•6 years ago
|
Attachment #9009905 -
Attachment description: 1492095-nsAppStartupNotifier.patch → 1492095-nsAppStartupNotifier.patch - not working, backed out.
Attachment #9009905 -
Flags: review?(geoff)
Reporter | ||
Updated•6 years ago
|
Assignee: jorgk → nobody
Status: REOPENED → NEW
Keywords: leave-open
Product: MailNews Core → Calendar
Target Milestone: Thunderbird 64.0 → ---
Version: 64 → unspecified
Reporter | ||
Comment 6•6 years ago
|
||
Here's a bustage fix. Tests pass with the usage of "@mozilla.org/embedcomp/appstartup-notifier;1" simply removed.
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/cfc817da7111 Backed out changeset b656dcc776f9 for causing bustage. a=backout https://hg.mozilla.org/comm-central/rev/96176520c895 temporarily remove use of nsAppStartupNotifier after removal of its XPCOM interface in bug 1491741. rs=bustage-fix DONTBUILD
Reporter | ||
Updated•6 years ago
|
Whiteboard: [Thunderbird-temporary-fix]
Assignee | ||
Comment 9•6 years ago
|
||
Philipp, is there a reason we use the app startup notifier instead of the observer service here? Can I just replace the use of one with the other?
Flags: needinfo?(philipp)
Assignee | ||
Comment 10•6 years ago
|
||
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Flags: needinfo?(philipp)
Flags: needinfo?(geoff)
Attachment #9011337 -
Flags: review?(philipp)
Comment 11•6 years ago
|
||
Comment on attachment 9011337 [details] [diff] [review] 1492095-startup-notifier-1.diff Review of attachment 9011337 [details] [diff] [review]: ----------------------------------------------------------------- r=philipp with eslint checked. ::: calendar/base/src/calAlarmService.js @@ +227,5 @@ > Services.obs.addObserver(this, "xpcom-shutdown"); > Services.obs.addObserver(this, "wake_notification"); > > + // Make sure the alarm monitor is alive so it's observing the notification. > + Cc["@mozilla.org/calendar/alarm-monitor;1"].getService(Ci.calIAlarmServiceObserver); Does this pass eslint? You may need to disable no-unused-expressions in a comment for this to pass.
Attachment #9011337 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 12•6 years ago
|
||
That passes, but my notifyObserver calls don't.
Attachment #9011337 -
Attachment is obsolete: true
Attachment #9012078 -
Flags: review+
Assignee | ||
Comment 13•6 years ago
|
||
Checkin needed with a backout of 96176520c895.
Keywords: leave-open → checkin-needed
Comment 14•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/6dfdc289650b Backed out temporary fix from changeset 96176520c895. a=backout https://hg.mozilla.org/comm-central/rev/8b20130d8bb9 Replace use of XPCOM 'embedcomp/appstartup-notifier' after its removal in bug 1491741. r=philipp
Status: ASSIGNED → RESOLVED
Closed: 6 years ago → 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Reporter | ||
Updated•6 years ago
|
Target Milestone: --- → 6.6
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•