Граф коммитов

505 Коммитов

Автор SHA1 Сообщение Дата
Geoff Lankow a699e74dc8 Bug 1795638 - Update timezones to 2022e. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159489

--HG--
extra : amend_source : 84e6ed96af86f86116cf82870b24e9f8e7a0f33a
2022-10-24 21:31:26 +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
Geoff Lankow 2d4ede7228 Bug 1795797 - Test CalDAV with multiple requests needed to collect all items. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159567

--HG--
extra : moz-landing-system : lando
2022-10-19 04:48:05 +00: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
Martin Giger 991dd9c8c9 Bug 1792869 - Convert XPCOMUtils imports to esm in calendar/. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159062

--HG--
extra : rebase_source : 429365bbdeeef5397e980129520584b9ec78c9ec
extra : amend_source : 699a99eb93b34ca31ea1aca788bdf0b7949470d8
2022-10-12 21:41:24 +11:00
Sean Burke 243086e122 Bug 1791038 - eliminate stray ical.js-incompatible timezone def. r=#thunderbird-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158801
2022-10-10 18:33:31 +00:00
Lasana Murray 71a28e4b09 Bug 1791220 - Follow-up: Adjust test for platform specific clock format. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D158784
2022-10-07 17:28:08 +00:00
Geoff Lankow ec42480be1 Bug 1792287 - Update timezones to 2022d. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D158604

--HG--
extra : rebase_source : 96d098becd18214df0dbf79e3a68ec3057f3c2a4
2022-10-05 11:02:06 +13:00
Lasana Murray 0bcca834d4 Bug 1791220 - Use cal.dtz for formatting the duration of an invitation. r=aleca,leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D157570

--HG--
extra : absorb_source : 3ee4dfc3613b454bad4d628a6af8248c62fd54ad
2022-10-05 21:49:45 +13:00
Rob Lemley c098c97425 Bug 1792817 - Port bug 1792365: Migrate some toolkit module imports to ESM. r=mkmelin
../mach tb-esmify --upstream-imports calendar --prefix=toolkit/
../mach tb-esmify --upstream-imports chat --prefix=toolkit/
../mach tb-esmify --upstream-imports mail --prefix=toolkit/
../mach tb-esmify --upstream-imports mailnews --prefix=toolkit/

Differential Revision: https://phabricator.services.mozilla.com/D158363

--HG--
extra : amend_source : e4e2791bd957bf16ed1907589c3c18ad5f0ec618
2022-09-30 20:44:14 +10:00
Geoff Lankow eb8fa81497 Bug 1792923 - Return early in CalDAV request handlers if the server sends an error code. r=#thunderbird-reviewers,mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158228

--HG--
extra : amend_source : da09a827e531a4c62db85a2e5e59442010f7daab
extra : histedit_source : aaec6ab8683e60301271ccb958d1c2245a3f10f6
2022-09-30 12:07:09 +13:00
Geoff Lankow a0c7dc2f0c Bug 1792124 follow-up - Fix broken test. rs=bustage-fix
Fixes the test by pretending to be offline before running it, and cleans up some names I missed when renaming things.

--HG--
extra : rebase_source : 58411d25452813b003945d2ea8f5dc4008c351b8
extra : histedit_source : 112ebe4dca118c0bc158df9b531ab357d7ccd06d
2022-09-28 14:18:13 +13:00
Geoff Lankow e0d37e029e Bug 1792124 - Test for shared calendar database connections. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158184

--HG--
extra : moz-landing-system : lando
2022-09-27 21:46:33 +00:00
Geoff Lankow ee23005738 Bug 1790339 - Unfold ICAL strings stored in calendar databases before use. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157182

--HG--
extra : rebase_source : 852c06ced85c83f8bc3fd8aa6afbe5ca0f8bc896
extra : amend_source : f402f7a7fb19ca1d80968fcdeee16609fd21939b
extra : histedit_source : 7161e61788d557a4115b81fa42cc33c79a1f7851
2022-09-13 16:01:11 +12:00
Geoff Lankow c28571a650 Bug 1788828 - Stop using XPCOM to instantiate calendar classes. r=leftmostcat
Rather than replace every call to `cal.create...` (there are a LOT) it's easier just to replace what those functions do. The overhead of a single function call is negligible.

Differential Revision: https://phabricator.services.mozilla.com/D156263

