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

958 Коммитов

Автор SHA1 Сообщение Дата
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
Geoff Lankow 00b094866f Bug 1731751 - Select the clicked-on calendar in the list before opening the context menu. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126209

--HG--
extra : rebase_source : 7976b640614ca0c1c017ae7eb1b7ed32c3fef83c
extra : histedit_source : 924af6a6775d384d67dfa5f281a1c0071f9a1aab%2C3f6e6f9a02f923803b43032cf3b801900f92dee8
2021-09-21 21:55:02 +12:00
Geoff Lankow 076cca0ece Bug 1719235 - Use CalendarTestUtils to create and remove calendars in tests. r=lasana
... and remove the last remaining traces of Mozmill from calendar tests, except where necessary to do things with mail.

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

--HG--
extra : rebase_source : 02a23bcf0e1761a12795b52110d3d01edf833051
2021-08-16 16:18:18 +12:00
Geoff Lankow 2814310697 Bug 1731229 - Wait longer for calendar discovery in a test. r=mkmelin
It's just taking too long. Wait longer.

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

--HG--
extra : amend_source : be2e203be725c7ff8e07f4eabdda3ee838e58fd6
2021-09-21 13:47:24 +03: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 c95ebf4f2b Bug 1730635 - Add tests of CalDAV/CardDAV discovery using DNS. r=mkmelin
These tests hijack the DNS module's functions to return the intended result.

We can't use the mock servers for the tests because we only do discovery for HTTPS, and the mock servers can't speak HTTPS. Instead, we direct the code to some files on the Mochitest server.

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

--HG--
extra : rebase_source : 3ea40a9b8e8456991f01dc087a4b4b3d480ab62a
2021-09-13 16:14:56 +12: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
Magnus Melin 88d88aa408 Bug 760412 - Always display text/calendar part along with chosen text/html part. r=darktrojan
This makes us always show the generated invite html together with the normal html part.
Invites usually have an ok display in there generated by the server or sending client, and I think we don't want to normally show both parts at the same time. This patch changes the imip invite to just show an expandable summary on top of the html from the email. By clicking the arrow the details (like we had them) will be displayed, so that it still is accessible for the cases where the html representation is not there in the email, or it's bad.

Displaying the normal html content of the email solves problems expecially for "cancelled with a note" updates where you otherwise can't see the note because it's only inside the mail content.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/760412-always-show-text-calendar.patch

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

--HG--
extra : rebase_source : a472f5825b80992cbe8bb8d5a72275315959332a
2021-09-01 10:30:38 +03:00
Lasana Murray 67320205f8 Bug 1428254 - Prompt user before deleting items from calendar views and trees. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D122757
2021-08-26 23:43:18 +00: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
Geoff Lankow d1f17b3a23 Bug 1724842 - Replace calendar list with orderable listbox. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D122180

--HG--
extra : rebase_source : b197b148af9a084132b71756c217f2fab8aa0830
2021-07-19 12:23:45 +12: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
Geoff Lankow 35eb74fd58 Bug 1719235 - Clean up a created calendar after use. rs=bustage-fix
--HG--
extra : amend_source : 2c65017c7dd8d9df9747c7ce924f34ee8b32886a
2021-07-30 14:41:31 +12:00
Geoff Lankow 0250527939 Bug 1719235 - Move goToDate and goToToday to CalendarTestUtils. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120918

--HG--
extra : rebase_source : 4b25acbc62274e33dc6754e001793d610cfa543d
extra : histedit_source : 875e852e110ce61a7783796bf28535dfd8084986
2021-07-27 14:38:06 +12:00
Geoff Lankow 3be000d706 Bug 1719235 - Tidy up a few loose ends. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120436

--HG--
extra : rebase_source : e6f25c14f96199d5be85ea6d72969d5ff0fe233b
extra : histedit_source : 21960e92004f906704a11e0042e11435917c09d6
2021-07-21 15:23:58 +12:00
Geoff Lankow 31b7972e28 Bug 1719235 - Stop using Mozmill controllers in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120435

--HG--
extra : rebase_source : 902063a62123e4bad32ec1e473b32fc570fe77c3
extra : histedit_source : a4fe47a3d591897427b668f97a175e1a350acb1c
2021-07-06 21:31:04 +12:00
Geoff Lankow 25f0d82409 Bug 1719235 - Stop using controller in createCalendar/deleteCalendars. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120434

--HG--
extra : rebase_source : 3af4f5913362337cfd7e30d4ff846dacc70ecfa8
extra : histedit_source : 9a4a458b5e18052f5630ba17e34e96a517bd9686
2021-07-06 20:54:42 +12:00
Geoff Lankow 79712cbf90 Bug 1719235 - Stop using controller.click in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120433

--HG--
extra : rebase_source : 88f616036500ecadca1728a4f532d95b25c230ec
extra : histedit_source : 5edef588a6431554b30463c2149c758e56de4147
2021-07-06 20:02:14 +12:00
Geoff Lankow 34b6069dde Bug 1719235 - Stop using controller.sleep and controller.waitFor in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120432

--HG--
extra : rebase_source : a776d1148e239ac0853ad42f2c9ff30b9469ede4
extra : histedit_source : 06344a1f79e0ce793c976d85e834a8f3391edc5b
2021-07-06 19:47:24 +12:00
Geoff Lankow c2a6e29a3c Bug 1719235 - Use `window` and `document` where appropriate in calendar tests. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120431

--HG--
extra : rebase_source : f1985098d98790bec85cb782b5ce3b042dbc057e
extra : histedit_source : 97c878d491839348c330419acd820c177dc79336
2021-07-06 16:35:53 +12:00
Geoff Lankow 2218a34d68 Bug 1719235 - Convert some more CalendarUtils functions from Mozmill. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D120430

--HG--
extra : rebase_source : 84c1654939b8e0324b84ce14c05db7872f5f20c2
extra : histedit_source : c6f713cbef8a9419bafa2b13e87a037a02e61b51
2021-07-06 15:09:39 +12: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
Geoff Lankow a9b5296e58 Bug 1722257 - Fix timing in browser_testIdentityPrompt.js. r=lasana
We've been clicking on a button that wasn't visible yet.

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

