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

10120 Коммитов

Автор SHA1 Сообщение Дата
Geoff Lankow afe300ed94 Bug 1892842 - Port bug 1892481: Improve build-time checking of noscript and builtinclass in xpidl. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D208258

--HG--
extra : amend_source : 1eaf1d3619e9eec795a9287bbd9338e5a95d98c9
2024-04-23 10:44:50 +12:00
welpy-cw 2a4cc1e80d Bug 1878047 - Fix notifying the front-end when deleting a collapsed group. r=mkmelin
When deleting a collapsed group in a view that is grouped by sort, it is necessary to prevent the
front-end from being notified twice to remove that row.

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

--HG--
extra : amend_source : 40b0eb24caadca6eb59a971500e860f40be7b2a6
2024-04-22 10:58:25 +01:00
Geoff Lankow af6b9ac74a Bug 1824264 - Update ical.js to ES6 version. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D205739

--HG--
extra : amend_source : 7500126b545d60f2fd1558bdf7e750fe0fbf333e
2024-04-22 10:57:29 +01:00
Kai Engert 50dab41981 Bug 1892223 - Enable ECDH encryption as covered by NSS_CMSRecipient_IsSupported from NSS version 3.100. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D207860

--HG--
extra : amend_source : d79873b0fb83c2e2038ca05780331a469fae84f4
2024-04-19 11:28:03 +01:00
Geoff Lankow cdfbddb1f7 Backed out changeset 7e83e0b67b38 (bug 1892223) for causing build failures.
--HG--
extra : amend_source : f8f38cfa39cadfb3678fd242e08fc92e4ad035da
2024-04-19 12:04:21 +12:00
Kai Engert eb6d76f457 Bug 1892223 - Enable ECDH encryption as covered by NSS_CMSRecipient_IsSupported from NSS version 3.100. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D207860

--HG--
extra : amend_source : 093b9eef129bbf6fb6c34377c87e4c0f5f6df927
2024-04-18 12:58:01 +00:00
Magnus Melin 6b9fe9d827 Bug 1891937 - Fix crash in [@ nsMsgDBFolder::AddMarkAllReadUndoAction ]. r=leftmostcat
nsMsgWindow::GetTransactionManager will just return the current state, and (almost) always NS_OK.

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

--HG--
extra : amend_source : 71155806e2ac9b8f03a314cc105b03de8f6129cc
2024-04-18 11:22:43 +01:00
Brendan Abolivier f45b0529f1 Bug 1890503 - EWS folder sync: test retrieving folder hierarchy on nsIMsgFolder::GetNewMessages. r=ikey,leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D207164

--HG--
extra : amend_source : e22b1e229c68d7ffe9a748ffe8f663076f972d36
2024-04-18 10:55:11 +01:00
Alessandro Castellani f0554b50ec Backed out changeset 4cafc3b1d83f (Bug 1862111) for causing process hang on shutdown. r=backout DONTBUILD 2024-04-17 15:02:38 -07:00
Brendan Abolivier 677e9ab6d1 Bug 1890503 - Add a mock EWS server for testing. r=ikey,leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D207163

--HG--
extra : amend_source : 783cb9e52c0e06992fa245c70792c4e28da80e82
2024-04-16 23:11:48 +01:00
Brendan Abolivier e775f1326c Bug 1889653 - Register a subfolder in memory before creating the storage for it. r=ikey,leftmostcat
For some folder types, nsIMsgFolder::GetSubFolders calls nsIMsgPluggableStore::DiscoverSubFolders, which might attempt to rectify its in-memory representation of the folder architecture if it finds storage for folders it hasn't already recorded. nsIMsgFolder::GetSubFolders is called by nsIMsgFolder::AddSubfolder (via nsIMsgFolder::GetChildWithURI), meaning that if, when creating the subfolder, we create the storage for it before registering it, we might end up in a situation where nsIMsgFolder::AddSubfolder tries to register it twice, and fails on the second attempt (because the subfolder already exists).

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

--HG--
extra : amend_source : 038a9b85529ee6b15f691e682d96f4ffcb81ed38
2024-04-16 23:11:24 +01:00
John Bieling 78e5dca01a Bug 1854779 - Support discovery of iCloud address books. r=darktrojan
I tend to officially sunset DAV-4-TbSync, and the only remaining
"feature" it supports which is not yet supported by Thunderbird is the
detection of iCloud calendars and address books.