--HG--
extra : amend_source : fd4ec5e92ca38cd5fed5915309e3f267cfa56889
2022-09-12 17:54:04 +10:00
Sean Burke d84ea84248 Bug 1786971 - consolidate timezone provider and service interfaces. r=darktrojan,lasana
Differential Revision: https://phabricator.services.mozilla.com/D155541

--HG--
rename : calendar/base/public/calITimezoneProvider.idl => calendar/base/public/calITimezoneService.idl
2022-09-08 01:04:13 +00:00
Geoff Lankow fc256b5150 Bug 1787097 - Remove libical. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D155539

--HG--
rename : calendar/base/backend/icaljs/calDateTime.js => calendar/base/src/CalDateTime.jsm
rename : calendar/base/backend/icaljs/calDuration.js => calendar/base/src/CalDuration.jsm
rename : calendar/base/backend/icaljs/calICSService.js => calendar/base/src/CalICSService.jsm
rename : calendar/base/backend/icaljs/calPeriod.js => calendar/base/src/CalPeriod.jsm
rename : calendar/base/backend/icaljs/calRecurrenceRule.js => calendar/base/src/CalRecurrenceRule.jsm
rename : calendar/base/src/calTimezone.js => calendar/base/src/CalTimezone.jsm
rename : calendar/base/backend/icaljs/calICSService-worker.js => calendar/base/src/calICSService-worker.js
rename : calendar/test/unit/head_consts.js => calendar/test/unit/head.js
rename : calendar/test/unit/xpcshell-shared.ini => calendar/test/unit/xpcshell.ini
extra : rebase_source : 8e25080fcc1e792d687e6bb49c69f65d3c8e07ba
2022-08-25 15:54:49 +12:00
Geoff Lankow 5bf021216a Bug 1783585 - Delay most calendar database read operations until after Thunderbird start-up. r=mkmelin
Depends on D153906

Differential Revision: https://phabricator.services.mozilla.com/D153907

--HG--
extra : moz-landing-system : lando
2022-08-28 22:58:27 +00:00
Geoff Lankow 56aa17f11f Bug 1784230 - Update timezones to 2022b. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D154359

--HG--
extra : rebase_source : a21093b49b69f8b5c4c144c4861c93dd28db6ba2
extra : histedit_source : 8f19561cfa7e8499a2d68d655a43c0bf12f9d822
2022-08-11 20:26:57 +12:00
Magnus Melin 8928aa83cd Bug 1776851 - Q encoding should use uppercase characters according to RFC 2047. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D153556

--HG--
extra : rebase_source : 82d4f4edb48d5cba9227b5127f4fe4ea0c561cab
extra : amend_source : 90f2cfaba486cd0ef132b825d7c67f808554dd9c
2022-08-04 14:54:01 +10:00
Magnus Melin 658036deef Bug 1779145 - Port bug 1667455 to Thunderbird - Expose a "Services" property on all privileged JS scopes (like Cu/Cc/Ci). r=leftmostcat
Changed prettier printWidth to 100 to put Services.jsm on one line, prettified and then
   grep -rEl "/Services.jsm" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -e '/\/Services.jsm/d'

Differential Revision: https://phabricator.services.mozilla.com/D151575

--HG--
extra : rebase_source : 43da2706d3b30f5062511cedd527e9fb65631f02
extra : amend_source : 863bfd4ad3930f4fe4ed0b3dba6061370118f9a5
2022-07-18 20:26:40 +10:00
Sean Burke 7612aa80c9 Bug 1606357 - allow adjusting timezone based on system timezone. r=darktrojan,aleca
Differential Revision: https://phabricator.services.mozilla.com/D149934

--HG--
extra : amend_source : 8386812c2e1661b7015ea08ea15479f0b85d4083
2022-07-07 16:35:30 +00:00
Lasana Murray e603416531 Bug 1774284 - Add unit tests for the CalTransactionManager and related classes. r=thunderbird-reviewers,freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D149596

--HG--
extra : moz-landing-system : lando
2022-06-26 05:30:55 +00:00
Lasana Murray 3126f9c83e Bug 1770984 - Do not support "SECONDLY" or "MINUTELY" recurring events. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D148441

--HG--
extra : amend_source : 1eeabd4812d478c083f9df44cf6959d0be2cd150
2022-06-08 19:42:26 +03:00
Lasana Murray 5ee52ff5d4 Bug 1752043 - Wait for calendar operations to complete in test_alarmservice.js. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D147108