--HG--
extra : rebase_source : 1ea25d98daaaafcd9dcd57cb87ff9c3597f6c716
2021-07-26 12:45:14 +12: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
Lasana Murray 1593f374a8 Bug 1718282 - Replace invoke*() functions with CalendarTestUtils equivalents. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D119457
2021-07-12 22:34:34 +00:00
Geoff Lankow 4d9746e0c1 Bug 1718921 - Add a pause in calendar providers test to prevent persistent failures. rs=bustage-fix
--HG--
extra : rebase_source : 41853473ddabc110ba097586e1aaf66ca9e6c710
extra : amend_source : b59f720343584093e85cdda71c95033c24fc24f7
2021-07-08 20:15:19 +12:00
Geoff Lankow d305933970 Bug 1718821 follow-up - Use a longer time-out. rs=bustage-fix 2021-07-08 21:45:00 +12:00
Geoff Lankow b4b4f85ffe Bug 1719235 - Stop using mozmill controllers in CalendarUtils event dialog functions. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D119144

--HG--
extra : rebase_source : 430ad8e90fe9001a72442ddf18048007a4362cc3
2021-07-05 15:09:35 +12: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
Geoff Lankow ab525291b2 Bug 1718583 follow-up - Stop browser_timezones.js and browser_storageCalendar.js timing out. rs=bustage-fix
--HG--
extra : rebase_source : 20c1723cfadd67feaa121102300211d5c44e6e68
2021-07-06 12:15:37 +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 8c13d1d4f8 Bug 1718821 - Rearrange browser_alarmDialog.js to stop it failing. r=lasana,mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D118997

--HG--
extra : rebase_source : 94fa6757bef05e512c59169149e61f19821f5689
2021-07-01 15:08:52 +12:00
Lasana Murray 264acc0986 Bug 1337356 - Follow up: update lightning references in test. r=mkmelin
Also takes advantage of saveAndCloseItemDialog() new behaviour of
waiting for the dialog to be closed.

Differential Revision: https://phabricator.services.mozilla.com/D119011
2021-07-01 14:52:35 +00:00
Magnus Melin 04f37a47d3 Bug 1337356 - followup - fix linting. rs=eslint DONTBUILD 2021-07-01 14:22:03 +03:00
Lasana Murray efe89dbddb Bug 1337356 - Enable undo/redo for event creation and deletion. r=darktrojan
This was accomplished by making the CalTransactionManager class aware of
batch transactions which can result in peeking of the transaction stack
returning null.

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

--HG--
extra : amend_source : 0619e7758538fb82d43216f2f4aa2f8d0da8e5f5
2021-07-01 13:56:18 +03:00
Lasana Murray 3d24d6b195 Bug 1718583 - Wait for window close event in saveAndCloseItemDialog(). r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D118929
2021-06-29 01:02:42 +00:00
Geoff Lankow 23df233a74 Bug 1718718 - Stop sending batch notifications when importing calendar items. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D118962

--HG--
extra : rebase_source : 7b550dd41fd0affb5b7cdb0e7dffbb45bb1bebd3
2021-06-30 16:51:32 +12:00
Geoff Lankow ee0289fc37 Bug 1710548 - Rename Lightning elements and functions. rs=mkmelin
This eliminates almost everything remaining named "Lightning" or "ltn" and not involved in L10n or preferences somehow.

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

--HG--
extra : rebase_source : af81cd714f2c27df4eea403b4bc539ba8a806531
extra : amend_source : 6cfa1341f8f1cb0400c5ad4f32c90a006e22a3e9
2021-06-28 15:28:18 +12: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
Geoff Lankow 941b6210af Bug 1716680 - Test that synchronising calendars updates the views. r=mkmelin
This test synchronises with the remote calendar three times. An event is added the first time and should appear. It's modified the second time and should be updated. It's deleted the third time and should disappear.

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

--HG--
extra : rebase_source : 1ed4779f49c24d0492fd55bc9851f190fe7b4eb3
extra : amend_source : 734b59aaeed5a3525ee9b9ffb67bb2ffdd4ee13d
2021-06-14 22:58:06 +12:00
Geoff Lankow 81cfe9b2ee Bug 1716680 - Reorganise calendar provider mochitests. r=mkmelin
Just a tidy-up to make the next patch easier.

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

--HG--
extra : rebase_source : e229f0cc6550a8ad44c693a9e122338e75249d58
2021-06-14 22:11:59 +12: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
Geoff Lankow 4ae2f94595 Bug 1715923 - When authorising a Google mail account, request address book and calendar scopes too. r=mkmelin
This patch involves:
* changing the scopes we request when connecting mail (existing accounts are unaffected because the scope we originally requested is stored per-account in the preferences)
* teaching the CardDAV and CalDAV implementations to find passwords stored by username (with either the exact scope needed or many scopes)

Calendars with a username set (not sure how this happened, but they exist) will need to re-authorise. Other address books and calendars are not required to re-authorise.

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

--HG--
extra : amend_source : b1e20b69683e846ed542115e063aace9917f00b5
2021-06-11 13:39:10 +03:00
Geoff Lankow 69c82301a2 Bug 1715923 - Test address book and calendar OAuth2 authentication. r=mkmelin
We need to know if anything is going to break in the changes we're about to make.

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

--HG--
extra : amend_source : 14db84dd2cd908e2dfdb6a7ef317adcb2627be74
2021-06-11 13:38:51 +03:00
Geoff Lankow 203e00cc81 Bug 1665203 follow-up - Have CalDAVServer respond when asked for calendar privileges. rs=bustage-fix 2021-06-10 20:18:48 +12:00
Ben Campbell 660ed07b28 Bug 1715433 - Use initial-lowercase-letter naming convention in nsIMsgCopyService. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D117256

--HG--
extra : amend_source : 9466d9ce3ff06bc5a7ca014c514d70e023b421b4
2021-06-09 12:57:51 +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
Henry Wilkes 82aadd8af2 Bug 1694820 - Structurally simplify calendar event items. r=darktrojan
Used HTML and CSS to reduce nesting of elements and to tidy their styling.

