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

3825 Коммитов

Автор SHA1 Сообщение Дата
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
Richard Marti 2229b87eb4 Bug 1671459 - More clean-up/unifying for the toolbarbutton-1. r=aleca 2020-10-16 13:36:29 +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
Lasana Murray ca7b25363e Bug 1651790 - Remove references to unsed job object in calendar dialogs. r=darktrojan 2020-10-12 13:54:31 +03:00
Geoff Lankow d23c2943ea Bug 1669658 - Increase the maximum SQLite cache size for storage calendars. r=Fallen
Increases the maximum cache size to 10 MiB per connection. In practice this is unlikely to be reached except for very large calendars.

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

--HG--
extra : moz-landing-system : lando
2020-10-10 22:07:15 +00:00
Richard Marti e38bb9c688 Bug 1669542 - Unify the .toolbarbutton-1 styling. r=aleca 2020-10-08 13:56:24 +03:00
Geoff Lankow b29de2dab6 Bug 736243 - Show category colours in the category selection menulist. r=aleca
Adds a colour for each selected category. When no categories are selected, it looks just like an ordinary menulist.
When one category is selected, the colour blob lines up with that in the calendar selection menulist.

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

--HG--
extra : moz-landing-system : lando
2020-10-05 18:23:01 +00:00
Magnus Melin 7120f4bafb Bug 1669190 - Port bug 1668884 to Thunderbird: Replace -moz-Field/-moz-FieldText with Field/FieldText across the field. r=Paenglab
-moz-Field -> Field
-moz-field -> Field
-moz-FieldText -> FieldText
-moz-fieldtext -> FieldText


# -moz-Field -> Field and -moz-field -> Field
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -not -path "*suite/*" -regex ".*\.\(css\|html\|xhtml\)$" -exec sed -i -E 's/-moz-Field\b/Field/ig' {} \;

# -moz-FieldText -> FieldText and -moz-fieldtext -> FieldText
find . -type f -not -path "*.hg/*" -not -path "third_party/*" -not -path "*suite/*" -regex ".*\.\(css\|html\|xhtml\)$" -exec sed -i -E 's/-moz-FieldText\b/FieldText/ig' {} \;
2020-10-05 23:20:48 +03:00
Geoff Lankow 43f5ac1d6e Bug 1667324 - Record the session ID used to discover calendars, and use it to find the saved password. r=Fallen
Differential Revision: https://phabricator.services.mozilla.com/D91396

--HG--
extra : rebase_source : 26d2a3224632e70b46aea6b7ce107bf34eabd262
extra : amend_source : 85e33f62bc9029f2adccbeb886b8c1dcc25a559c
2020-09-25 17:17:04 +12: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
Geoff Lankow c0902daf23 Bug 1667556 - Revert removal of changeMode() call in calendar start-up. r=mkmelin DONTBUILD
It turns out this call IS needed.

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

--HG--
extra : rebase_source : 93e5319f193c74ab0282b73fc4b4b7610f83d2cc
extra : amend_source : fcbfbc63c59a3379988f097946b4f629ad9974d5
extra : histedit_source : 3c3552953dc6aa52118e35cc63aa4e9c869a9762
2020-09-29 12:30:05 +13:00
Geoff Lankow c7a2c9a158 Bug 1667324 - Pre-fill the username field of the Google OAuth dialog. r=mkmelin
This isn't strictly bug 1667324, but I have filled in this field unnecessarily so many times while fixing it.

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

--HG--
extra : rebase_source : cec0fb7892e90f2c85ca74ebaf9cc63722363cf6
extra : histedit_source : a2770b153816ededb1aece08abbd3e2933a3dfad
2020-09-25 20:46:36 +12:00
Geoff Lankow c272f66167 Bug 1667648 follow-up - Fix bad CSS selector. rs=bustage-fix DONTBUILD
Oops.

--HG--
extra : amend_source : c6054448ed11320fe8ff60ff9fd72ed22d28be62
2020-09-28 23:05:21 +13:00
Geoff Lankow 6cd873d0c7 Bug 736243 - Show calendar colours in the calendar selection menulist. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D91402