--HG--
extra : amend_source : d5509d1c62ecbf0d3b8cf364b3ea8caf8c399a14
2022-05-26 20:32:40 +03:00
Lasana Murray 676d0c5404 Bug 1770486 - Remove aListener where not used and fix typo in calItipUtils. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D146940

--HG--
extra : amend_source : def4c53470a15c4d4c3b7e96eb8327523d6dd8f8
2022-05-24 12:35:15 +03:00
Geoff Lankow 2ee580ac5a Bug 1753558 - Fix calendar filter handling of tasks that change completion status. r=henry
The item type filter was matching all tasks, even if we only wanted incomplete tasks.

Differential Revision: https://phabricator.services.mozilla.com/D143005

--HG--
extra : rebase_source : 25ccdd884904804ad358b770bf93297caaeade26
extra : absorb_source : 106cab2186687df106a2d37db932592f6ae549d8
2022-04-06 14:44:33 +12:00
Geoff Lankow e9ad9d22ae Bug 1753558 - Make CalendarBaseView a subclass of CalendarFilterMixin. r=henry
Differential Revision: https://phabricator.services.mozilla.com/D139251

--HG--
extra : rebase_source : 76b75c147a52a05384a00f9a120398b996fe3a44
extra : amend_source : c2be2f8e8bfc577b8af249931797e90c2f3eabb3
2022-01-25 20:23:17 +13:00
Ping Chen 2112a6fdcb Bug 389152 - Support importing ics file on about:import page. r=darktrojan,benc
Differential Revision: https://phabricator.services.mozilla.com/D142153

--HG--
rename : calendar/test/browser/data/import.ics => calendar/test/unit/data/import.ics
extra : amend_source : 5e4c6f8db575924cf18e4488819f0e266f600b37
2022-03-29 13:41:56 +03:00
Geoff Lankow 0f7826d1a5 Bug 1760148 - Update timezones to 2022a. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D141702

--HG--
extra : rebase_source : 869a95324595f5358c1b9e09eb10e7e71820fe6b
2022-03-22 12:05:43 +13:00
Sean Burke 48350ef5e2 Bug 1759768 - use standard lazy getters for cal services. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D141897

--HG--
extra : rebase_source : 04fa44e10268a8a15d1672f3c567ab773d25d7eb
extra : histedit_source : 42ebdf5ffc87b7d2a0167d4a2ee020687e7955be
2022-03-23 20:15:31 +00:00
Geoff Lankow 34a7831958 Bug 1753558 - Improve CalFilterMixin for new uses. r=henry
I've added a Promise which resolves when all items from all calendars have loaded. This will help speed up tests by removing an arbitrary wait time on each view load.

I renamed it from CalFilterMixin to CalendarFilteredViewMixin as that seems a better fit. And all of the private members are now properly private to avoid cluttering up subclasses.

Differential Revision: https://phabricator.services.mozilla.com/D139448

--HG--
extra : rebase_source : fb103bc8f86ee075643813591880495197b4e70a
extra : absorb_source : 9957bcbdadf5ac18f4a92f3270f0af579fc45d71
2022-02-25 22:24:14 +13:00
Geoff Lankow df4db1b7ac Bug 1753558 - Improve calFilter for new uses. r=henry
To use calFilter on the main calendar views, we need to be able to specify whether or not completed tasks are included.
However we need to preserve the old functionality until we can replace the task lists.

Differential Revision: https://phabricator.services.mozilla.com/D139447

--HG--
extra : rebase_source : 14cef60e6bc3b0016718ca3a135c5e67c2b3a1c0
2022-02-23 14:23:21 +13:00
Lasana Murray 3dcdf593b0 Bug 1757850 - Still parse updated items when etag indicates they are unchanged. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D140147
2022-03-07 19:02:11 +00:00
Lasana Murray 02ca7bd37a Bug 1738443 - Do not treat 404 current-user-privilege-set responses as an empty list. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D134975

--HG--
extra : amend_source : 61aa6abc61e9e2204d4c4a53e0aa857b85bce415
2022-02-09 19:42:22 +02:00
Lasana Murray 84bc229a28 Bug 1752389 - Use CalendarTestUtils.createCalendar to create calendars in tests. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D137188
2022-01-27 23:26:34 +00:00
Lasana Murray 7570d7a916 Bug 1693873 - Part 7: Remove calAsyncUtils.jsm. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D136832