Also, made month and multiweek views more semantically correct by placing the "days of the week" headers within the <table>, and restyled it as a CSS grid.
Also, placed the month day event items within an <ol> element.

Also, renamed some classes to make them more consistent and meaningful, and dropped some duplicate or unused classes.

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

--HG--
extra : amend_source : d277c9b32f8a00fec20364147a1cf76e0e881f9a
2021-05-27 13:12:26 +03:00
Lasana Murray b3e5782168 Bug 1711583 - Add mochitest for itip identity prompt. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D115296

--HG--
extra : rebase_source : c85c8176b20534b7800c1867a4b2b489b136edd0
extra : histedit_source : 521229c821dfbb5d1266c6ea195205dfabeb0621
2021-05-17 22:20:35 +00: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
Geoff Lankow fa2da443a8 Bug 1710964 - Restore day/week view scroll position on tab switch. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D115044

--HG--
extra : rebase_source : f7798bafa94b03abd0566558b4bb1551f10cd70f
extra : amend_source : ccf8465d53d1115b803066c7f5520493dd72184a
2021-05-13 14:33:29 +12: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
Geoff Lankow b4465cecab Bug 1707800 - Fix browser_alarmDefaultValue.js. rs=bustage-fix
The "43" being typed into the preferences window was going to the search box instead of the number input as it should have. I think the click on the center of the input missed somehow.

--HG--
extra : rebase_source : a5ac3b0c13dac7d2fc86c6a2911ce8acffd63d87
2021-04-27 15:06:00 +12:00
Geoff Lankow 90bd9a56b2 Bug 1707152 - part 1 - Fix tests after bug 1700679 - native context menus on macOS. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D113213

--HG--
extra : amend_source : 1551d497d9422665b259b11648886240c91a2931
2021-04-23 13:59:12 +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 60c4d098e8 Bug 1706514 - Fix unhandled rejection in browser_attachMenu.js. rs=bustage-fix 2021-04-21 12:14:48 +12: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
Henry Wilkes 7dfa4db6df Bug 1683865 - Replace xul:image usage in event attachments. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D111593

--HG--
extra : moz-landing-system : lando
2021-04-15 05:27:33 +00:00
Geoff Lankow d7d511d01a Bug 1700047 - Use batch notifications for better handling in CalAlarmService. r=mkmelin
This makes the alarm service ignore onAddItem and onModifyItem notifications in between onStartBatch and onEndBatch.
We know that onLoad will follow, at which point we reload all alarms from the calendar in question.
Ignoring the notifications prevents the alarms from firing multiple times in quick succession as the calendar loads.

I have in mind to follow this pattern across all of the UI pieces that listen to notifications, but first I really want to be sure (with tests) that sane behaviour is occurring.

I've added tests for this and (really lightly) the unifinder with all of the calendar types. More testing will be added to this later.
The ICS calendar with offline storage doesn't quite work right (as is the case in bug 1691885) but we can still test what does work.

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

--HG--
extra : moz-landing-system : lando
2021-03-31 23:54:21 +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
Geoff Lankow 9eb4aa0517 Bug 1698143 follow-up - Fix broken test browser_customMinimonthCount.js. rs=bustage-fix 2021-04-01 11:33:33 +13: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
Henry Wilkes c223516eeb Bug 1696613 - Remove elementslib. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109755
2021-03-26 11:43:38 +00:00
Lasana Murray 912865abc2 Bug 1681224 - Add mochitests for remaining calendar views. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109775

--HG--
extra : moz-landing-system : lando
2021-03-29 21:56:03 +00:00
Geoff Lankow b77de5c7c4 Bug 1698506 - Fix browser_monthView.js and browser_weekView.js. r=mkmelin
These tests have started failing all of the time. The problem is that in
waiting for an event box, we're getting the existing box before it is
replaced by the new one we're waiting for.

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

--HG--
extra : histedit_source : aa70d4c128685dbbf2ebd7ec04ef73bd32464234
2021-03-26 08:00:00 +00:00
Geoff Lankow 35c50b475c Port bug 1693133 - Changes to BrowserTestUtils.promiseAlertDialog and promiseAlertDialogOpen. rs=bustage-fix 2021-03-26 19:20:41 +13:00
Lasana Murray a0286b612b Bug 1683460 - Add tests for various supported drop types. r=darktrojan 2021-03-17 15:17:12 -04: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 706f5b3749 Bug 1697997 - Clean up CalendarTestUtils. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108144

--HG--
extra : amend_source : d01e812f35756d217a89ad21423a017cb0df6d2c
2021-03-19 11:28:01 +13:00
Lasana Murray e3a24e3d90 Bug 1697848 - Move view helpers into their own class. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108048

--HG--
extra : amend_source : 950aacf9fc3a78e441676c7c06a485ef5653d277
extra : histedit_source : 96c5a08262a8cc8118577e2c0d8503f0b461505f
2021-03-18 11:03:52 +13:00
Lasana Murray 9e2edb51d3 Bug 1693735 - Wait for view to be refreshed before checking event title. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D108466

--HG--
extra : histedit_source : 0781d0cb12d5889ca9ac3e79a621876c48f1e7d6
2021-03-15 15:17:39 +00:00
Geoff Lankow 5ab2f0c56d Bug 1686382 - In import dialog, allow sorting of events to import. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D103851

--HG--
extra : moz-landing-system : lando
2021-03-15 22:18:31 +00:00
Geoff Lankow b9b87a8da9 Bug 1683063 - In import dialog, allow filtering of items to import. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D100547

--HG--
extra : moz-landing-system : lando
2021-03-15 22:18:30 +00:00
Henry Wilkes ce483dceae Bug 1694631 - Stop using Lookup in CalendarUtils. r=darktrojan
The lookup and lookupEventBox methods require full tree paths to find elements, which makes them hard to maintain when restructuring.

These were dropped from CalendarUtils, along with the path related methods and constants.

The standard querySelector and getElementById methods were used instead.

In particular, the CalendarTestUtils module was expanded with the dayView, weekView and multiweekView submodules to replace the lookupEventBox usage.

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