Fixing iCloud CalDAV discovery is handled in D206253.

The reason CardDAV discovery currently fails is: iCloud returns a 207
response for `${url.origin}/.well-known/carddav`, but it does not
contain any useful information. The returned multi-response only
includes one entry, which has a 404 status. The actual good response is
retrievable from `${url.origin}`, but since we have a response already,
it is skipped.

This patch clears the response, if it has no useful information, and
that seems to be enough. One could of course also check for the 404 status
inside the multi-response. But I see no need for it. The code used in
this patch is already used a few lines earlier, probably to work around
a similar issue.

This patch has two unresolved issues (when it comes to iCloud):
- iCloud does not send a displayname and "card" is used. It should
  fall back to "contacts" or a similar name, if no displayname is found
- the original request was made to `https://icloud.com`, and the code
  is currently not smart enough to use the same provided password for
  the follow-up request to `https://p119-contacts.icloud.com` (in my
  case) and a second password prompt is shown.

I can provide iCloud access credentials.

With this patch, I can enter my Apple-ID as username using a dedicated
app password created for Thunderbird, and the server `icloud.com`, to
get my address book discovered and added.

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

--HG--
extra : moz-landing-system : lando
2024-04-15 07:47:50 +00:00
Magnus Melin 8362faae5b Bug 1887532 - Handle gracefully failed popstate.dat writes. r=gds,Chiaki
I added some IO error handling for writing to popstate.dat.
How the other reported errors hang together or not, I can't say. The client doesn't directly
interact with the the message db (mork) - but that is handled by the sink.

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

--HG--
extra : rebase_source : d0360f8b1d8e3d4256683e31ad52d6ca15e460db
2024-04-08 09:34:24 +00:00
Brendan Abolivier 2631550b83 Bug 1890503 - Prep: Organise EWS C++ and IDL sources in a way that is more consistent with the rest of mailnews. r=leftmostcat,ikey
The main motivation behind this is having a logical location for unit tests.

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

--HG--
rename : mailnews/protocols/ews/EwsClient.h => mailnews/protocols/ews/src/EwsClient.h
rename : mailnews/protocols/ews/EwsFolder.cpp => mailnews/protocols/ews/src/EwsFolder.cpp
rename : mailnews/protocols/ews/EwsFolder.h => mailnews/protocols/ews/src/EwsFolder.h
rename : mailnews/protocols/ews/EwsIncomingServer.cpp => mailnews/protocols/ews/src/EwsIncomingServer.cpp
rename : mailnews/protocols/ews/EwsIncomingServer.h => mailnews/protocols/ews/src/EwsIncomingServer.h
rename : mailnews/protocols/ews/EwsProtocolInfo.cpp => mailnews/protocols/ews/src/EwsProtocolInfo.cpp
rename : mailnews/protocols/ews/EwsProtocolInfo.h => mailnews/protocols/ews/src/EwsProtocolInfo.h
rename : mailnews/protocols/ews/EwsService.cpp => mailnews/protocols/ews/src/EwsService.cpp
rename : mailnews/protocols/ews/EwsService.h => mailnews/protocols/ews/src/EwsService.h
rename : mailnews/protocols/ews/EwsUrl.cpp => mailnews/protocols/ews/src/EwsUrl.cpp
rename : mailnews/protocols/ews/EwsUrl.h => mailnews/protocols/ews/src/EwsUrl.h
rename : mailnews/protocols/ews/IEwsClient.idl => mailnews/protocols/ews/src/IEwsClient.idl
rename : mailnews/protocols/ews/IEwsIncomingServer.idl => mailnews/protocols/ews/src/IEwsIncomingServer.idl
rename : mailnews/protocols/ews/components.conf => mailnews/protocols/ews/src/components.conf
rename : mailnews/protocols/ews/moz.build => mailnews/protocols/ews/src/moz.build
2024-04-10 15:05:27 +00:00
Ben Campbell e37d897862 Bug 1890453 - Add C++ shortcut URI accessor to nsIMsgFolder (and nsMsgDBFolder). r=mkmelin
There's a generic nsIMsgFolder::URI() which is implemented in terms of GetURI().
This will work on non nsMsgDBFolder-based folders, even if they are written in JS or rust or whatever.
Then there's also an inline nsMsgDBFolder::URI() which the compiler can optimise for when the concrete type is availible to it.

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