--HG--
extra : amend_source : 70366524b6647400f1e41a34e2ff2d1c03e262da
2022-02-01 12:24:45 +02:00
Geoff Lankow 662ba5f87f Bug 1752043 - Fix test_alarmservice.js by increasing a timing threshold. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D137243

--HG--
extra : rebase_source : 0175f43565fe7a3bb6d1616125998089c4e0f069
extra : histedit_source : 88fe6ebfb56eb8d4424702ae0993dc352edc02ed
2022-01-27 11:40:04 +13:00
Lasana Murray 746643c2bd Bug 1693873 - Part 5: Convert getItems() to return a ReadableStream. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D133787

--HG--
extra : amend_source : e530d9121c9be457c7abd79cb5dca23ccb4c3bdf
2022-01-25 12:54:31 +02:00
Lasana Murray 993122c547 Bug 1693873 - Part 4: Convert modifyItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D132423

--HG--
extra : amend_source : 998e67d590a25ead3033dbdcfdc95df5650ce7b7
2021-12-04 12:18:07 +02:00
Lasana Murray 75f93f22b2 Bug 1693873 - Part 3: Convert addItem() adoptItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131864

--HG--
extra : amend_source : 687f9a4852874592e691a2951190bb2a05ce620e
2021-12-04 12:17:51 +02:00
Geoff Lankow 12ac079ba1 Bug 1736140 - Update timezones to 2021e. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D132419

--HG--
extra : rebase_source : 601ef8670848f75a45512daeadf9e4b308c7abbd
2021-11-30 12:38:13 +13:00
Lasana Murray 45b42472e4 Bug 1693873 - Part 2: Convert deleteItem(), getItemOfflineFlag() and deleteOfflineItem() to Promises. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131437

--HG--
extra : amend_source : 65324db990de6e66f2fe1e30e567a492c6001c03
2021-11-26 12:36:31 +02:00
Lasana Murray 100fd6d131 Bug 1693873 - Part 1: Have calICalendar.getItem return a Promise. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D131015

--HG--
extra : amend_source : 32a4bc88ef286552b80603ba8ba9d5fb75248834
2021-11-23 12:28:58 +02:00
Lasana Murray dc17a1edf1 Bug 1722752 - Part 5: Move item caching to own model class. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D128507

Depends on D126147

--HG--
extra : rebase_source : a3350f9f87819843e7654c1cef363f38c2c2b007
2021-11-02 15:07:28 +00:00
Riya 7cf6f0cdbc Bug 1738583 - Handle Thunderbird related "ESLint rule no-loss-of-precision". r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D130004

--HG--
extra : amend_source : 0024ccee17aa61c5f1bee93f588b9aae17ad4d95
2021-11-01 12:20:19 +02:00
Geoff Lankow 5e94c611d1 Bug 1738376 - Make the agenda ignore changes in hidden calendars. r=mkmelin
When a calendar is hidden but not disabled, synchronisation could cause items to be added or modified. These changes should be ignored by the agenda.

Differential Revision: https://phabricator.services.mozilla.com/D129884

--HG--
extra : moz-landing-system : lando
2021-10-31 21:55:47 +00:00
Geoff Lankow 625a29cc8a Bug 1667962 - Avoid comparing calendar objects in a way that causes them to be printed to a log. r=mkmelin
The log printer follows a cyclical reference until it dies of "too much recursion".

Differential Revision: https://phabricator.services.mozilla.com/D128976

--HG--
extra : rebase_source : c1909693412deb639017163ef22632b32773abf8
2021-10-17 14:53:34 +13:00
Geoff Lankow 780f009ce3 Bug 1728743 - Refresh the Today Pane agenda. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126079

--HG--
extra : rebase_source : eff2e12ac79d2520bd7b194ae87d99ca8def349d
2021-09-24 17:09:07 +12:00
Geoff Lankow 383d1f1a69 Bug 1732505 - Update timezones to 2021c. r=mschroeder
Differential Revision: https://phabricator.services.mozilla.com/D127227