--HG--
extra : moz-landing-system : lando
2021-03-11 22:07:19 +00:00
Magnus Melin bafc2252a1 Bug 1692480 - remove setBooleanAttribute(). r=darktrojan
# setBooleanAttribute("id", "attr", value) -> document.getElementById("id").attr = value
find calendar -type f -not -path "*.hg/*" -regex ".*\.\(jsm\|js\)$" -exec sed -i -E 's/setBooleanAttribute\("([^,]+)", "([^,]+)", ([^,]+)\)/document.getElementById("\1").\2 = \3/g' {} \;

# setBooleanAttribute(id, "attr", value) -> document.getElementById(id).attr = value
 find calendar -type f -not -path "*.hg/*" -regex ".*\.\(jsm\|js\)$" -exec sed -i -E 's/setBooleanAttribute\(([^,]+), "([^,]+)", ([^,]+)\)/\1.\2 = \3/g' {} \;

+ manual fixups

To simplify matters made these boolean attributes:
* calendar-disabled
* calendar-readfailed
* calendar-readonly
2021-03-02 12:27:02 +02:00
Lasana Murray b621276193 Bug 1693870 - Move menulistSelect out of CalendarUtils and into ItemEditingHelpers. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D106321

--HG--
extra : amend_source : 532eeac5282dafff93c36c720e9a5bf7453a448b
2021-02-25 18:30:30 +00:00
Geoff Lankow 49cfa33e8c Bug 1687664 - Fix failures in browser_weeklyWithException.js. r=lasana
This appears to be happening because an edit is happening before the previous one has finished.
Waiting for the first edit to be reflected in the UI before moving on should prevent that.

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

--HG--
extra : rebase_source : a28f9797b78d146b02f11cb54a3d91c1ba9f59b3
extra : histedit_source : f1038ede8eefcb150be56bd053d3217feee3dedd
2021-02-11 21:46:56 +13:00
Geoff Lankow cd0c335741 Bug 1691844 follow-up - Fix test to work with libical. rs=bustage-fix
--HG--
extra : rebase_source : 9056653a305795348c112aa662006e5e3e1602a4
2021-02-25 11:10:20 +13:00
Lasana Murray 77a876e480 Bug 1683444 - Move helper functions of browser_eventDialogEditButton.js into CalendarTestUtils. r=darktrojan DONTBUILD 2021-02-24 14:26: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 9d20c14d35 Bug 1689839 - Give browser_customMinimonthCount.js more time to finish. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D105364

--HG--
extra : moz-landing-system : lando
2021-02-18 07:02:08 +00:00
Geoff Lankow 8cf779c26f Bug 1692786 - Fix time out in browser_eventDialog.js. rs=bustage-fix
The accept button in commonDialog.xhtml doesn't seem to like synthesized events any more. Most likely due to bug 1685313.
2021-02-15 11:07:00 +13:00
Geoff Lankow 4fd292106f Bug 1691844 - Fix removal of events from views when a calendar becomes disabled. r=mkmelin
I made an erroneous change that stopped the events being removed from the month/multi-week view
but didn't notice because there was no test coverage. This fixes the change, performs the removal
by a different method altogether, and adds test coverage.

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

--HG--
extra : moz-landing-system : lando
2021-02-10 21:49:27 +00:00
Lasana Murray 6d252d10f7 Bug 1688708 - do not assume items are events in countOccurrences(). r=darktrojan 2021-02-06 12:21:34 +02:00
Geoff Lankow 4a4959bee0 Bug 1617887 - Stop using Mozmill components in ItemEditingHelpers.jsm r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D102379

--HG--
extra : moz-landing-system : lando
2021-02-03 09:31:57 +00: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
Geoff Lankow b2ed6b1f6d Bug 1690149 - Empty spare rows of calendar month view when they become hidden. r=mkmelin
This fixes the failing test in two wayS:
* Removing events created during the test that are no longer needed.
* When the month in view changes, clear out old events from the hidden row(s) at the bottom of the view.

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

--HG--
extra : amend_source : 78b038417aad8d7e1c3f7d63fdf42788ef71f231
2021-02-02 12:27:29 +02:00
Ben Campbell ef245cafd9 Bug 1682937 - Remove nsISimpleEnumerator use from calendar interfaces. r=darktrojan 2021-02-01 12:15:10 +02:00
Lasana Murray 5659823906 Bug 1679129 - Make minimonths fill available space in custom recurrence dialog. r=darktrojan 2021-01-30 12:14:54 +02:00
Geoff Lankow d4d2db2534 Bug 1655373 - Fix intermittent failure of browser_attendeesDialog.js. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D103011

--HG--
extra : amend_source : 19363180552a04007feba2babae4281664f4f67f
2021-01-29 12:49:21 +02:00
Geoff Lankow 1adcabbb8c Bug 1671301 - Enable E10S and make the tests pass. r=mkmelin
The aim of this patch is to have the tests run in E10S mode and not fail. Many tests have been disabled (because they fail) and will be addressed in separate patches.

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

--HG--
extra : moz-landing-system : lando
2021-01-20 00:06:04 +00:00
Geoff Lankow 0b9e961cd5 Bug 1684500 - Add the reminder menu list dynamically to the calendar item summary element r=lasana
The menu list is only used for invitations.

The existence of the list and its descendants considerably slows down the layout of the summary custom element.
That's not a problem when there's only one element, but in the ICS file import dialog there could be hundreds.

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

--HG--
extra : moz-landing-system : lando
2021-01-19 15:52:54 +00:00
Geoff Lankow a6cd650b1b Bug 1684500 - Improve the performance of the ICS file import dialog for large files r=lasana
With this patch we'll show a "loading…" message until everything is ready.

We'll also delay actual loading until the dialog has been displayed, so the user doesn't have to wait (what can be several seconds) for something to happen.

Finally we'll improve the performance of the item summary custom element by parsing its contents only once.

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

--HG--
extra : moz-landing-system : lando
2021-01-15 08:57:30 +00:00
Geoff Lankow 322ba004ab Bug 1684500 - Show import progress in the ICS file import dialog r=lasana
I've broken the UI into three panes for easier handling: the existing item selection UI, progress, and results.

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

