Dynamic registration and unregistration of calendar providers
Categories
(Calendar :: Internal Components, defect, P1)
Tracking
(thunderbird_esr78+ fixed, thunderbird80 fixed)
People
(Reporter: Fallen, Assigned: Fallen)
References
Details
Attachments
(1 file, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr78+
|
Details | Review |
Calendar Providers are currently xpcom components, coming from the era of legacy xul add-ons. We need a way to dynamically register these, so that a WebExtension can register a provider on enable and remove it on disable/uninstall.
When a provide is unregistered, the calendars for that provider need to turn into calDummyCalendar
s, which gives them the look like the provider is missing.
I'm uploading v0 of the patch so others can test, this is missing tests.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
The patch in bug 1652888 might be necessary for this to fully work.
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
We will want this for 78.1.1
Comment 4•4 years ago
|
||
I reviewed this on Monday (27th), but I forgot to set "request changes" in phabricator when I did it. Just fixed that now so the status is clearer.
Assignee | ||
Comment 5•4 years ago
|
||
Try run with review items fixed: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=edf2dfeffb05c23a31027297e141279a92b570da
Comment 6•4 years ago
|
||
(In reply to Philipp Kewisch [:Fallen] [:π][:π§©] from comment #5)
Try run with review items fixed: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=edf2dfeffb05c23a31027297e141279a92b570da
Looks successful and with Paul's comment "With a successful try run and the comments addressed, this is ready to land." we can take this and bug 1652888 for a beta 80.0b1 rebuild.
Can you land this on c-c Sunday morning?
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/7ed9c0ba9c40
Dynamic registration and unregistration of calendar providers. r=pmorris
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Comment on attachment 9166239 [details]
Bug 1652885 - Dynamic registration and unregistration of calendar providers. r?pmorris!
Approved for beta - needed for gdata provider
Rob will be landing on c-c
Comment 9•4 years ago
|
||
Comment on attachment 9166239 [details]
Bug 1652885 - Dynamic registration and unregistration of calendar providers. r?pmorris!
[Triage Comment]
Per Wayne in Matrix.
Comment 10•4 years ago
|
||
bugherder uplift |
Thunderbird 80.0b1 (build4):
https://hg.mozilla.org/releases/comm-beta/rev/ebd9239357fc
Comment 11•4 years ago
|
||
Assignee | ||
Comment 12•4 years ago
|
||
Comment on attachment 9166239 [details]
Bug 1652885 - Dynamic registration and unregistration of calendar providers. r?pmorris!
[Approval Request Comment]
Developer impact if declined: Developers will need to copy/paste a lot of lines from the CalCalendarManager
that replicate a core component of the calendar code, registering and unregistering calendars. If we update this code in the future, developers may still stick to the original code which could cause unknown side effects for those and other calendars.
User impact if declined: Less likelihood of provider extension developers upgrading to 78, which means less users can benefit from these extensions.
Testing completed (on c-c, etc.): Testing with the Provider for Google Calendar on Thunderbird 80.0b1 went well. No know reports for calendars being broken, though you probably have a better idea of it.
Risk to taking this patch (and alternatives if risky): This patch makes changes to calendar registration, if something goes wrong it could mean users don't have access to their calendars. The patch was written with backporting in mind so I deem the risk to be low.
Comment 13•4 years ago
|
||
Comment on attachment 9166239 [details]
Bug 1652885 - Dynamic registration and unregistration of calendar providers. r?pmorris!
[Triage Comment]
Approved for esr78
(by the time this gets released on esr, beta will have been live for several days - but will want to recheck BMO before releasing 78.1.1)
Comment 14•4 years ago
|
||
bugherder uplift |
Comment 15•4 years ago
|
||
bugherder uplift |
Thunderbird 80.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/8428a04b2d4a
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 16•2 years ago
|
||
I don't think the dummy calendar implemented in this was a good idea. It leaves users with invalid albeit disabled calendars without warning. Users can enable those calendars and attempt to use them but it results in an error being thrown with no visual indication.
Description
•