Magnus Melin
8a975df0f0
Bug 1916063 - Don't break calendar data handling for missing start date. r=john.bieling
...
Differential Revision: https://phabricator.services.mozilla.com/D224583
--HG--
extra : amend_source : 70b366d2bbf5a19bd361ec996b7ec56ba0822c86
2024-10-09 18:51:13 +00:00
Magnus Melin
16337b85cd
Bug 1918947 - Fix shadow/redeclare linting errors in comm/calendar. r=tobyp
...
Differential Revision: https://phabricator.services.mozilla.com/D224640
--HG--
extra : rebase_source : 696d8f5c36cb6beb66d4909c5ff59646037f6202
extra : amend_source : d73147e6c721bed57116dece3733039765cf7a92
2024-10-08 13:03:18 +03:00
Magnus Melin
03004531ab
Bug 1906077 - ICS calendar subscriptions should use the original URI for temporary redirects. r=aleca
...
To test, subscribe to https://github.com/othyn/go-calendar/releases/latest/download/gocal__community_day.ics
Also
* don't fail for cases there content-type is null
* accept for content-type=application/octet-stream where the Content-Disposition says it's an .ics
Differential Revision: https://phabricator.services.mozilla.com/D220872
--HG--
extra : rebase_source : a3e7e2cc8f56bdf7e7968b1a2863bbfa8002b9a2
extra : absorb_source : 3e9d607dfd459e5ad8f87348838f9667711f8cd8
2024-09-05 13:42:16 +03:00
Sergey Korablin
462d143ffc
Bug 1587736 - [caldav] Choose the first email from calendar-user-address-set instead of the last one for mCalendarUserAddress;. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D218507
2024-08-04 20:58:40 +00:00
Antonin Delpeuch
700ce73ce5
Bug 1716745 - Fix CalDav import of ICS events with special characters in the UID. r=darktrojan
...
Makes sure the PUT request has a valid URL to avoid import errors.
Differential Revision: https://phabricator.services.mozilla.com/D215445
--HG--
extra : amend_source : 6b510f3e96c6b8fb202db547094f7f519652f6cf
extra : absorb_source : e27745c77a3c24887e3b4b815d7c5273d0fdd5ab
2024-07-03 11:58:11 +02:00
Patrick Cloke
ba76a8e278
Bug 1583053 - Fix handling of DNS TXT records with multiple strings. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D210189
--HG--
extra : amend_source : 1a1b1a5e6fe0a8416385216a72ec71bbf2f2f768
2024-07-02 10:53:25 +01:00
Joe Crawford
7e7c3c22fb
Bug 1893758 - Calendar Fluent Migrations - Properties Part A. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D209074
--HG--
extra : moz-landing-system : lando
2024-06-19 22:05:56 +00:00
Patrick Cloke
aecde7619b
Bug 1571076 - Fix DNS TXT lookups when the answer contains multiple records. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D209966
--HG--
extra : amend_source : 2920d0ed709de4e151ed27125cb075d50fc19f2c
2024-05-13 11:18:22 -07:00
Geoff Lankow
af6b9ac74a
Bug 1824264 - Update ical.js to ES6 version. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D205739
--HG--
extra : amend_source : 7500126b545d60f2fd1558bdf7e750fe0fbf333e
2024-04-22 10:57:29 +01:00
John Bieling
1e88e56696
Bug 1854779 - Support discovery of iCloud calendars. r=darktrojan
...
I tend to officially sunset DAV-4-TbSync, and the only remaining
"feature" it supports which is not yet supported by Thunderbird is the
detection of iCloud calendars and address books.
I poked around the source and found that the `detectCollection()`
routine already has the calendar-home-set, but it is ignored and instead
it calls `handlePrincipal()`, trying to get the home-set from another
PROPFIND request, which fails.
This patch adds an early exit and uses the already found home-set,
instead of issuing another server request.
If this is not the right fix, it may at least give an idea of what is
going on. I can provide iCloud access credentials.
With this patch, I can enter my Apple-ID as username using a dedicated
app password created for Thunderbird, and the server `icloud.com`, to
get my calendars discovered and added.
Differential Revision: https://phabricator.services.mozilla.com/D206253
--HG--
extra : amend_source : 36c57c8d8ae2a463974e54298ff494fdf3645b29
2024-04-18 11:20:25 +01:00
Magnus Melin
4c472e7e98
Bug 1880646 - Don't fall back to base domain SRV lookup for CalDAV autodiscovery. r=darktrojan
...
For the thunderbird fastmail imap test account, the issue is that since it's a thunderbird subdomain,
and there are no SRV records for it. During detection we fall back to asking SRV records for the basedomain, which
is thunderbird.net, which is known to be google hosted => we pop up OAuth2 to be able to detect calendars.
We don't fall back to base domain for CardDAV, and I would say we should not do it for CalDAV either.
This would potentially affect someone who is using a subdomain for hosting, but not setting
the SRV records for their subdomain - AND the base domain at the same time are setting the SRV records and
they are usable for the subdomain credentials.
Such cases probably exist, but it would not appear to be a very normal case. Where a subdomain is used
for the email address (which is where we get the subdomain from) likely it's often some kind of testing/staging
environment, like it is for thunderbird.net.
That OAuth2 is requested during account setup during CardDAV/CalDAV autodiscovery is in itself
not unexpected if we discover those services are hosted differently from mail, and thus might
not have the same credentials.
Differential Revision: https://phabricator.services.mozilla.com/D207010
2024-04-09 12:09:58 +00:00
Magnus Melin
eb19715cae
Bug 1877142 - follow-up, fix wrong this. rs=bustage-fix DONTBUILD
...
Broke calendar/test/browser/browser_calDAV_oAuth.js
--HG--
extra : amend_source : 4d7a97ff40f87e58f33dc4891c249c931aaacebd
2024-04-10 10:07:37 +03:00
Magnus Melin
901f1b9485
Bug 1877142 - Avoid 100% CPU trying to get non-existant window. r=leftmostcat
...
I think we can just remove this old workaround.
Nowdays we (normally) prompt for primary password before any window (security.prompt_for_master_password_on_startup).
That has its own issues (see bug 1882214).
But, even so, CalDAV requests do not seem to trigger before we have any window.
Differential Revision: https://phabricator.services.mozilla.com/D206901
--HG--
extra : moz-landing-system : lando
2024-04-09 22:00:10 +00:00
John Bieling
621fded4c5
Bug 1886948 - Part 1: AutoFix for ./calendar directory. r=freaktechnik
...
Using D194522 for auto-fixing unused variables.
Differential Revision: https://phabricator.services.mozilla.com/D205426
--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:04 +00:00
Magnus Melin
bf0cc3ae17
Bug 1824260 - Update outdated .jsm references. r=freaktechnik
...
Update outdated .jsm references in the tree.
Depends on D204766
Differential Revision: https://phabricator.services.mozilla.com/D204769
--HG--
extra : rebase_source : cdf8c1367702bb00c51a750cc712e156db65d371
extra : amend_source : 5f2256fc97ae8f3de2086ffbe99acde9fdef0473
2024-03-21 19:44:49 +02:00
Magnus Melin
8aa3e4cdc2
Bug 1824260 - esmify Ical.jsm. r=aleca,leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D204763
--HG--
rename : calendar/base/modules/Ical.jsm => calendar/base/modules/Ical.sys.mjs
rename : calendar/base/src/calICSService-worker.js => calendar/base/src/CalICSService.worker.mjs
extra : rebase_source : f5dc549aa0f7ca19b3d8bcffdb447a0b536d4995
extra : amend_source : 04f2309e0e818a907e16367557a7024cd3063826
2024-03-21 19:43:48 +02:00
Magnus Melin
6a784829d2
Bug 1824260 - esmify calendar/ (apart from Ical.jsm). r=aleca,leftmostcat
...
Ical.jsm doesn't want to be converted over so leaving it for now.
Will figure out how to resolve the issues there, or take bug 1824264 in next step.
Differential Revision: https://phabricator.services.mozilla.com/D204606
--HG--
rename : calendar/base/modules/calCalendarDeactivator.jsm => calendar/base/modules/calCalendarDeactivator.sys.mjs
rename : calendar/base/modules/calExtract.jsm => calendar/base/modules/calExtract.sys.mjs
rename : calendar/base/modules/calHashedArray.jsm => calendar/base/modules/calHashedArray.sys.mjs
rename : calendar/base/modules/calRecurrenceUtils.jsm => calendar/base/modules/calRecurrenceUtils.sys.mjs
rename : calendar/base/src/calCachedCalendar.js => calendar/base/src/CalCachedCalendar.sys.mjs
rename : calendar/base/src/CalMetronome.jsm => calendar/base/src/CalMetronome.sys.mjs
rename : calendar/base/src/CalReadableStreamFactory.jsm => calendar/base/src/CalReadableStreamFactory.sys.mjs
rename : calendar/base/src/CalTimezone.jsm => calendar/base/src/CalTimezone.sys.mjs
rename : calendar/base/src/CalTransactionManager.jsm => calendar/base/src/CalTransactionManager.sys.mjs
rename : calendar/extract/CalExtractParser.jsm => calendar/extract/CalExtractParser.sys.mjs
rename : calendar/extract/CalExtractParserService.jsm => calendar/extract/CalExtractParserService.sys.mjs
rename : calendar/itip/CalItipMessageSender.jsm => calendar/itip/CalItipMessageSender.sys.mjs
rename : calendar/itip/CalItipOutgoingMessage.jsm => calendar/itip/CalItipOutgoingMessage.sys.mjs
rename : calendar/providers/caldav/CalDavProvider.jsm => calendar/providers/caldav/CalDavProvider.sys.mjs
rename : calendar/providers/caldav/modules/CalDavRequest.jsm => calendar/providers/caldav/modules/CalDavRequest.sys.mjs
rename : calendar/providers/caldav/modules/CalDavRequestHandlers.jsm => calendar/providers/caldav/modules/CalDavRequestHandlers.sys.mjs
rename : calendar/providers/caldav/modules/CalDavSession.jsm => calendar/providers/caldav/modules/CalDavSession.sys.mjs
rename : calendar/providers/caldav/modules/CalDavUtils.jsm => calendar/providers/caldav/modules/CalDavUtils.sys.mjs
rename : calendar/providers/ics/CalICSProvider.jsm => calendar/providers/ics/CalICSProvider.sys.mjs
rename : calendar/providers/storage/CalStorageCachedItemModel.jsm => calendar/providers/storage/CalStorageCachedItemModel.sys.mjs
rename : calendar/providers/storage/CalStorageDatabase.jsm => calendar/providers/storage/CalStorageDatabase.sys.mjs
rename : calendar/providers/storage/CalStorageItemModel.jsm => calendar/providers/storage/CalStorageItemModel.sys.mjs
rename : calendar/providers/storage/CalStorageMetaDataModel.jsm => calendar/providers/storage/CalStorageMetaDataModel.sys.mjs
rename : calendar/providers/storage/CalStorageModelBase.jsm => calendar/providers/storage/CalStorageModelBase.sys.mjs
rename : calendar/providers/storage/CalStorageModelFactory.jsm => calendar/providers/storage/CalStorageModelFactory.sys.mjs
rename : calendar/providers/storage/CalStorageOfflineModel.jsm => calendar/providers/storage/CalStorageOfflineModel.sys.mjs
rename : calendar/providers/storage/CalStorageStatements.jsm => calendar/providers/storage/CalStorageStatements.sys.mjs
rename : calendar/providers/storage/calStorageHelpers.jsm => calendar/providers/storage/calStorageHelpers.sys.mjs
rename : calendar/providers/storage/calStorageUpgrade.jsm => calendar/providers/storage/calStorageUpgrade.sys.mjs
rename : calendar/test/CalDAVServer.jsm => calendar/test/CalDAVServer.sys.mjs
rename : calendar/test/CalendarTestUtils.jsm => calendar/test/CalendarTestUtils.sys.mjs
rename : calendar/test/CalendarUtils.jsm => calendar/test/CalendarUtils.sys.mjs
rename : calendar/test/ICSServer.jsm => calendar/test/ICSServer.sys.mjs
rename : calendar/test/ItemEditingHelpers.jsm => calendar/test/ItemEditingHelpers.sys.mjs
extra : amend_source : 180eac675e4893d841f439bd0f6e1d4ed292c783
2024-03-15 17:45:58 -07:00
Geoff Lankow
cb4966f731
Bug 1851536 - Implement a proxy to convert HTTP requests to HTTPS for tests. r=john.bieling
...
Differential Revision: https://phabricator.services.mozilla.com/D202537
--HG--
extra : rebase_source : dc4d0cb00a8607db7927aec8a21698e9277a83e6
extra : amend_source : 85b2a8e206f5207a26836464bed0a8a9a92ce74f
2024-02-22 17:58:07 +13:00
Geoff Lankow
c75d8b1701
Bug 1878172 - Fix OAuth2 username hint for CalDAV calendars. r=john.bieling
...
Differential Revision: https://phabricator.services.mozilla.com/D202536
--HG--
extra : rebase_source : 07b667ff38962080b0e04e863ee64e77dba84496
extra : amend_source : 3009352d5319120d2d20d27273f83ec12e35fdc7
2024-02-21 22:40:17 +13:00
Geoff Lankow
19e1b1f605
Bug 1878172 - Update existing OAuth tests to use OAuth2TestUtils.sys.mjs. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D202535
--HG--
extra : rebase_source : a2eae4ee0f199b0314f21631a115c863a26aa422
extra : amend_source : 62822da3199061d34ee1dbdff95d282b6e9b34f3
2024-02-20 22:58:05 +13:00
Geoff Lankow
990daa6277
Bug 1880211 - Convert the OAuth2 code to use Promises instead of callbacks. r=leftmostcat,mkmelin
...
This is a prerequisite for the next patch (and a tidy up of some quite ugly code, frankly) – using
Promises instead of callbacks, it's much easier to have two things waiting on the same result.
Differential Revision: https://phabricator.services.mozilla.com/D201795
--HG--
extra : rebase_source : 2f0eaac2bba5302588bfa540143b53e5ba9fd0c1
extra : amend_source : e6e96f0ea3f1eddf664ff3865ab1bafdbc9cffab
2024-02-14 12:06:09 +13:00
Magnus Melin
2e0cd2b03b
Bug 1882129 - Port bug 1881266 - Enable ESLint recommended rules no-constant-condition and no-case-declarations, warning for existing failures. r=eslint
...
Differential Revision: https://phabricator.services.mozilla.com/D202792
--HG--
extra : rebase_source : 3f0f630e695d2c7a43b1619e14bcdc6b149d6e8f
extra : amend_source : 3fa45df6a944a9e32b3a6fbf058d65f71db03923
2024-02-27 12:56:36 +02:00
Martin Giger
9ef60e63ff
Bug 1881752 - Update imports to follow ESM conversions for bustage fix. r=babolivier
...
Differential Revision: https://phabricator.services.mozilla.com/D202578
--HG--
extra : histedit_source : cf86a38881db2e15fa5665e86a444ac9091357a0
2024-02-23 13:54:58 +00:00
Martin Giger
ff911384e3
Bug 1881745 - Convert all registered components from JSM to ESM. r=thunderbird-reviewers,ikey
...
Differential Revision: https://phabricator.services.mozilla.com/D202568
--HG--
rename : calendar/base/src/CalAlarm.jsm => calendar/base/src/CalAlarm.sys.mjs
rename : calendar/base/src/CalAlarmMonitor.jsm => calendar/base/src/CalAlarmMonitor.sys.mjs
rename : calendar/base/src/CalAlarmService.jsm => calendar/base/src/CalAlarmService.sys.mjs
rename : calendar/base/src/CalAttachment.jsm => calendar/base/src/CalAttachment.sys.mjs
rename : calendar/base/src/CalAttendee.jsm => calendar/base/src/CalAttendee.sys.mjs
rename : calendar/base/src/CalCalendarManager.jsm => calendar/base/src/CalCalendarManager.sys.mjs
rename : calendar/base/src/CalDateTime.jsm => calendar/base/src/CalDateTime.sys.mjs
rename : calendar/base/src/CalDefaultACLManager.jsm => calendar/base/src/CalDefaultACLManager.sys.mjs
rename : calendar/base/src/CalDeletedItems.jsm => calendar/base/src/CalDeletedItems.sys.mjs
rename : calendar/base/src/CalDuration.jsm => calendar/base/src/CalDuration.sys.mjs
rename : calendar/base/src/CalEvent.jsm => calendar/base/src/CalEvent.sys.mjs
rename : calendar/base/src/CalFreeBusyService.jsm => calendar/base/src/CalFreeBusyService.sys.mjs
rename : calendar/base/src/CalICSService.jsm => calendar/base/src/CalICSService.sys.mjs
rename : calendar/base/src/CalIcsParser.jsm => calendar/base/src/CalIcsParser.sys.mjs
rename : calendar/base/src/CalIcsSerializer.jsm => calendar/base/src/CalIcsSerializer.sys.mjs
rename : calendar/base/src/CalItipItem.jsm => calendar/base/src/CalItipItem.sys.mjs
rename : calendar/base/src/CalMimeConverter.jsm => calendar/base/src/CalMimeConverter.sys.mjs
rename : calendar/base/src/CalPeriod.jsm => calendar/base/src/CalPeriod.sys.mjs
rename : calendar/base/src/CalProtocolHandler.jsm => calendar/base/src/CalProtocolHandler.sys.mjs
rename : calendar/base/src/CalRecurrenceDate.jsm => calendar/base/src/CalRecurrenceDate.sys.mjs
rename : calendar/base/src/CalRecurrenceInfo.jsm => calendar/base/src/CalRecurrenceInfo.sys.mjs
rename : calendar/base/src/CalRecurrenceRule.jsm => calendar/base/src/CalRecurrenceRule.sys.mjs
rename : calendar/base/src/CalRelation.jsm => calendar/base/src/CalRelation.sys.mjs
rename : calendar/base/src/CalStartupService.jsm => calendar/base/src/CalStartupService.sys.mjs
rename : calendar/base/src/CalTimezoneService.jsm => calendar/base/src/CalTimezoneService.sys.mjs
rename : calendar/base/src/CalTodo.jsm => calendar/base/src/CalTodo.sys.mjs
rename : calendar/base/src/CalWeekInfoService.jsm => calendar/base/src/CalWeekInfoService.sys.mjs
rename : calendar/import-export/CalHtmlExport.jsm => calendar/import-export/CalHtmlExport.sys.mjs
rename : calendar/import-export/CalIcsImportExport.jsm => calendar/import-export/CalIcsImportExport.sys.mjs
rename : calendar/itip/CalItipEmailTransport.jsm => calendar/itip/CalItipEmailTransport.sys.mjs
rename : calendar/itip/CalItipProtocolHandler.jsm => calendar/itip/CalItipProtocolHandler.sys.mjs
rename : calendar/providers/caldav/CalDavCalendar.jsm => calendar/providers/caldav/CalDavCalendar.sys.mjs
rename : calendar/providers/composite/CalCompositeCalendar.jsm => calendar/providers/composite/CalCompositeCalendar.sys.mjs
rename : calendar/providers/memory/CalMemoryCalendar.jsm => calendar/providers/memory/CalMemoryCalendar.sys.mjs
rename : calendar/providers/storage/CalStorageCalendar.jsm => calendar/providers/storage/CalStorageCalendar.sys.mjs
rename : mail/components/AboutRedirector.jsm => mail/components/AboutRedirector.sys.mjs
rename : mail/components/MailGlue.jsm => mail/components/MailGlue.sys.mjs
rename : mail/components/StartupRecorder.jsm => mail/components/StartupRecorder.sys.mjs
rename : mail/components/activity/Activity.jsm => mail/components/activity/Activity.sys.mjs
rename : mail/components/activity/ActivityManager.jsm => mail/components/activity/ActivityManager.sys.mjs
rename : mail/components/activity/ActivityManagerUI.jsm => mail/components/activity/ActivityManagerUI.sys.mjs
rename : mail/components/devtools/devtools-loader.jsm => mail/components/devtools/devtools-loader.sys.mjs
rename : mail/components/migration/src/ThunderbirdProfileMigrator.jsm => mail/components/migration/src/ThunderbirdProfileMigrator.sys.mjs
rename : mail/components/prompts/PromptCollection.jsm => mail/components/prompts/PromptCollection.sys.mjs
rename : mail/extensions/am-e2e/AME2E.jsm => mail/extensions/am-e2e/AME2E.sys.mjs
rename : mailnews/addrbook/modules/AddrBookCard.jsm => mailnews/addrbook/modules/AddrBookCard.sys.mjs
rename : mailnews/addrbook/modules/AddrBookManager.jsm => mailnews/addrbook/modules/AddrBookManager.sys.mjs
rename : mailnews/addrbook/modules/CardDAVDirectory.jsm => mailnews/addrbook/modules/CardDAVDirectory.sys.mjs
rename : mailnews/addrbook/modules/LDAPConnection.jsm => mailnews/addrbook/modules/LDAPConnection.sys.mjs
rename : mailnews/addrbook/modules/LDAPDirectory.jsm => mailnews/addrbook/modules/LDAPDirectory.sys.mjs
rename : mailnews/addrbook/modules/LDAPDirectoryQuery.jsm => mailnews/addrbook/modules/LDAPDirectoryQuery.sys.mjs
rename : mailnews/addrbook/modules/LDAPOperation.jsm => mailnews/addrbook/modules/LDAPOperation.sys.mjs
rename : mailnews/addrbook/modules/LDAPProtocolHandler.jsm => mailnews/addrbook/modules/LDAPProtocolHandler.sys.mjs
rename : mailnews/addrbook/modules/LDAPReplicationService.jsm => mailnews/addrbook/modules/LDAPReplicationService.sys.mjs
rename : mailnews/addrbook/modules/LDAPService.jsm => mailnews/addrbook/modules/LDAPService.sys.mjs
rename : mailnews/addrbook/modules/LDAPSyncQuery.jsm => mailnews/addrbook/modules/LDAPSyncQuery.sys.mjs
rename : mailnews/addrbook/modules/LDAPURLParser.jsm => mailnews/addrbook/modules/LDAPURLParser.sys.mjs
rename : mailnews/addrbook/modules/SQLiteDirectory.jsm => mailnews/addrbook/modules/SQLiteDirectory.sys.mjs
rename : mailnews/addrbook/modules/VCardUtils.jsm => mailnews/addrbook/modules/VCardUtils.sys.mjs
rename : mailnews/addrbook/src/AbAutoCompleteMyDomain.jsm => mailnews/addrbook/src/AbAutoCompleteMyDomain.sys.mjs
rename : mailnews/addrbook/src/AbAutoCompleteSearch.jsm => mailnews/addrbook/src/AbAutoCompleteSearch.sys.mjs
rename : mailnews/addrbook/src/AbLDAPAttributeMap.jsm => mailnews/addrbook/src/AbLDAPAttributeMap.sys.mjs
rename : mailnews/addrbook/src/AbLDAPAutoCompleteSearch.jsm => mailnews/addrbook/src/AbLDAPAutoCompleteSearch.sys.mjs
rename : mailnews/base/src/FolderLookupService.jsm => mailnews/base/src/FolderLookupService.sys.mjs
rename : mailnews/base/src/MailNotificationManager.jsm => mailnews/base/src/MailNotificationManager.sys.mjs
rename : mailnews/base/src/MailNotificationService.jsm => mailnews/base/src/MailNotificationService.sys.mjs
rename : mailnews/base/src/MsgAsyncPrompter.jsm => mailnews/base/src/MsgAsyncPrompter.sys.mjs
rename : mailnews/base/src/OAuth2Module.jsm => mailnews/base/src/OAuth2Module.sys.mjs
rename : mailnews/compose/src/MailtoProtocolHandler.jsm => mailnews/compose/src/MailtoProtocolHandler.sys.mjs
rename : mailnews/compose/src/MessageSend.jsm => mailnews/compose/src/MessageSend.sys.mjs
rename : mailnews/compose/src/SMTPProtocolHandler.jsm => mailnews/compose/src/SMTPProtocolHandler.sys.mjs
rename : mailnews/compose/src/SmtpServer.jsm => mailnews/compose/src/SmtpServer.sys.mjs
rename : mailnews/compose/src/SmtpService.jsm => mailnews/compose/src/SmtpService.sys.mjs
rename : mailnews/db/gloda/components/GlodaAutoComplete.jsm => mailnews/db/gloda/components/GlodaAutoComplete.sys.mjs
rename : mailnews/db/gloda/components/MimeMessageEmitter.jsm => mailnews/db/gloda/components/MimeMessageEmitter.sys.mjs
rename : mailnews/extensions/mdn/MDNService.jsm => mailnews/extensions/mdn/MDNService.sys.mjs
rename : mailnews/extensions/newsblog/NewsBlog.jsm => mailnews/extensions/newsblog/NewsBlog.sys.mjs
rename : mailnews/extensions/offline-startup/OfflineStartup.jsm => mailnews/extensions/offline-startup/OfflineStartup.sys.mjs
rename : mailnews/imap/src/ImapModuleLoader.jsm => mailnews/imap/src/ImapModuleLoader.sys.mjs
rename : mailnews/import/src/SeamonkeyImport.jsm => mailnews/import/src/SeamonkeyImport.sys.mjs
rename : mailnews/import/src/ThunderbirdImport.jsm => mailnews/import/src/ThunderbirdImport.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/TestJaMsgProtocolInfoComponent.jsm => mailnews/jsaccount/test/unit/resources/TestJaMsgProtocolInfoComponent.sys.mjs
rename : mailnews/local/src/Pop3IncomingServer.jsm => mailnews/local/src/Pop3IncomingServer.sys.mjs
rename : mailnews/local/src/Pop3ProtocolHandler.jsm => mailnews/local/src/Pop3ProtocolHandler.sys.mjs
rename : mailnews/local/src/Pop3ProtocolInfo.jsm => mailnews/local/src/Pop3ProtocolInfo.sys.mjs
rename : mailnews/local/src/Pop3Service.jsm => mailnews/local/src/Pop3Service.sys.mjs
rename : mailnews/mime/src/MimeJSComponents.jsm => mailnews/mime/src/MimeJSComponents.sys.mjs
rename : mailnews/news/src/NewsAutoCompleteSearch.jsm => mailnews/news/src/NewsAutoCompleteSearch.sys.mjs
rename : mailnews/news/src/NntpIncomingServer.jsm => mailnews/news/src/NntpIncomingServer.sys.mjs
rename : mailnews/news/src/NntpMessageService.jsm => mailnews/news/src/NntpMessageService.sys.mjs
rename : mailnews/news/src/NntpProtocolHandler.jsm => mailnews/news/src/NntpProtocolHandler.sys.mjs
rename : mailnews/news/src/NntpProtocolInfo.jsm => mailnews/news/src/NntpProtocolInfo.sys.mjs
rename : mailnews/news/src/NntpService.jsm => mailnews/news/src/NntpService.sys.mjs
rename : mailnews/search/src/MsgTraitService.jsm => mailnews/search/src/MsgTraitService.sys.mjs
extra : moz-landing-system : lando
2024-02-23 12:50:48 +00:00
Magnus Melin
9bc4e38b29
Bug 1872942 - Replace XPCOMUtils.defineLazyGetter with ChromeUtils.defineLazyGetter in comm-central. r=aleca
...
```
grep -rEl "XPCOMUtils.defineLazyGetter\(" --exclude-dir=.hg --exclude-dir=suite --exclude-dir=rust --include="*.js" --include="*.jsm" --include="*.mjs" --exclude=".*" . | xargs xargs sed -i -E 's/XPCOMUtils.defineLazyGetter\(/ChromeUtils.defineLazyGetter(/g'
```
+ linting and fixing that up.
Differential Revision: https://phabricator.services.mozilla.com/D197706
--HG--
extra : rebase_source : fb2048af7f476cfc48dd36dd6a8293ae1fa56446
extra : amend_source : 0296fe25ba954f764f6e8dde8b81d0e0874cdd05
2024-01-05 09:04:08 +02:00
Alessandro Castellani
37a1c0c3ff
Bug 1854255 - Enforce prefer-const eslint rule globally. r=john.bieling,ikey
...
Differential Revision: https://phabricator.services.mozilla.com/D192298
--HG--
extra : moz-landing-system : lando
2023-11-21 11:02:13 +00:00
Geoff Lankow
19b668edba
Bug 1864809 - Split DNS.jsm into DNS.sys.mjs and dnsWorker.js. r=mkmelin
...
Before fixing the actual bug, let's tidy up this confusing mess of a file which is both a module and a worker.
Differential Revision: https://phabricator.services.mozilla.com/D193866
--HG--
rename : mail/modules/DNS.jsm => mail/modules/DNS.sys.mjs
rename : mail/modules/DNS.jsm => mail/modules/dnsWorker.js
extra : moz-landing-system : lando
2023-11-17 07:23:09 +00:00
Sean Burke
151cb9e647
Bug 1847647 - ESMify calendar utility modules. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D185875
--HG--
rename : calendar/base/modules/calUtils.jsm => calendar/base/modules/calUtils.sys.mjs
rename : calendar/base/modules/utils/calACLUtils.jsm => calendar/base/modules/utils/calACLUtils.sys.mjs
rename : calendar/base/modules/utils/calAlarmUtils.jsm => calendar/base/modules/utils/calAlarmUtils.sys.mjs
rename : calendar/base/modules/utils/calAuthUtils.jsm => calendar/base/modules/utils/calAuthUtils.sys.mjs
rename : calendar/base/modules/utils/calCategoryUtils.jsm => calendar/base/modules/utils/calCategoryUtils.sys.mjs
rename : calendar/base/modules/utils/calDataUtils.jsm => calendar/base/modules/utils/calDataUtils.sys.mjs
rename : calendar/base/modules/utils/calDateTimeFormatter.jsm => calendar/base/modules/utils/calDateTimeFormatter.sys.mjs
rename : calendar/base/modules/utils/calDateTimeUtils.jsm => calendar/base/modules/utils/calDateTimeUtils.sys.mjs
rename : calendar/base/modules/utils/calEmailUtils.jsm => calendar/base/modules/utils/calEmailUtils.sys.mjs
rename : calendar/base/modules/utils/calInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.sys.mjs
rename : calendar/base/modules/utils/calItemUtils.jsm => calendar/base/modules/utils/calItemUtils.sys.mjs
rename : calendar/base/modules/utils/calIteratorUtils.jsm => calendar/base/modules/utils/calIteratorUtils.sys.mjs
rename : calendar/base/modules/utils/calItipUtils.jsm => calendar/base/modules/utils/calItipUtils.sys.mjs
rename : calendar/base/modules/utils/calL10NUtils.jsm => calendar/base/modules/utils/calL10NUtils.sys.mjs
rename : calendar/base/modules/utils/calPrintUtils.jsm => calendar/base/modules/utils/calPrintUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderDetectionUtils.jsm => calendar/base/modules/utils/calProviderDetectionUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderUtils.jsm => calendar/base/modules/utils/calProviderUtils.sys.mjs
rename : calendar/base/modules/utils/calUnifinderUtils.jsm => calendar/base/modules/utils/calUnifinderUtils.sys.mjs
rename : calendar/base/modules/utils/calViewUtils.jsm => calendar/base/modules/utils/calViewUtils.sys.mjs
rename : calendar/base/modules/utils/calWindowUtils.jsm => calendar/base/modules/utils/calWindowUtils.sys.mjs
rename : calendar/base/modules/utils/calXMLUtils.jsm => calendar/base/modules/utils/calXMLUtils.sys.mjs
extra : amend_source : c2e9643e8c3f953786dd86e61743c299214d5c48
2023-08-15 11:08:52 +01:00
Sean Burke
66079aa10d
Bug 1841185 - Remove unused calendar XML code. r=thunderbird-reviewers,darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D182524
--HG--
extra : moz-landing-system : lando
2023-06-30 00:59:29 +00:00
Rob Lemley
5af325a42f
Bug 1833949 - Port bug 1826062: Automatic reformatting for Prettier 2.8.8. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D178538
--HG--
extra : amend_source : 1f4ecb957a2e2bf2bf6353b9ef43269d53ebab42
2023-05-21 15:05:52 +10:00
Rob Lemley
58f2dc08f0
Bug 1833949 - Port bug 1826062: Automatic reformatting for Prettier 2.0.5. r=leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D178537
--HG--
extra : amend_source : 4c543c3aeea4bb0a59407f358166956d9026e6a2
2023-05-21 15:05:24 +10:00
Sean Burke
6d66ffe926
Bug 1830412 - refresh ICS calendars the standard way on startup. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D176724
--HG--
extra : amend_source : dc8a3be9984c8565a9e0480eb92e3927d4f21a24
2023-05-01 19:57:41 +10:00
Sean Burke
280f64c5bf
Bug 1792078 - avoid extraneous description newlines for Google Calendar. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D175078
--HG--
extra : amend_source : d5c2f19d64a0732b37168365860df587f919fe79
2023-04-24 15:34:29 +00:00
Sean Burke
736232b3a5
Bug 1747610 - avoid data loss in locally-hosted ICS calendars. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D175785
--HG--
extra : amend_source : b7304f9962df40d6394974f01af3599255ad2a33
2023-04-20 17:19:03 +00:00
Sean Burke
e48cddfb81
Bug 1828779 - fix invisible lock status causing early test pass. r=darktrojan
...
There is some additional cleanup in tests and the provider code. Only the
changes around "locked" are needed to correct the test behavior.
Differential Revision: https://phabricator.services.mozilla.com/D175965
--HG--
extra : moz-landing-system : lando
2023-04-20 18:42:28 +00:00
Sean Burke
dacffec7cf
Bug 1827731 - Clean up CalICSCalendar in preparation for refactor. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D175285
--HG--
rename : calendar/providers/ics/CalICSCalendar.jsm => calendar/providers/ics/CalICSCalendar.sys.mjs
extra : amend_source : 4b11bf91f531736f6b2ef6e25fec136a6b7c8444
2023-04-17 17:11:36 +00:00
Nikolay Nechaev
0802c6819c
Bug 1825950 - properly restore todos with the EVENT_ALLDAY flag. r=leftmostcat
...
Fix the storage calendar provider to respect the EVENT_ALLDAY flag when set on todos.
May fix Bug 1742646.
Differential Revision: https://phabricator.services.mozilla.com/D174380
--HG--
extra : rebase_source : 2f8d631a68ba6f9fc021b1d1e052b10702960c1b
2023-04-04 19:54:24 +10:00
Sean Burke
a9ca1cd53f
Bug 1824453 - make more calendar API private, remove unused params. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D173572
--HG--
extra : moz-landing-system : lando
2023-03-28 10:19:48 +00:00
Sean Burke
a533087ce9
Bug 1824126 - update calendar jsdoc types. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D173427
--HG--
extra : moz-landing-system : lando
2023-03-23 23:20:42 +00:00
Magnus Melin
49132715b2
Bug 1812673 - Handle calICSCalendar backup failed better. r=leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D169027
--HG--
extra : rebase_source : 34bc11398a986c392520d47ea737b4140685c0cc
extra : amend_source : bc433fcc0c95e2ee0accc74b281a08c739d9f973
2023-03-04 21:27:34 +11:00
Rob Lemley
7c89bd0b2b
Bug 1808341 - Run mach commlint -l file-whitespace to fix added file-types. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D165898
--HG--
extra : amend_source : eb1eb17ed3c0dc7c6c26e21a60dc16c410a05589
2023-01-05 15:43:08 +11:00
Magnus Melin
7f56514b91
Bug 1807409 - Take2: Port bug 1806306: Convert AsyncShutdown imports to direct ES imports. r=Paenglab
...
This is with e50167f1b3c7 and 20878589066d backed out.
Differential Revision: https://phabricator.services.mozilla.com/D165784
--HG--
extra : rebase_source : 966b9c9e061b310f6af0d455754fb65041982951
extra : amend_source : fd1efe880131445babba56e9989898835384c4bd
2023-01-02 21:15:32 +11:00
Magnus Melin
e538b86b90
Backed out changeset e50167f1b3c7 (bug 1807409, in favour of Take2)
...
--HG--
extra : rebase_source : 0efe8a2271f667c6498446bcf0cfcaaccd03bc8f
extra : amend_source : ce014df44444bf0f28b474af9ba88fcec32263e5
2023-01-02 21:14:58 +11:00
Richard Marti
1c99e794a0
Bug 1807409 - Port bug 1806306: Convert AsyncShutdown imports to direct ES imports. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D165493
--HG--
extra : moz-landing-system : lando
2022-12-25 09:55:37 +00:00
Rob Mueller
2e9ab140c2
Bug 1785240 - Add OAuth support for Fastmail, and OAuth2 PKCE (RFC 7636) support. r=mkmelin
...
Add PKCE (RFC 7636) support in OAuth2.
Add the required issuer details for Fastmail in OAuth2Providers.
Separate CalDavGoogleOAuth into a CalDavOAuth base class for
both google and fastmail support.
Fix a bug where the Authorization header was not being copied
to the next request after a redirect in the oauth caldav
auth adaptor.
Differential Revision: https://phabricator.services.mozilla.com/D163806
--HG--
extra : rebase_source : c0dd65214bb6b480abc2bd5fdcb11e2cc811d38b
2022-12-09 15:24:13 +11:00
Magnus Melin
fe9d2f7246
Bug 1801529 - mozilla/valid-jsdoc automatic fixups across the Thunderbird codebase. r=aleca
...
This is the automatic fixes + whitespace fixup:
find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\* @returns +/* @returns /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\* @returns +/* @returns /g' {} \;
find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\* (@returns \{.+\}) +/* \1 /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\* (@returns \{.+\}) +/* \1 /g' {} \;
find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\*( @param)( \S+ \S+ ) +/*\1\2- /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\*( @param)( \S+ \S+ ) +/*\1\2- /g' {} \;
find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\*( @param[^-]*)( - - )/*\1 - /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\*( @param[^-]*)( - - )/*\1 - /g' {} \;
Differential Revision: https://phabricator.services.mozilla.com/D162704
--HG--
extra : rebase_source : 4307935e658ce38943af522b17ce6b1c0d99dfdd
2022-11-23 15:43:25 +11:00
Sean Burke
9928839e0c
Bug 1685414 - switch Thunderbird OAuth2 to desktop client auth. r=darktrojan,sancus
...
Differential Revision: https://phabricator.services.mozilla.com/D158588
--HG--
extra : amend_source : 78ba5271eed2551d41af5ddcc68c2d947ff4bd09
2022-10-23 21:16:38 +11:00
Martin Giger
3855b92653
Bug 1796010 - Migrate toolkit/modules imports in calendar/ to ESM. r=mkmelin
...
Depends on D159645
Differential Revision: https://phabricator.services.mozilla.com/D159646
--HG--
extra : moz-landing-system : lando
2022-10-19 04:48:04 +00:00
Geoff Lankow
2b62c5540e
Bug 1795797 - If a CalDAV sync response says there are more items, request the items. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D159553
--HG--
extra : rebase_source : 84e2233422c85041668a788e842920a96b8b2113
extra : amend_source : 3d7d2017e89d5df78bade151a44a5025db754d02
2022-10-18 12:31:02 +13:00
Magnus Melin
5a297af0a5
Bug 1793757 - CalICSProvider should request ics data, not xml. r=lasana
...
When requesting text/xml, servers would and should should return HTTP 406.
Differential Revision: https://phabricator.services.mozilla.com/D158821
--HG--
extra : rebase_source : d9f54e266d737331781480474edd99043e570ac1
extra : amend_source : aaa9a1e2850ca26a7fcff355d0fe9c10504888d0
2022-10-15 21:15:03 +11:00