--HG--
extra : moz-landing-system : lando
2021-01-15 08:58:53 +00:00
Geoff Lankow 58f039fb4f Bug 1684500 - Don't offer to import events into a disabled or read-only calendar r=lasana
Also adds the dot representing the calendar's colour to the UI. This matches the event editing dialog.

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

--HG--
extra : moz-landing-system : lando
2021-01-15 08:58:44 +00:00
Geoff Lankow 0e379035e0 Bug 1683060 - In ICS import dialog, sort events before displaying them. r=lasana
Differential Revision: https://phabricator.services.mozilla.com/D100541

--HG--
extra : rebase_source : 7b71a23269a3a50399ca50313457293c977ad7dd
extra : amend_source : 0439186914c6e6f4e33b0f6f049f1cc6494ffa2b
2020-12-20 22:57:29 +13:00
Geoff Lankow ba4569edaf Bug 1606543 - Try to fix browser_eventDialogModificationPrompt.js. r=mkmelin
A lot of the failures are caused by an event box somehow being in editing mode. Pressing delete in that case doesn't delete the event.

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

--HG--
extra : moz-landing-system : lando
2021-01-12 22:07:40 +00:00
Lasana Murray f44a41afdc Bug 1669803 - Restore the attachment dropdown in the event dialog. r=darktrojan 2020-12-17 17:16:41 -04: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 d2d1e5d5d8 Bug 1683901 - don't hardcode "Daily" in browser_icsAttachment.js since it will fail on beta/release. r=darktrojan 2021-01-02 12:40:31 +02: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
Geoff Lankow d676b5d8ad Bug 1617887 - Remove unused functions from mozmill's utils.jsm. r=mkmelin
I've managed to remove the uses of `getChromeWindow` and `getWindows` so that they can also be removed.

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

--HG--
extra : moz-landing-system : lando
2020-12-30 08:25:53 +00:00
Geoff Lankow e83dff912f Bug 1617887 - Remove unused code from mozmill's elementslib. r=mkmelin
This patch also:
* uses the name `elib` everywhere elementslib.jsm is imported, which should make future changes easier.
* updates the remaining elementslib types to ES classes, removing the dependency on utils.jsm.

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

--HG--
extra : moz-landing-system : lando
2020-12-30 08:24:09 +00:00
Magnus Melin d992e56d06 Bug 1572062 - Use html root element in messenger.xhtml and update styling to support html roots. r=Paenglab
See bug 1492582 for the corresponding Firfox bug.
2020-12-30 12:56:10 +02:00
Lasana Murray 49524f31b9 Bug 1681224 - Add missing parameter to invokeDragSession(). r=darktrojan
Port of bug 1641270.

--HG--
extra : rebase_source : f63871fb1e9c162d5232644207b86da03b548af3
extra : amend_source : 70e279f005c3e7d9e306fed351d8536388323f89
2020-12-17 12:20:39 -04: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
Khushil Mistry 25e0fa4923 Bug 1680044 - remove <deck> XUL element from calendar-tab-panels.inc.xhtml. r=aleca,darktrojan 2020-12-11 10:08:25 +02:00
Khushil Mistry da0561e362 Bug 1679802 - remove <deck> XUL element from calendar-event-dialog-recurrence.xhtml dialog. r=aleca,darktrojan 2020-12-10 12:10:08 +02:00
Khushil Mistry ce8042d7e6 Bug 1679853 - remove <deck> XUL element from calendar-minimonth.js. r=aleca,geoff 2020-12-10 20:03:20 +13:00
Khushil Mistry e9812f26f2 Bug 1679820 - remove <deck> XUL element from lightning-item-iframe.xhtml dialog. r=aleca,darktrojan 2020-12-08 12:56:58 +02:00
Geoff Lankow afb89c7338 Bug 1604369 - Add a pause in browser_calendarList.js to stop it failing. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D99016

--HG--
extra : moz-landing-system : lando
2020-12-08 09:57:45 +00: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
Geoff Lankow 3a737d6cb0 Bug 1666657 - Fix browser_eventDialogEditButton.js by waiting for events modifications to happen. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D98424

--HG--
extra : rebase_source : f76b2e88bc7c4c7e1937b99854fbb3bf80d9564f
extra : amend_source : a68e5186db5b7f3d476247ebec2ec50f275b93f6
2020-11-22 23:11:57 +13: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
Lasana Murray aba17be84f Bug 1673654 - Open events in calendar summary dialog for today pane and unifinder. r=darktrojan 2020-11-21 12:50:19 +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
Ping Chen e80b8b94ec Bug 352566 - Support opening webcal and webcals url. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D96159
2020-11-19 14:34:03 +02:00
Lasana Murray 909aa707ca Bug 1668478 - Remove Ctrl-Enter shortcut from new calendar event dialog. r=darktrojan
--HG--
extra : amend_source : bc0e9a7ff0444dd91c0f7806da75893289e7cc04
2020-10-22 16:30:05 -04:00
Ping Chen 523c266ffa Bug 357480 - Support opening ics file by double click. r=mkmelin
Combines D80576, D80577, D80578, D80579. Paul did all the hard work. I added calendar checkbox in systemIntegrationDialog.

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

--HG--
extra : rebase_source : ec7642c91ed11f9878699bdc0bc9764e97e5b907
extra : amend_source : fe873429605c4998c31b9077153d9135d2df4c36
2020-11-10 12:41:51 +02:00
Khushil Mistry 7cf487b2cc Bug 1670831 - Fix right preferences section not opening when search results are opened. r=aleca DONTBUILD 2020-11-07 10:30:47 +02:00
Rob Lemley 74c6535302 Bug 1672798 - Run black formatting on mozbuild and mozconfigure files. r=mkmelin
Bringing some sanity to our Python scripts.

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