--HG--
extra : amend_source : d1979825305f47ed55163742703eb27c161402e2
2021-10-04 13:02:13 +03:00
Lasana Murray 0537a86fb6 Bug 1612170 - Add CalExtractParserService to allow parsing and extract event info using alternative locales. r=darktrojan
This is still early days, only rules for parsing the included tests have been added so far. The CalExtractParserService
can be used instead of Extractor via a pref for experimentation.

Differential Revision: https://phabricator.services.mozilla.com/D125291

--HG--
extra : amend_source : 3061f336f165a4a4857fc94bee4342c15fdf04fc
2021-09-29 12:29:42 +03:00
Lasana Murray e84c2dfab7 Bug 1612170 - Add customisable parser for calendar item extraction. r=darktrojan
This adds CalExtractParser that can be configured to use lexical and parse rules
for the desired locale.

Differential Revision: https://phabricator.services.mozilla.com/D123287

--HG--
extra : amend_source : 355ef7a0796224da8912f8b3ea44940de5138f20
2021-09-29 12:29:18 +03:00
Geoff Lankow 0742529b59 Bug 1732420 - Port bug 1728180 - Unify js::intl_GetCalendarInfo. rs=bustage-fix
--HG--
extra : histedit_source : 7f55aec2a5732062add2e8943eea779c71e53803%2C3c47ebe7fdf85b77f1aee7b2ee4a05dacd881884
2021-09-24 15:08:03 +12:00
Martin Schröder d7cbee906b Bug 1628815 - Removed obsolete workaround in test_caldav_client xpcshell test. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D126036

--HG--
extra : amend_source : ebaadc10eb5109f9e4971a764f94479582fb8e45
2021-09-20 12:55:50 +03:00
Geoff Lankow ac9eb1f001 Bug 1727711 - Create an active version of calFilter to be used by calendar display widgets. r=mkmelin
To begin with, this new class (actually a mixin so it can be used with different base classes) has an instance of the original calFilter. In future it might consume calFilter when we no longer need that as a separate class.

No widgets currently use the mixin but I have prototyped a new Today Pane agenda which works well. I will finish that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D123733

--HG--
rename : calendar/base/src/calFilter.js => calendar/base/content/widgets/calendar-filter.js
extra : rebase_source : af66938088c0e7949e6fdec73ccb0ceb5debd8f4
2021-08-24 21:17:37 +12:00
Martin Schröder bc14cbf848 Bug 1726917 - Make xpcshell test calendar/test/unit/test_util.js passing with an arbitrary os timezone set locally. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D123285

--HG--
extra : amend_source : 91fb64b30947aeaa45ff0fc21864d820a1274851
2021-08-23 13:25:39 +03:00
Martin Schröder 62868bbb82 Bug 1500122 - Use a custom locale for datetime formatting tests. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D123180

--HG--
extra : amend_source : 328f174c5e29e5c44d8a90b781089e46906baa4e
2021-08-23 12:46:42 +03:00
Henry Wilkes 74d4415dbb Bug 1722005 - Fix misplaced "attendeerole" from 9054c137e8fb. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D121698

--HG--
extra : histedit_source : 65a77ac7a806ca26c34795f07a7df04278f21fb9
2021-08-04 08:08:14 +00:00
Henry Wilkes 5da2b3f7e2 Bug 1722005 - Replace attendee icon "role" attribute name with "attendeerole". r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120713
2021-08-03 10:50:31 +00:00
Henry Wilkes 4ad004e95f Bug 1695039 - Show changes to an invitation email by editing the Document directly rather than replacing it. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120712

--HG--
extra : moz-landing-system : lando
2021-07-29 10:01:26 +00:00
Lasana Murray 974e1a3b7d Bug 1595332 - Use the real properties getter to provide the properties of recurring events. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120122
2021-07-20 23:20:40 +00:00
Geoff Lankow 5c4decf735 Backed out changeset 005b8b023593 (bug 1595332) for breaking tests. rs=backout 2021-07-20 11:17:16 +12:00
Lasana Murray 6f26b27bda Bug 1595332 - Use the real properties getter to provide the properties of recurring events. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D120122
2021-07-16 23:28:23 +00:00
Geoff Lankow da4f49d465 Bug 1719235 - Reorganise calendar test module files. r=lasana
Just tidying up some mess before we get started.

Differential Revision: https://phabricator.services.mozilla.com/D119143