--HG--
extra : moz-landing-system : lando
2020-09-28 09:17:37 +00:00
Geoff Lankow 46a5296d8c Bug 1667648 - Copy auto-complete drop-down styles into event attendees dialog. r=Paenglab
We should figure out how to make this widget self-contained as Firefox does, but for now I just want to fix the bug with a simple patch that can be uplifted.

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

--HG--
extra : moz-landing-system : lando
2020-09-28 09:17:21 +00:00
Paul Morris fe42493264 Bug 1658032 - Reduce calls to `getItems` for disabled calendars. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D91090

--HG--
extra : moz-landing-system : lando
2020-09-25 05:15:26 +00: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
Richard Marti 421c8e4ca4 Bug 1666553 - Port bug 1631202: Convert all uses of :-moz-any to :is. r=aleca DONTBUILD 2020-09-23 13:58:43 +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
Paul Morris dbc75697cb Bug 1665821 - Use template strings for SQL formatting in CalStorageCalendar.jsm. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D90646

--HG--
extra : moz-landing-system : lando
2020-09-22 22:42:18 +00:00
Paul Morris 0bb67a1f86 Bug 1663399 - Fix detecting and setting up ICS calendars. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D90462

--HG--
extra : moz-landing-system : lando
2020-09-22 22:41:43 +00:00
Paul Morris dfaf650cd6 Bug 1656782 - Prevent loading calendar more than once in a given window. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D90472
2020-09-22 02:34:15 +00:00
Geoff Lankow 4818c6215a Bug 1665831 - Fix two calendar UI start-up errors. r=pmorris
Differential Revision: https://phabricator.services.mozilla.com/D90650

--HG--
extra : moz-landing-system : lando
2020-09-18 14:14:26 +00: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
Kai Engert d01d39b7d2 Bug 1664016 - Avoid exception "self.mWindow is null" in calAuthUtils. r=pmorris
Differential Revision: https://phabricator.services.mozilla.com/D89646
2020-09-09 20:29:06 +02:00
Richard Marti 5633912b5d Bug 1664042 - Port bug 1426269: Filter full-line comments and empty lines from prefs files. r=mkmelin 2020-09-10 12:22:20 +03: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
Geoff Lankow 8cf41c519a Bug 1662942 - Port bug 1661030 - Refactor SubDialog and TabDialogBox to support passing multiple window arguments. r=aleca DONTBUILD
Port of https://hg.mozilla.org/mozilla-central/rev/9a10517ec1001aa642d7e7fc4135ed9fb53661ee.

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

--HG--
extra : rebase_source : b7abaecc517f01d7626ab5f9cc7c900dcb1e3374
extra : amend_source : 11388f9784123cf7e6a18f229ba03b84961ea20d
2020-09-03 14:42:32 +12: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 5743a6b439 Bug 306495 - Convert `Autodetect` module to `cal.provider.detection`. r=darktrojan
And rename from "autodetect" to "detect" or "detection" everywhere.

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

Depends on D82231

--HG--
rename : calendar/base/modules/calAutodetect.jsm => calendar/base/modules/utils/calProviderDetectionUtils.jsm
extra : rebase_source : dd270115140cba75410782f705ae03a715340651
2020-08-28 21:28:53 +00:00
Paul Morris c1aa833056 Bug 306495 - Improve error handling in calendar detection code. r=darktrojan,Fallen
Differential Revision: https://phabricator.services.mozilla.com/D82231

Depends on D78371

--HG--
extra : rebase_source : 17c453d596a2dddf3e41d4e1001818bd5dd3894f
2020-08-28 21:28:39 +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 0f1a60a97c Bug 306495 - Improve provider preference handling for calendar detection. r=Fallen
Differential Revision: https://phabricator.services.mozilla.com/D83567

Depends on D81005
2020-08-28 21:29:10 +00:00
Paul Morris 4cdbccf3be Bug 306495 - Make the calendar creation dialog more extensible. r=Fallen
To allow for add-ons that want to add their own UI to this
dialog for particular calendar types (e.g. birthdays).

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

Depends on D78371
2020-08-28 21:29:00 +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
Paul Morris 9e1b90a9f1 Bug 306495 - Move openLocalCalendar out of calendar-creation.js. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D78370

Depends on D78369
2020-08-28 21:27:51 +00:00