--HG--
extra : rebase_source : 7eed46d79663fa1f261bd64d9bc1c83c4867bfc4
extra : histedit_source : b8b700c76ab2fee92eb426b5a5b69dc86376e60f
2020-10-30 14:28:33 -04:00
Magnus Melin 2bf26b15e9 Bug 1617887 - remove mozmill controller.waitThenClick(). r=khushil DONTBUILD 2020-11-02 12:44:51 +02:00
Lasana Murray 5cf638fd6f Bug 1666997 - Add CalendarTestUtils module for common calendar testing helpers. r=darktrojan
--HG--
extra : rebase_source : 5913f7204ba4e9d814f7000192839922104ef572
2020-10-19 16:06:42 -04:00
Magnus Melin 2a7e3c0c81 Bug 1617887 - remove MozMillController.assertText. r=khushil 2020-10-20 12:50:46 +03:00
Magnus Melin e9946c60c8 Bug 1617887 - remove MozMillController.assertNode. r=khushil 2020-10-20 12:50:41 +03:00
Magnus Melin 5ac0e0bba9 Bug 1617887 - remove MozMillController.assertValue. r=khushil 2020-10-20 12:50:37 +03:00
Magnus Melin bfa134e334 Bug 1617887 - remove MozMillController.assert. r=khushil 2020-10-20 12:50:33 +03:00
Magnus Melin 1650837585 Bug 1617887 - remove MozMillController.assertChecked and assertNotChecked and assertSelected. r=khushil 2020-10-20 12:50:28 +03:00
Magnus Melin 319ec7d5fd Bug 1617887 - remove MozMillController.assertJSProperty. r=khushil 2020-10-20 12:50:23 +03:00
Magnus Melin a41e036c67 Bug 1617887 - remove from mozmill controller: renove assertPropertyNotExist, assertDOMProperty, assertNotDOMProperty, assertProperty, assertNotJSProperty, assertImageLoaded, mouseMove, dragToElement, Tabs. r=khushil DONTBUILD 2020-10-18 13:58:36 +03:00
Magnus Melin 26dd62c35d Bug 1617887 - stop using controller keypress, use EventUtils.synthesizeKey instead. r=khushil
# controller.keypress(taskInput, "VK_RETURN", {}); -> EventUtils.synthesizeKey("VK_RETURN", { }
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -regex ".*\.\(js\|jsm\)$" -exec sed -i -E 's/(\S+).keypress\(([^,]+),\s*([^,]+),\s*(\{.*\})\)/\2.focus();\nEventUtils.synthesizeKey(\3,\4)/g' {} \;

# delete null.focus(); that came out of the above
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -regex ".*\.\(js\|jsm\)$" -exec sed -i -E '/null\.focus\(\);/d' {} \;

# mc.eid("oo).focus() -> document.getElementById(foo).focus()
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -regex ".*\.\(js\|jsm\)$" -exec sed -i -E 's/.*\.eid\(([^)]+)\)\.focus/document.getElementById(\1).focus/g' {} \;

# new elib.Elem(menubar).focus() -> document.getElementById(foo).focus()
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -regex ".*\.\(js\|jsm\)$" -exec sed -i -E 's/.*\elib\.Elem\(([^)]+)\)\.focus/document.getElementById(\1).focus/g' {} \;

 + manual fixing aftewards. In hinsight would have made better regexes...
2020-10-18 13:58:24 +03:00
Geoff Lankow 0e49b6efa9 Bug 1666657 - Attempt to fix test browser_eventDialogEditButton.js. rs=bustage-fix
--HG--
extra : rebase_source : 92835d58ee68f31735ad1c119915a9181e07e977
extra : amend_source : cf714cd3d14dfff195889c27daba7c939d2306cf
2020-10-14 11:41:27 +13:00
Geoff Lankow 9ca8fa0d4d Bug 1665839 - Remove mozmill.jsm. r=khushil324
Differential Revision: https://phabricator.services.mozilla.com/D90653

--HG--
extra : moz-landing-system : lando
2020-10-04 21:40:49 +00:00
Magnus Melin e952ea6460 Bug 1649295 - fix OSX test failures of comm/calendar/test/browser/timezones/browser_timezones.js. r=darktrojan 2020-10-01 13:46:59 +03:00
Lasana Murray 2a5dd93e3a Bug 1651783 - Add edit option to calendar item context menu. r=pmorris DONTBUILD 2020-09-24 12:47:17 +03:00
Magnus Melin 2d6c3d8c64 Bug 1649295 - fix browser_timezones.js test failures by making sure the timezone window is focused before clicking. r=darktrojan 2020-09-24 10:27:52 +03:00
Lasana Murray ed16c2cfd1 Bug 1651779: Show the reminder as read-only text when event is not an invitation. r=pmorris 2020-09-23 13:56:55 +03:00
Khushil Mistry 472225cef1 Bug 1663303 - Fix calendar new event window should require a title. r=pmorris DONTBUILD 2020-09-20 13:55:36 +03:00
Lasana Murray 35a9938f1a Bug 1647855 - Add tests for using event dialog edit button and menu. r=mkmelin 2020-09-17 11:09:59 +03: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
Alessandro Castellani bfdeb0c702 Bug 1621135 - Improve the UI of the Calendar sidebar. r=pmorris, ui-r=Paenglab 2020-09-10 12:22:06 +03:00
Khushil Mistry 27f6f32ae6 Bug 1659380 - Calendar New Event window should start with the title highlighted. r=pmorris DONTBUILD 2020-08-29 20:13:21 +03:00
Paul Morris 382bfa39f4 Bug 1659363 - Render HTML in calendar item descriptions. r=darktrojan
Google puts HTML tags in calendar event/task DESCRIPTION
properties, so where we display descriptions render them
as HTML rather than just showing the raw plain text.
This commit does this in these places:
- summary dialog (and ICS import dialog)
- invitation overlays in emails
- tooltips shown when mousing over an item.

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

Depends on D88365

--HG--
extra : rebase_source : e702f30846788ea1cc138b282253b59a6fc2f328
2020-08-28 17:57:48 +00:00
Paul Morris 878f37c58b Bug 306495 - Remove mozmill code from browser_basicFunctionality.js test. r=darktrojan
This test was failing on Windows for some reason, so I removed
the mozmill parts. It still fails on Windows so disable it for now.

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