--HG--
rename : calendar/test/modules/CalendarTestUtils.jsm => calendar/test/CalendarTestUtils.jsm
rename : calendar/test/modules/CalendarUtils.jsm => calendar/test/CalendarUtils.jsm
rename : calendar/test/modules/ItemEditingHelpers.jsm => calendar/test/ItemEditingHelpers.jsm
extra : rebase_source : 46e3b3eabd281d283a346c8b004acf2e64e28f80
extra : histedit_source : 6c2504193020911922c4efce41bc5a0a945cefaf%2Cf5c80aeaedaee5d4fca5f6a67579f8d0f9ba4bd8
2021-07-05 14:50:07 +12:00
Neil Rashbrook 1270f589f3 Bug 1718542 - Fetch the itip.transport calendar property again. r=lasana,darktrojan 2021-06-28 16:12:11 +01:00
Geoff Lankow 53bb0a95a4 Bug 1710548 - Move invitation utils from ltn. to cal. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D118902

--HG--
rename : calendar/base/content/lightning-invitation.xhtml => calendar/base/content/invitation-template.xhtml
rename : calendar/base/modules/ltnInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.jsm
rename : calendar/test/unit/test_ltninvitationutils.js => calendar/test/unit/test_invitationutils.js
extra : rebase_source : c8882d7b18e82e53cdd34a680a0663e7a3d52210
2021-06-28 14:23:46 +12:00
Neil Rashbrook 2dfe3b5d5e Bug 1607834 Support HTML descriptions for events r=darktrojan 2021-06-08 16:29:46 +01:00
Ping Chen 0c9a7d8c03 Bug 1497434 - Support calendar notification times relative to both start and end. r=darktrojan
Redefine the calendar.notifications.times pref:
- use `END:` to mean relative to the end
- use comma as separator of entries

An example is `PT2M,END:-PT3M`.

Differential Revision: https://phabricator.services.mozilla.com/D117391

--HG--
extra : amend_source : 45d82d2baec1ffe2f7f75390bb26f7934bf69614
2021-06-17 13:06:35 +03:00
Ben Campbell 04eb2e6bea Bug 1712451 - Set up profile dir at beginning of test_itip_utils.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D116335

--HG--
extra : amend_source : dec9170aaeee58f4670a53ecb510c0e3abf094cb
2021-05-31 13:49:21 +03:00
Lasana Murray 5718140f8c Bug 1711281 - Add unit tests for getInvitedAttendee() and getImipTransport. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115148

--HG--
extra : amend_source : a799b4de30d5b90a50787a1549cab6f0feb838c9
2021-05-21 13:46:58 +03:00
Lasana Murray bd6242c408 Bug 1711134 - Add unit tests for CalItipMessageSender for incoming invitations. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115099
2021-05-15 12:52:52 +03:00
Ping Chen e3fdedad57 Bug 1237142 - Replace nsIAlertsService.showAlertNotification with showAlert. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D113921

--HG--
extra : amend_source : 3c3d1dd6eacbd96dfb71a6ea75d056bce4c25842
2021-04-30 13:51:42 +03:00
Henry Wilkes 66bf39da97 Bug 1683865 - Replace xul:image usage in setting event reminders. r=darktrojan
Also removed the test_addReminderImages unit test since it was testing ui features without 'document' or its localization, which is needed for setting img alt text.

Differential Revision: https://phabricator.services.mozilla.com/D111594
2021-04-21 11:20:46 +00:00
Henry Wilkes 483cb63834 Bug 1683303 - Remove XUL equalsize from event attendee box. r=darktrojan,mkmelin
Replace the dynamic grid behaviour for the XUL box with a single column list.

Now, both the organizer labels and attendee labels use the same constructor, to keep styling consistent. And the list of attendees is represented by an unordered list <ul>, which is more semantically correct.

Also, calendar editing, summaries and email invitations all use the same constructors for attendees, which removes code duplication and keeps styling consistent. They also share the same styling sheets and localization.

In addition, the invitation document (lightning-invitation.xhtml) was rewritten to be more semantically correct and therefore more accessible. In particular, we no longer embed a table within another table's cell for the organizer row and attendees row (the unordered list is used in the latter case). Unnecessary paragraph <p> elements were removed from the cells. Row headers were marked as <th>. And the table header was moved to a <caption>.

Differential Revision: https://phabricator.services.mozilla.com/D111411