--HG--
extra : amend_source : b64406dfb6e624ae28b93587e3340b43bc976dd7
2024-04-09 01:23:20 +00:00
welpy-cw bdf2dd7419 Bug 1886132 - Restore and improve functionality to open 'news' URIs. r=mkmelin
- 'news' URIs are opened in a new tab or window depending on preference.
- Enable opening 'news' URIs that do not specify a host by using the first NNTP server found.
- Open newsgroups identified by a URI directly without opening an empty message window.

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

--HG--
extra : amend_source : 11c0122632fccbd62d8c2b83e6b603d06cf68745
2024-04-08 21:21:51 +03:00
welpy-cw b3bff4b17f Bug 1889990 - Fix crash in grouped-by-sort synthetic views. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D206795

--HG--
extra : amend_source : 39ac0b19603a0c8657abc1be11c76bb572bbda45
2024-04-08 13:55:52 +03:00
Ben Campbell 59d0ba3e05 Bug 1890135 - Fix folder compaction to not fail on zero-size mbox files. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D206852

--HG--
extra : amend_source : df6d2144250613c19487f9e8f15f79e7aff7804d
2024-04-08 10:02:36 +03:00
Ben Campbell e5ffe46b94 Bug 1887778 - Fix mismatched folder locking in nsMsgDBFolder StartNewOfflineMessage()/EndNewOfflineMessage(). r=darktrojan
test_offlineStoreLocking.js has also been tweaked because it depended upon the old behaviour and on some rather dubious timing.

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

--HG--
extra : amend_source : d90bc89be2d7db2bb7d4ba77c3bbff2fbb0d22dc
2024-04-07 13:14:09 +03:00
Ikey Doherty 5f4c0ebacd Bug 1889907 - Use explicit constructor for OAuthListener in EWS protocol. r=babolivier
Differential Revision: https://phabricator.services.mozilla.com/D206768

--HG--
extra : rebase_source : acd09a23cbc2309a9e45b2cfb32d06b6f176f295
2024-04-06 10:15:17 +03:00
welpy-cw 826992138a Bug 1887334 - Fix "Open Browser With Message-ID" in header pane. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D205515

--HG--
extra : rebase_source : 4ce203fb09d2f2ba2c81f94c68d55c1f32d07452
2024-04-06 10:12:43 +03:00
Martin Giger 15e56c1ccb Bug 1889895 - Convert all usages of bool in IDL files with boolean. rs=bustage-fix
--HG--
extra : absorb_source : 2753868132828058fd86f4ef927d285ae792feac
2024-04-05 12:06:39 +02:00
Sean Burke 9f51820bab Bug 1887991 - Add OAuth2 support to EWS connections. r=ikey,babolivier
Differential Revision: https://phabricator.services.mozilla.com/D205972

--HG--
extra : amend_source : 2592c5df1b4e1de40f913983e08cb427fefdbfb8
extra : absorb_source : 8a35566d46d53f885150013f55b4313daf4b8076
2024-04-05 11:48:05 +02:00
Magnus Melin 7e6e68e24a Bug 1888116 - Handle multi-message-id display when non-compliant header value. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D205826

--HG--
extra : amend_source : 35d61b858e0e709af9bce5669c8ecc91959edcb2
extra : absorb_source : c019f005a01419226d23da27da753f5aff15b053
2024-04-05 11:46:24 +02:00
Geoff Lankow 9e0a079c16 Bug 1889780 - Port bug 1887719: More consistently use UTF8String/nsCString for URLs. rs=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D206710

--HG--
extra : rebase_source : 8ecfad1311f5a54200db2ccb54fec7fb58efaa76
extra : amend_source : f5669845272590d1b963df38dd5cd97819a69368
2024-04-05 10:48:01 +13:00
Geoff Lankow b1ffae427d Bug 1851536 - Test the Address Book search window. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D206334

