Eliminate nsAppStartupNotifier and special "service," prefix on components
Categories
(Thunderbird :: Upstream Synchronization, task)
Tracking
(thunderbird_esr102 unaffected)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr102 | --- | unaffected |
People
(Reporter: cmartin, Assigned: darktrojan)
References
Details
Attachments
(1 file)
On mozilla-central, we are about to land D165414, which will eliminate nsAppStartupNotifier and the special service, prefix on categories that it enabled.
In practice, every category started up by nsAppStartupNotifier is a singleton anyway, at which point the entire thing just becomes an overly complex way (2 headers + 1 source file) of calling NS_CreateServicesFromCategory.
Porting this shouldn't be too bad:
- Replace any
#include "nsAppStartupNotifier.h"with#include "nsCategoryManagerUtils.h" - Replace any call to
nsAppStartupNotifier::NotifyObservers(APPSTARTUP_CATEGORY, subject)withNS_CreateServicesFromCategory("app-startup", subject, "app-startup", nullptr) - Find any
app-startupcomponents in your XPCOM manifests and remove theservice,prefix from them - If any of them don't have the
service,prefix, ensure that they are actually singletons (chances are they already are, and probably should've had the prefix all along) - Eliminate
nsIAppStartupNotifier.h,nsAppStartupNotifier.h, andnsAppStartupNotifier.cpp - In our case, we had to update some relevant documentation
| Assignee | ||
Comment 1•3 years ago
|
||
Today is really unfortunate timing but you weren't to know that. Thanks for the heads-up and instructions.
| Reporter | ||
Comment 2•3 years ago
•
|
||
(Comment removed - Just ended up talking to Geoff on Matrix)
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/45322ce67587
Eliminate nsAppStartupNotifier and special "service," prefix on components. r=john.bieling
Description
•