Depends on D85620
2020-08-28 21:29:23 +00:00
Paul Morris 6ed05cc3a8 Bug 306495 - Fix the browser_calendarList.js mochitest. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D85620

Depends on D83567
2020-08-28 21:29:16 +00:00
Paul Morris 35e9080cb7 Bug 306495 - Implement a new calendar creation dialog. r=darktrojan
This is the main patch for this bug that Philipp wrote, with
various changes made to counter bit rot, update some parts,
and rework the UI in various ways.

For example WCAP calendars are no longer supported and the
gData provider is now in its own repo, so I have removed
these parts.

The bit rot changes include using HTML table instead of XUL grid,
de-XPCOM-ing components, updating module import syntax,
replacing calendar-list-tree (no longer exists) with a
richlistbox, using 'addEventListener' instead of
'ondialogaccept' attributes since the latter were not working,
updating things related to <dialog> now being a child of
<window>, etc.

UI changes include moving away from the tabs and only
prompting for a password if needed.

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

Depends on D78370

--HG--
rename : calendar/resources/content/calendarCreation.xhtml => calendar/base/content/dialogs/calendar-creation.xhtml
rename : calendar/base/themes/common/calendar-creation-wizard.css => calendar/base/themes/common/calendar-creation.css
2020-08-28 21:28:32 +00:00
Geoff Lankow 32c994c2c9 Bug 1652416 - Remove cal.generateClassQI and uses of cal.generateQI where no classInfo is present. r=Fallen
--HG--
extra : rebase_source : 51562471eec0f0f115c71f1504e982e92e834f52
2020-07-13 16:10:38 +12:00
Geoff Lankow 24e4f93abd Bug 1659873 - Fix even more timing issues in calendar tests with event dialogs. rs=bustage-fix DONTBUILD
--HG--
extra : rebase_source : 43b6a8b1440ca2ad779378273304c3e7ed4ed532
2020-08-19 17:46:20 +12:00
Geoff Lankow 743ba4b037 Bug 1659873 - Fix more timing issues in calendar tests with event dialogs. rs=bustage-fix
--HG--
extra : amend_source : be2521ade369557946ed0f336018d1aa631c12f0
extra : histedit_source : 7926a3d9125857596259b8bcb4f99e851e8d6759
2020-08-19 15:52:09 +12:00
Geoff Lankow adcce11447 Bug 1659873 - Fix timing issues in calendar tests with event dialogs. rs=bustage-fix
--HG--
extra : rebase_source : 4e05103b009191acada3d450cb5c1f994e9828d2
extra : amend_source : 592ba2fe26b37e9e633f5932e2fbac0f7c451cff
extra : histedit_source : 07bd4e1f04b21858746673c1f3a4fd41f8a776f2
2020-08-19 11:55:18 +12:00
Geoff Lankow 568e955cf2 Bug 1659598 - Port bug 1650795 - Update tests for changes in SubDialog.jsm. rs=bustage-fix
--HG--
extra : amend_source : 578096ba03d58b736f2e7fdc98f6c22961b6c573
2020-08-18 10:32:07 +12:00
Lasana Murray 879d82a4d8 Bug 1647855 - Provide a button menu for editing event occurrences. r=pmorris
Includes the patch to update tests that fail due to reccurrence dialog workflow change.
2020-08-14 12:12:23 +03:00
Lasana Murray 5ff3684185 Bug 1575195 - Add test to ensure opening event uses summary dialog. r=pmorris 2020-08-13 13:14:11 +03:00
Lasana Murray ef9eefa24c Bug 1575195 - Update tests that fail due to edit dialog change. r=pmorris 2020-08-13 13:13:57 +03:00
Geoff Lankow f59ea44dd5 Bug 1656875 follow-up - Fix a broken test. rs=bustage-fix a=me
--HG--
extra : amend_source : fc3e4e7df718ed61548629efbcfca0e0d25526f8
extra : histedit_source : 4e58dfb971569d05f524a5a4ac13f3843e84827d
2020-08-05 17:14:03 +12:00
Geoff Lankow 719c1af946 Bug 1633198 - Modify tests to handle removal of ParentProcessDocumentChannel pref in bug 1654922. rs=bustage-fix
--HG--
extra : rebase_source : c78d383beaee91715adc7415bbdfd0b0d5cb8235
extra : amend_source : a52534ecfdc9d35dca178e72a83a4627bac78c28
extra : histedit_source : 645a0a9bdd178c5f845e34c310e6f4246f3084e8
2020-04-29 15:38:56 +12:00
Philipp Kewisch 726398e336 Bug 1652885 - Dynamic registration and unregistration of calendar providers. r=pmorris
Differential Revision: https://phabricator.services.mozilla.com/D84961