--HG--
extra : amend_source : 963df01e6be75355243795856275b68569ab2372
2024-04-04 09:53:59 +03:00
Geoff Lankow 6a7cb7b5ac Bug 1679711 follow-up - Fix getting an access token in CardDAVUtils.sys.mjs. rs=bustage-fix DONTBUILD 2024-04-03 12:22:48 +13:00
Brendan Abolivier 6099b5bc7d Bug 1679711 - Attempt OAuth2 against known providers with Exchange Autodiscover. r=ikey,leftmostcat
This patch does not implement Exchange's HTTP 401 Challenge described in bug 1679711, as more research is needed to figure out exactly how this can be done. Instead, it tries authenticating against known providers the "normal" way when possible, then using the resulting token against the Autodiscover endpoint. If it can't, then it tries falling back to Basic auth.

This patch does not support falling back to Basic auth if the Autodiscover endpoint responds with a 401 following an OAuth-authenticated request. This may be implemented in the future, but in the meantime being able to get an OAuth2 token but not being allowed to use it against the autodiscover endpoint should be unlikely enough that this is not an issue.

Differential Revision: https://phabricator.services.mozilla.com/D205762
2024-04-02 17:34:24 +00:00
Magnus Melin 9ed0cbdfcb Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC
Differential Revision: https://phabricator.services.mozilla.com/D205904

--HG--
extra : amend_source : 0a8813d457dd2512b0dc5d0706be13d491d322e7
2024-04-02 12:04:57 +02:00
Sean Burke 8f213b9e44 Bug 1860333 - Add support for EWS folder hierarchy sync. r=babolivier
Differential Revision: https://phabricator.services.mozilla.com/D202898

--HG--
extra : moz-landing-system : lando
2024-03-29 18:45:28 +00:00
Sean Burke 2dd60dc91d Bug 1888569 - Clean up unused headers from IMAP. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D206074

--HG--
extra : moz-landing-system : lando
2024-03-29 00:08:30 +00:00
John Bieling efd02ab3e8 Bug 1877390 - Reduce code duplication in about3pane.js and threadPane.js. r=aleca
In threadPane.js exists similar code as in about3pane.js, to convert the
sort type of the current sort column into a columnId.
This patch moves these functions as an additional getter into
DBViewWrapper.jsm.

To avoid circular dependencies, this patch moves OUTGOING_FOLDER_FLAGS
from DBViewWrapper.jsm to FolderUtils.jsm.

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

--HG--
extra : rebase_source : 1e47ef7b626915999d743915cd842d55fc3bb7d9
2024-03-27 09:05:51 +02:00
Geoff Lankow 532f34ab4e Bug 1888066 - Port bug 1839052: Remove NS_QuickSort from the tree. rs=bustage-fix 2024-03-27 20:10:46 +13:00
Magnus Melin 041dd7ff37 Bug 1824260 - Don't use mozmill in the name for the testing-common modules. r=darktrojan
Depends on D204769

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

--HG--
extra : rebase_source : 50e5dd28fd88e3f4dedea2377edfca4cea504ba8
extra : amend_source : 491028478c02b7e1140f5bf43559638b50c24fc9
2024-03-25 12:28:56 +02:00
Geoff Lankow 2d7276d75b No bug - Fix spelling of descendant in mailnews. rs=me 2024-03-25 13:56:22 +13:00
John Bieling f8b28cc1de Bug 1886948 - Part 6: Fix remaining lint issues. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D205463

--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:06 +00:00
John Bieling c6e7173d08 Bug 1886948 - Part 3: AutoFix for ./mailnews directory. r=mkmelin
Using D194522 for auto-fixing unused variables.

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

--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:04 +00:00
Micah Ilbery 991f3c6f88 Bug 1870376 - [Cards View] Show new icon on replies button if there is a new message in the thread. r=leftmostcat,sol
Differential Revision: https://phabricator.services.mozilla.com/D205264

--HG--
extra : amend_source : 4a97bd9560aa3be7fa87a4cc85285c171198607b
2024-03-22 09:09:16 +02:00
Magnus Melin bf0cc3ae17 Bug 1824260 - Update outdated .jsm references. r=freaktechnik
Update outdated .jsm references in the tree.

Depends on D204766

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

--HG--
extra : rebase_source : cdf8c1367702bb00c51a750cc712e156db65d371
extra : amend_source : 5f2256fc97ae8f3de2086ffbe99acde9fdef0473
2024-03-21 19:44:49 +02:00
Magnus Melin 2615cd2059 Bug 1824260 - remaining esmification of comm-central. r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D204766