--HG--
extra : amend_source : aee820ea0e2a8c8d66cd9ca6045f1a825e3dc383
2021-04-28 13:56:33 +03:00
Magnus Melin 94fa4e6742 Bug 1706985 - remove unused calICalendarSearchProvider. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D113131

--HG--
extra : rebase_source : aab387c6fd6c8a671866ed43697489f762acab3c
extra : amend_source : bcb900154688483f8191aaa6ac635b1462f2db16
2021-04-28 13:55:11 +03:00
Ping Chen 64bda21386 Bug 1497434 - Support calendar level notification settings. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D112499

--HG--
extra : amend_source : 6dce971be15065f01742a6fae5e91da26e80fc6f
2021-04-22 12:52:39 +03:00
Geoff Lankow 1190525dce Bug 1684021 - Update timezones to 2021a. r=mkmelin
https://mm.icann.org/pipermail/tz-announce/2020-December/000063.html
https://mm.icann.org/pipermail/tz-announce/2021-January/000065.html

Differential Revision: https://phabricator.services.mozilla.com/D100416

--HG--
extra : moz-landing-system : lando
2021-04-15 22:49:17 +00:00
Magnus Melin 1a9ee810f3 Bug 1683865 - Backed out changeset 3a15062552f2 for test failures in at least calendar/test/unit/test_alarmutils.js
--HG--
extra : amend_source : 72e7edf1f8c69c5113ee187fea377455bc52854e
2021-04-15 12:58:32 +03:00
Henry Wilkes 246b944295 Bug 1683865 - Replace xul:image usage in setting event reminders. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D111594

--HG--
extra : moz-landing-system : lando
2021-04-15 05:27:34 +00:00
Geoff Lankow 08f4750cd3 Bug 1700047 - Pass a calendar to calIObserver.onStartBatch and onEndBatch. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D109273

--HG--
extra : moz-landing-system : lando
2021-03-31 23:54:21 +00:00
Geoff Lankow 650d6b9be3 Bug 1691885 - Test notifications from CalDAV and ICS calendars. r=mkmelin
This tests each combination of calendar provider and offline storage setting to ensure they behave consistently.
To do this I've added mock CalDAV and ICS servers (forked from CardDAVServer.jsm).

Differential Revision: https://phabricator.services.mozilla.com/D109272

--HG--
rename : mailnews/addrbook/test/CardDAVServer.jsm => calendar/test/CalDAVServer.jsm
rename : mailnews/addrbook/test/CardDAVServer.jsm => calendar/test/ICSServer.jsm
extra : moz-landing-system : lando
2021-03-31 23:54:20 +00:00
Ping Chen 4ad3636e06 Bug 1497434 - Initial step to support soft reminder in CalAlarmService. r=darktrojan
This patch adds a calendar.notifications.times pref in the form of "PT2H PT1M" to support multiple notifications. In followup patches, will add support for calendar level notification time, and UI to set the prefs.

Differential Revision: https://phabricator.services.mozilla.com/D109035
2021-03-30 00:19:17 +00:00
Magnus Melin 7bd4cc825e Bug 1666296 - Properly show descriptions in Teams invites. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109301

--HG--
extra : rebase_source : e2138a9ac78f764e7e5549a53ee0f54948ca2464
extra : amend_source : 31057715086bf57282002eaeaa39ddd31245d20f
2021-03-24 12:49:32 +02:00
Lasana Murray e85e0354ec Bug 1687329 - Part 2: Add isEvent() and isTodo() to calIItemBase. r=darktrojan
This also removed cal.item.isEvent() and cal.item.isTodo.
2021-02-20 12:14:08 +02:00
Lasana Murray f5f081ba00 Bug 1686466 - Do not cache items with a recurrenceId in CalStorageCalendar. r=darktrojan 2021-02-03 12:58:00 +02:00
Ben Campbell ef245cafd9 Bug 1682937 - Remove nsISimpleEnumerator use from calendar interfaces. r=darktrojan 2021-02-01 12:15:10 +02:00
Geoff Lankow 797c0e78ee Bug 1684485 - Convert calendar tests to run in UTC by default. r=lasana
Changes the test manifests, and uses of the `Date` object to use UTC. Plus a linter rule to prevent mistakes.

Differential Revision: https://phabricator.services.mozilla.com/D100538