--HG--
extra : moz-landing-system : lando
2020-07-31 13:55:46 +00:00
Alessandro Castellani d8dd202c6c Bug 1653118 - Port bug 1366973 - Rename security flags within nsILoadInfo to not contain '_DATA_'. rs=bustage-fix
--HG--
extra : amend_source : 5a49356a43141f3f622db2de96100ec8649fac50
2020-07-15 15:41:10 -07:00
Geoff Lankow 49f81bb7e1 Bug 1652057 follow-up - Fix broken test. rs=bustage-fix DONTBUILD
--HG--
extra : rebase_source : cd62ec3915e03c75292f5bf7b6fbd483b885193f
extra : amend_source : 5f572abd64fe7bf7b10dccb9ac8eefe4fe15870e
2020-07-15 11:11:35 +12:00
Geoff Lankow 0a60d34265 Bug 1652371 - Port bug 1649221 and bug 1649554. rs=bustage-fix CLOSED TREE
--HG--
extra : amend_source : cfc6361ee102cb0ee2e0c5b3497ec4a9b71688ca
2020-07-13 11:45:03 +12:00
Khushil Mistry 061a1e2435 Bug 1573678 - Implement the Preferences Search Field. r=aleca 2020-06-29 20:14:38 -04:00
Magnus Melin 535d2224a8 Bug 1624849 - Intermittent comm/calendar/test/browser/browser_taskDisplay.js | Correct number of tasks - Got X, expected Y. r=darktrojan 2020-06-26 13:33:24 +03:00
Geoff Lankow 34256868d4 Bug 1647962 - Fix test failures that appeared after updating test environment to Ubuntu 18.04. rs=bustage-fix
--HG--
extra : rebase_source : de8824ee1417457c88e9efc0d767019334ce45a1
extra : amend_source : f2056e8633900fb953f784d498259a6b9cc961a7
2020-06-24 13:56:30 +12:00
Geoff Lankow f27e8d93c7 Bug 1593711 - Test task filtering with repeating tasks. r=pmorris
--HG--
extra : rebase_source : 2be313a1708c76edb0d739abb4c2e6a5709a2044
extra : histedit_source : 616bb1ada2a573f95f1a4516b2ec56cdaac757d4
2020-06-17 17:47:53 +12:00
Geoff Lankow c693270c56 Bug 1624849 - Attempt to fix intermittent failures in browser_taskDisplay.js. rs=bustage-fix
--HG--
extra : rebase_source : 36d424ca3027b7a1db091327c82ad1feacd493d0
extra : amend_source : 772680b40dc39246f807782c8e07e347a58108d4
2020-06-17 20:35:37 +12:00
Geoff Lankow 913bbb0ffb Bug 1628889 - Try to fix preferences tests that fail to scroll when opening the preferences tab. r=mkmelin
--HG--
extra : rebase_source : 3d59353d282f89b72ae236a4015c49337db3aa7f
extra : amend_source : 9d9e5afa56552d6b98b0cfe0d1fd84d16dd30038
2020-04-15 20:38:19 +12:00
Geoff Lankow 2565c1a7b7 Bug 1643552 - Fix browser_attendeesDialog.js failing with libical. r=pmorris DONTBUILD
--HG--
extra : rebase_source : 07d9cfaf190f0a44bd374e62ba241d2e8a5f0c09
extra : amend_source : 2471d0e94bfc04b55614949106ae9dea007abd7d
2020-06-05 15:57:30 +12:00
Ping Chen 16013c244f Bug 1615985 - Collect number of calendars with types and readonly status. r=mkmelin,pmorris,darktrojan DONTBUILD 2020-06-08 13:31:08 +03:00
Geoff Lankow 822e07def0 Backed out two changesets (bug 1615985) for breaking calendar tests. rs=backout
Backed out changeset d287cf040cba
Backed out changeset 6602b6ca210f

--HG--
extra : histedit_source : a39c5f5f067b8a0a8bee48681f68ae8f8038187e%2C74b62d7a24c2516f032e239129453f7d9ce253ad
2020-06-08 14:52:26 +12:00
Magnus Melin e8cc4c6395 Bug 1615985 - followup to lint 6602b6ca210fe75a9e65d19acc80635b287a52fe. rs=eslint DONTBUILD
--HG--
extra : amend_source : 0fb4b5c5301c6352531acbe6982052a68705c4ab
2020-06-05 14:53:26 +03:00
Ping Chen c72cb53cba Bug 1615985 - Collect number of calendars with types and readonly status. r=mkmelin,pmorris 2020-06-05 13:56:56 +03:00
Paul Morris a1004a8cbb Bug 1642635 - Let text wrap in item summary table and improve alignment. r=darktrojan
For lengthy content like dates with timezones we want the content
to wrap, not disappear on the right side of dialogs. Removing the
HTML input elements allows us to do that.

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

--HG--
extra : moz-landing-system : lando
2020-06-03 13:07:17 +00:00
Geoff Lankow 90c4a3f8a0 Bug 1639763 - Rewrite the attendees dialog using modern code. r=pmorris
--HG--
extra : rebase_source : b5f067afa86f57fbb623143e7d3a4ce5fde28bfe
extra : histedit_source : f9bb56dda46c6b64478377ddc4769b572e60b654
2020-02-28 21:53:43 +13:00
Geoff Lankow bb36951261 Bug 1642282 - Register a calendar before running browser_categoryColors.js. rs=bustage-fix
--HG--
extra : histedit_source : 9dd832630cbed2ccff4b5a29c2c212fed571c6c4
2020-06-02 11:13:26 +12:00
Paul Morris d25d5974ae Bug 1631902 - Use the new file import dialog for all calendar file imports. r=darktrojan DONTBUILD
Namely start using it when the user chooses "Import..." from the
"Events and Tasks" menu, and similar UI for importing files.
This gives the user a preview of the items to be imported, lets
them only import some of the items, and gives confirmation that
the import succeeded.

--HG--
extra : rebase_source : d27abbb85fb0f81d510e47b74d6193b33c2003c2
extra : amend_source : eba39646269ed42187f80326ececd6c5619535e3
2020-05-23 22:19:38 -04:00
Paul Morris d18f158f38 Bug 1637133 - Refactor calendar summary dialog to use a custom element. r=darktrojan
Move the part of the dialog that displays a summary of a calendar
item into a custom element so it can be reused more than once
in a given scope/dialog/ window. This will be soon be used to
show summaries of multiple events in the ICS file import dialog.
Update the code to support multiple event summaries in a given
scope.

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

--HG--
extra : moz-landing-system : lando
2020-05-20 14:11:19 +00:00
Philipp Kewisch 41733433ed Bug 1634912 - de-xpcom calendar datetime formatter. r=pmorris
Differential Revision: https://phabricator.services.mozilla.com/D73560

--HG--
rename : calendar/base/src/CalDateTimeFormatter.jsm => calendar/base/modules/utils/calDateTimeFormatter.jsm
extra : rebase_source : 0177d70b86d0d000792fa60a45a7869cc4a32ea3
extra : amend_source : a9945da0486e0fe72378d3955dca084f8aba1e53
2020-05-16 14:17:45 +03:00
Geoff Lankow 42ab267330 Bug 1637141 - Send an empty response to callers of getFreeBusyIntervals to indicate there are no providers. r=pmorris
--HG--
extra : rebase_source : d92a3c7e3f8d4e07614c7faf5d7161c1a18640fa
extra : amend_source : 9a033bf0d68c3f5a51bab86d19a8cd21c5ecdaf1
2020-05-12 14:49:44 +12:00