--HG--
extra : rebase_source : b4dd77adbe10cdafdcc28bbe14a499a1423ab48d
extra : amend_source : 522c351546a787d91f9a43cddb0e1eee114a4d0f
2024-03-21 19:44:13 +02:00
Gene Smith 2f53ae0309 Bug 1880043 - IMAP download progress status and localization improvement. r=mkmelin
The changes are described in bug 1880043 comment 8 and comment 9.

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

--HG--
extra : amend_source : 94dbde277362898d46b88021533814aff6735f96
2024-03-20 12:16:54 +02:00
Geoff Lankow d87724bd37 Bug 1886328 - Port bug 1356686 change to nsIStreamConverter.idl. r=leftmostcat
Port of c58710d55a

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

--HG--
extra : moz-landing-system : lando
2024-03-20 06:12:28 +00:00
Magnus Melin 0b54d6e4f2 Bug 1882282 - Make mailbox url.folder return null if it doesn't exist. r=john.bieling,freaktechnik
Modernizer browser_junkCommands.js which led me to find the bug.
Test cleanup will remove the folder, and url processing finishes later...
IMAP and NNTP urls also just return null.

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

--HG--
extra : rebase_source : f38742af7a3d970a96eca0b2d5fa9ba606c82ced
extra : amend_source : d4f089e32ca10c39e652462420bc45d042b8e274
2024-03-19 13:42:37 +02:00
Gene Smith 4025b8e5dc Bug 1883529 - Avoid AUTH GSSAPI error for SMTP due to line too long. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D204687

--HG--
extra : amend_source : 2cf2bea684c230b9de318bf0bcc7a0fbdbc9b764
2024-03-19 11:49:57 +02:00
ISHIKAWA, Chiaki 7e60bfd71e Bug 1885812 - Release semaphore in early error return path. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D204866

--HG--
extra : rebase_source : 7d4f8349f5eb64ce81ee8de50437ca0ffb3a2b5f
2024-03-18 12:58:38 +13:00
Geoff Lankow 42631dfa91 Bug 1851536 - Add tests for CardDAV address books with DNS discovery and OAuth2 authentication. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D204160

--HG--
extra : rebase_source : 1df4de11abb4d44efc602b17cd4fee4b88cb7bf0
extra : amend_source : 87cc944c605655ef96543e9c323c2b04fe9c4efe
2024-03-07 19:30:11 +13:00
Yury Ivanovich 6b8878b273 Bug 1885285 - Switch some APIs in nsISmtpService to AUTF8String and remove needless decodeURIComponent/encodeURIComponent. r=mkmelin
Nowhere was stated that the string parameters of nsISmtpService.sendMailMessage() had to be URI encoded.

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

--HG--
extra : amend_source : cc962000c8b45f3a2ee46fdda61e1153a15730ab
2024-03-15 10:52:14 -07:00
Yury Ivanovich 0864b3b9cd Bug 1885285 - Fix expectation of test_sendMailAddressIDN.js. r=mkmelin
The fix in https://hg.mozilla.org/comm-central/rev/8aa30c8f177d#l1.12 wasn't correct.
An empty recipient shouldn't be forced to NS_ERROR_ILLEGAL_LOCALPART with a missing error insert in
There are non-ASCII characters in the local part of the recipient address %s and your server does not support SMTPUTF8.

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

--HG--
extra : amend_source : 88609ae6978b9d2c00a16cb76f58da5d27a7d2ee
2024-03-15 10:51:41 -07:00
Ben Campbell 79d00cfd4b No bug - Add error-handling notes to comments on nsIMsgPluggableStore.asyncScan(). rs=me 2024-03-15 11:37:46 +13:00
Silvia Bonavista i Serrat 1785481ef8 Bug 1873950 - Delete pid-NNNN directory for temporary files on exit. r=mkmelin
Bonus fix: Fix `nsMsgCreateTempFile()` so it cleans up after itself and remove second copy of the function.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1873950-delete-temp-pid-NNNN.patch

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

--HG--
extra : amend_source : 35186513a22cef43fd8f294f45491559caac8df1
2024-03-14 12:37:28 +02:00