--HG--
extra : moz-landing-system : lando
2021-01-06 22:57:49 +00:00
Magnus Melin 9b21c853ec Bug 1663947 - prevent the most common entities from appearing in event/task descriptions. r=darktrojan 2021-01-01 12:56:07 +02:00
Lasana Murray f273554806 Bug 1664731 - Load properties for exceptions of recurring events and todos. r=darktrojan 2020-12-16 12:35:57 +02:00
Ping Chen f5bd5f8d71 Bug 1679776 - Test non-ASCII text parsing in CalDavWebDavSyncHandler. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D98562

--HG--
extra : moz-landing-system : lando
2020-12-08 09:57:10 +00:00
Ping Chen 5007c6f56b Bug 1652984 - Part 2: Fix calIcalProperty.valueAsIcalString for GEO field. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D97723

--HG--
extra : amend_source : 098ee2fd43ef3bcc63831963c3d4a6c03c66d415
2020-11-27 12:56:00 +02:00
Geoff Lankow a5fb9e5852 Bug 1669950 - Update timezones to 2020d. r=Fallen
https://mm.icann.org/pipermail/tz-announce/2020-October/000059.html (2020b)
https://mm.icann.org/pipermail/tz-announce/2020-October/000060.html (2020c)
https://mm.icann.org/pipermail/tz-announce/2020-October/000062.html (2020d)

Differential Revision: https://phabricator.services.mozilla.com/D94508

--HG--
extra : rebase_source : 66b74a7f487d09e4fa24cf8a10f095804b1d4e0e
extra : amend_source : ecfc456b8f7ea41653749dbeb11cdc9a70badf1d
extra : histedit_source : 30581a2af55d98c7730367734ad1f11d3f07e915
2020-10-23 11:07:23 +13:00
Paul Morris 6ad3790174 Bug 1659558 - Part 8: Convert `cal.createRecurrenceInfo()` to `new CalRecurrenceInfo()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89276

--HG--
extra : rebase_source : 8a1b0dce7983dd054c04a7f8138081e1fae98365
2020-09-03 14:29:58 -04:00
Paul Morris a26956574a Bug 1659558 - Part 7: Convert `cal.createRelation()` to `new CalRelation()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89275

--HG--
extra : rebase_source : 5bbbb6cd22490a98885d549eddd4d9c6010363fc
2020-09-03 13:52:33 -04:00
Paul Morris 4ada409e33 Bug 1659558 - Part 6: Convert `cal.createAlarm()` to `new CalAlarm()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89273

--HG--
extra : rebase_source : f873f68d9591ce9d4f7a32140335f3264a0da11a
2020-09-03 09:31:50 -04:00
Paul Morris 6863b2ab8d Bug 1659558 - Part 5: Convert `cal.createAttachment()` to `new CalAttachment()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89271

--HG--
extra : rebase_source : 791b2dfa264b183a1d55c4089a67179ed913a882
2020-09-02 15:40:42 -04:00
Paul Morris 1c35d95ce4 Bug 1659558 - Part 4: Convert `cal.createAttendee()` to `new CalAttendee()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89270

--HG--
extra : rebase_source : 01313187641ebafa6844bd621089e922e07a283b
2020-09-02 13:23:35 -04:00
Paul Morris dd9f6e0f99 Bug 1659558 - Part 3: Convert `cal.createTodo()` to `new CalTodo()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89268

--HG--
extra : rebase_source : 46f7a80d11907f81950b969a5bf1cac0c8ee336c
extra : source : 97b9aaba64994e3e30e7719354bfdc6ed291b26a
2020-09-01 14:26:54 -04:00
Paul Morris 1720739108 Bug 1659558 - Part 2: Convert `cal.createEvent()` to `new CalEvent()`. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D89267

--HG--
extra : rebase_source : c92da480512b285c16d9d991de3ac1dece4c003c
2020-09-01 13:43:59 -04:00
Paul Morris e6fff550ad Bug 1659558 - Part 1: Refactor makeMemberAttr function. r=darktrojan
Handling defaults in this function doesn't really work for
getProperty/setProperty access because the code for cloning
an object does not copy the defaults. The cloning code just iterates
mProperties and copies all of them, and setting up defaults in
makeMemeberAttr (via prototype) does not put them in mProperties.

Differential Revision: https://phabricator.services.mozilla.com/D89269

--HG--
extra : rebase_source : 3823532677dc832c437850d4d87402c62febf949
2020-09-01 22:46:31 -04:00