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

3878 Коммитов

Автор SHA1 Сообщение Дата
Martin Giger ea05927888 Bug 1792869 - Convert XPCOMUtils imports to esm in mailnews/. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159063

--HG--
extra : rebase_source : 332a690910fc8c17ac702d3af4e3693faede08e0
extra : amend_source : cd0bb3cabc7d2322bec1024b82f5fd89b5fe6899
2022-10-12 21:41:55 +11:00
Magnus Melin 669f54f619 Bug 1675814 - Remove global/locale/global.dtd from Thunderbird code. rs=bustage-fix
--HG--
extra : rebase_source : a76077598abba372a77745d00cd3a0a5e09e540f
2022-10-08 20:47:06 +11:00
Magnus Melin 6a82a078ba Bug 1793903 - account central should default to setting up carddav address books. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158737

--HG--
extra : moz-landing-system : lando
2022-10-07 23:56:23 +00:00
Richard Marti f5215bed28 Bug 1793100 - Make dialogs and window keep stretching after bug 1665476. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158788

--HG--
extra : amend_source : 72c3b7382dfa3eddc6e3be1d0d125b4a36f13291
2022-10-07 21:51:02 +11:00
Ping Chen 329b6919c2 Bug 1762690 - Fix test_stopMovingToLocalFolder.js for macOS by normalizing folder path. r=mkmelin
Introduce MsgProtocolInfo.sys.mjs to reuse code between nntp/pop3/imap protocol info modules.

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

--HG--
extra : moz-landing-system : lando
2022-10-06 08:26:29 +00:00
Alessandro Castellani e1244786b1 Bug 1792612 - Always open LDAP and Local address book dialogs as SubDialogs. r=thunderbird-reviewers,freaktechnik
When possible, we redirect to the AB tab and let that code handle the dialogs.
Otherwise we open a subdialog from where we are.

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

--HG--
extra : moz-landing-system : lando
2022-10-05 20:08:55 +00:00
Ben Campbell f5d7560958 Bug 1793313 - Fix bad end-of-message detection when saving news messages offline. r=mkmelin
The problem was that NntpClient was handling escaping the "." message
termination, but that nsNewsFolder::NotifyDownloadedLine() was scanning for
"." lines to finish messages. So the folder would screw up when a message
body contained a lone "." line.

The changes in detail:
- Adds notifyDownloadBegin()/notifyDownloadEnd() calls to nsIMsgNewsFolder.
- In NntpClient.jsm:
  - Now calls notifyDownloadBegin()/notifyDownloadEnd() to denote message
    boundaries.
  - No longer sends a "." final line to the folder.
  - Tries to call notifyDownloadEnd() with an error code if an error occurs.
- adds an status param to nsMsgDBFolder::EndNewOfflineMessage(), and a code
  path to clean up upon errors. News folder now uses this to handle rolling
  back if an error occurs, but IMAP still relies on magic (checking the size
  of the message written so far).
- nsNewsFolder::NotifyDownloadedLine() no longer looks for a lone "." to
  denote the end of a message. The relevant code was split out into
  NotifyDownloadBegin() and NotifyDownloadEnd().
- Added some comments to try and clarify the offline message writing vars in
  nsMsgDBFolder.

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

--HG--
extra : absorb_source : 14534b426ccbe4239cb916c35c057ed46f3f6a4e
2022-10-03 08:26:21 +00:00
Martin Giger 7404ae8c2f Bug 1793275 - Convert all imports of chat frontend to esm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158447

Depends on D158446

--HG--
extra : histedit_source : e125b1b5e31f6c18c5c2ba7326bab3175aecca84
2022-10-01 12:27:32 +00:00
Geoff Lankow 80b65ba867 Bug 1778447 - Replace hacked-together Address Book strings with new strings. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D151230

--HG--
extra : rebase_source : e7bd6160584c2c62d9c6f74c88a7ce0712f29dca
extra : amend_source : 3ae45fb443cc1abb975011c24395d0be6fda350c
2022-08-19 16:39:18 +12:00
Geoff Lankow a15a0ee158 Bug 1791459 - Convert more test setup functions to add_setup. rs=me
--HG--
extra : rebase_source : 4f7b0df4d57b69d1883330dab60b07f726505b89
2022-10-03 11:12:44 +13:00
Micah Ilbery 43e32a9af7 Bug 1792884 - Replace icons with larger full color versions in Activity Manager and Dialogs. r=aleca,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D158366

--HG--
extra : moz-landing-system : lando
2022-09-30 22:01:25 +00:00
Rob Lemley c098c97425 Bug 1792817 - Port bug 1792365: Migrate some toolkit module imports to ESM. r=mkmelin
../mach tb-esmify --upstream-imports calendar --prefix=toolkit/
../mach tb-esmify --upstream-imports chat --prefix=toolkit/
../mach tb-esmify --upstream-imports mail --prefix=toolkit/
../mach tb-esmify --upstream-imports mailnews --prefix=toolkit/

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

--HG--
extra : amend_source : e4e2791bd957bf16ed1907589c3c18ad5f0ec618
2022-09-30 20:44:14 +10:00
Ping Chen 66839e617b Bug 1792675 - Prevent blocking main process for too long in LineReader.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158387

--HG--
extra : histedit_source : d1344bb06ec28f64e264eb6ab8ebbdec5cc48415
2022-09-30 02:04:58 +00:00
Geoff Lankow 18db68ab9d Bug 1792438 - Remove uses of nsIModule from comm-central. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158232

--HG--
extra : rebase_source : 809384796a203e3a60281e2d41f2eed46bd2b9a3
extra : histedit_source : b03893044eb4ee87352bfbd77e047039dae2bdec
2022-09-28 12:54:12 +13:00
Geoff Lankow e9369d8196 Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-09-22 16:14:31 +12:00
Ping Chen 3377c17524 Bug 1791706 - Port 1790451 - use the concrete type nsITransportSecurityInfo for nsIChannel.securityInfo. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D157780

--HG--
extra : moz-landing-system : lando
2022-09-21 08:02:02 +00:00
Richard Marti 2efcbde875 Bug 1790799 - Remove the File menu item in the new App Menu. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D157340

--HG--
extra : amend_source : f648c2a32f0bf073186a84890da1922e0836574b
2022-09-15 20:39:22 +10:00
Magnus Melin fe1ba6eb80 Bug 1790177 - remove test for compact handling locked file streams since we can't simulate the locking anymore. r=#thunderbird-reviewers,darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D157181

--HG--
extra : amend_source : 9817ab3d2772c95936555b41bb5ee6394ac099ba
2022-09-13 04:01:27 +00:00
Ping Chen 32ed60f32e Bug 1789958 - Catch OpenFilterList error in MsgIncomingServer to prevent duplicate pop3 messages. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157178

--HG--
extra : amend_source : dd0137d558ef4efb0dd874d922d62bb19ba87e45
2022-09-13 20:25:54 +10:00
Ben Campbell 61ee6a3456 Bug 1786237 - Make sure listener passed to nsMessenger.DetachAttachmentsWOPrompts() triggers at correct time. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157065

Depends on D157064
2022-09-12 21:56:09 +00:00
Ben Campbell 35b6c9974a Bug 1786237 - Add a nsIUrlListener callback to the internal nsMessenger::DetachAttachments(). r=mkmelin
Also renames nsDelAttachListener to AttachmentDeleter. The old name is
technically accurate, but it derives from nsIUrlListener purely as an
implementation detail, rather than something a caller should need to be aware
of.

Differential Revision: https://phabricator.services.mozilla.com/D157064
2022-09-12 21:56:02 +00:00
Ben Campbell 116cf83442 Bug 1789785 - Move NS_IMPL_ISUPPORTS out of UrlListener.h to fix inevitable link errors. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D156776
2022-09-08 06:37:20 +00:00
Alessandro Castellani 3f54316f94 Bug 1789943 - Port Bug 1760580 Implement CancelWithReason methods. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D156906
2022-09-08 22:44:22 +00:00
Ben Campbell 874af419f6 Bug 1787963 - Copy message to msgStore as part of local->IMAP offline copy op. r=mkmelin
This patch addresses a couple of issues in nsImapMailFolder::CopyMessagesOffline(),
which handles copying messages to IMAP folders when in Offline mode:
1) It uses nsIMsgFolder.HasMessageOffline() to see if a full local copy of a
   message is available in the source folder. But the local folder implementation
   of HasMessagesOffline() would always return false. So copy operations from
   a local folder would never copy the full message across to the msgStore of
   the destination IMAP folder. This patch adds a local folder implementation
   of HasMessageOffline().
   (The roots of this issue is down to pointless differences between the way
   local folders and IMAP folder handle message storage on disk).
2) The CopyOfflineMsgBody() routine used to actually copy the message between
   the local folder msgStore and the IMAP folder msgStore would corrupt the
   message data. I've replaced it with a much simpler dumb copy.

The upshot is that after the offline copy, a full message will appear in the
destination IMAP folder. It's a required first step, but it doesn't fix the
rest of the bug - the moved message disappearing during the IMAP sync after going
back into online mode.

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

--HG--
extra : amend_source : ecd95fb9c75652659f2542b79a2f4ff5dbe5c863
2022-09-05 20:31:34 +10:00
Betterbird 77ab467353 Bug 1788901 - handle missing folder properties better. r=benc
Restore code from bug 1726319 and bug 1776280 removed in bug 1778888:

https://hg.mozilla.org/comm-central/rev/aba71e533211
https://hg.mozilla.org/comm-central/rev/a96377dc5770
https://hg.mozilla.org/comm-central/rev/2f49d0b8575f

See reasoning in code comments.
2022-09-02 18:36:37 +02:00
Magnus Melin 90bbe71c7a Bug 1788096 - Improve finding out if we're in compose. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D156077

--HG--
extra : rebase_source : 1f1d7b6a5ab2713c8e81754d0228d37a9123b8fa
extra : amend_source : f43fad2494ba30740db8fa443479b4bc6fb97d0d
2022-09-04 20:39:47 +10:00
Magnus Melin aa47ffdc23 Backed out changeset e2133ec74de6 (bug 1788096) for test failures. rs=backout
--HG--
extra : rebase_source : 8b346b222a5bfea928dd1ed64587366cfbe2283d
2022-09-04 16:09:44 +10:00
Magnus Melin 6b5bae57cf Bug 1788096 - correct nsMsgContentPolicy::ShouldAcceptContentForPotentialMsg parameter naming. r=kaie
--HG--
extra : rebase_source : 79ce4c58c526cca5c23ce1fdbb5c34954049e963
2022-09-03 20:34:57 +10:00
Magnus Melin 837812cde4 Bug 1788096 - handle null request contexts better. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D156042

--HG--
extra : rebase_source : c4e1dd4aaaa714b42c14f92ebcc0b02bb4fbc3ce
2022-09-03 20:33:41 +10:00
Magnus Melin 16deb143db Bug 1787481 - Fix crash in [@ nsMsgDBFolder::OnParentChanged]. r=benc
Make sure mDatabase isn't null.

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

--HG--
extra : rebase_source : 05b7d479d59d62cee65e9b56375d6b099681a4c2
extra : amend_source : 48dfe64fc4e8575248d46bcd889750fc72b9cb08
2022-08-29 20:42:26 +10:00
Ping Chen 05769e8fe1 Bug 1786920 - Show hostname in pop3 password dialog, prevent showing multiple auth dialogs. r=mkmelin
The bug is server.hostname should be server.hostName.
Take the chance to refactor MsgIncomingServer and MailAuthenticator a bit to prevent showing multiple auth dialogs for the same server.

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

--HG--
extra : amend_source : 67039c16f44a4c3bb2062fd67b50c32b99e9d7b9
2022-08-25 20:43:19 +10:00
John Bieling 646ba07646 Bug 1644038 - Fix messageDisplay API, tabs API and messages API to properly handle external emails. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D148120

--HG--
extra : amend_source : a060617f34f94498ab264741e81d63afb772b8ea
2022-08-25 20:40:20 +10:00
Ping Chen a7bafb2391 Bug 1786655 - Use PascalCase for class names in Imapd.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D155442

--HG--
extra : rebase_source : bcc41a11e32b07b08bd360c27a453ca0eaf98a26
extra : amend_source : 8ec9673ee8ebd90cbc843c5407cead88f2d3af57
2022-08-24 20:26:33 +10:00
Magnus Melin e363861c94 Bug 1786218 - normalize directory file paths. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D155186
2022-08-23 05:40:47 +00:00
Ben Campbell 0ed3ffbbd7 Bug 1786237 - Tidy up leftover void* param in nsMessenger::SaveAttachment(). r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D155309
2022-08-23 02:04:46 +00:00
Geoff Lankow f1f2595cf0 Bug 1786662 - Port bug 1784098 - explore making securityInfo concrete in necko interfaces. r=rnons
Port of https://hg.mozilla.org/mozilla-central/rev/197147c8c1a4 and https://hg.mozilla.org/mozilla-central/rev/8fafb15791c6

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

--HG--
extra : moz-landing-system : lando
2022-08-24 02:09:31 +00:00
Magnus Melin 57dd0a24f1 Backed out changeset 5898888b1a2d (bug 1786218) for test failures. rs=backout DONTBUILD
--HG--
extra : amend_source : d98ffcfc39820b1070f74e706e469f06433b438b
2022-08-23 15:38:22 +10:00
Magnus Melin 22dc0e6f3b Bug 1786218 - normalize directory file paths. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D155186
2022-08-22 00:14:38 +00:00
Magnus Melin 5bb6de3dc2 Bug 1783831 - handle compose case. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D154842

--HG--
extra : rebase_source : 5e65580ac02275956108d2e10295db6a7142a2fb
2022-08-16 22:49:41 +10:00
Magnus Melin 70a558d75a Bug 1784313 - Fix remote content warning for imap messages and .eml messages. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D154623

--HG--
extra : rebase_source : e06f07820be52262db752f1148a28724d9051819
2022-08-18 09:34:48 +10:00
Geoff Lankow 59cac39ad6 Port bug 1784812 - JSONWriter refactoring and de-duplication. rs=bustage-fix
--HG--
extra : amend_source : 1f0439fd67c2d252448074ea88e4cab62c005f76
2022-08-18 11:15:22 +12:00
Richard Marti e03ba5df0c Bug 1784408 - Port bug 1784265: Drop support for flex attribute values other than 0 and 1. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D154507

--HG--
extra : amend_source : 583afa3a0897ea33aa8b412e668d8fd1217f4412
extra : absorb_source : b7a744136b24901688452dd74b7fc4c81602cf6f
2022-08-13 20:22:59 +10:00
Geoff Lankow 74f689138c Bug 1783770 - Convert some module imports to lazy imports. r=mkmelin
These modules don't need to be loaded with the module that imports them. Some don't need loading at all.

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

--HG--
extra : rebase_source : f5237f1d748397e2d74591755d509608352f57f1
extra : histedit_source : 18ecbb0b9e89caf6acbf7b049a87873bf672ef9a%2C4a1330d1e866d3f43ca5bf1cb67a0ce5cde2eedb
2022-08-08 20:55:45 +12:00
Magnus Melin cc1df22ede Bug 1745751 - Fix policy for about:blank. r=kaie
Depends on D154204

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

--HG--
extra : rebase_source : 204a5645ac7368b72ca3ae604d82f8950b1323ea
extra : amend_source : 9665cf731582bc2494dfcf6832a1ee18f31defcb
2022-08-11 20:29:00 +10:00
Kai Engert 9538aa7060 Bug 1783831 - Use requesting location for content blocking decision. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D154204

--HG--
extra : rebase_source : a74529ee918925397bfcece010fb24b36d43ad9f
extra : amend_source : d6b86d25c8d6b7e0124353ecfa2bec7f8c442404
2022-08-11 20:29:04 +10:00
Ben Campbell 2f84e25965 Bug 1692919 - Tidy away some leftover nsIMutableArray cruft. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D153946
2022-08-09 11:18:16 +00:00
Magnus Melin 9322d0b94e Bug 1773123 - Make sure the SMTP server list is always properly initialized. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D153916

--HG--
extra : rebase_source : 1ddf8d89a276294c0e7b455b01671abea925b501
extra : amend_source : 010ccd1a9359006fff97e5f69d2c01f6fc94a9ef
2022-08-09 20:34:23 +10:00
Geoff Lankow fbb4560547 Bug 1783770 - Stop loading mail notification modules at profile-after-change. r=mkmelin
These two modules are loaded at profile-after-change to add some listeners/observers. AFAICT, none of the things they are listening for will happen this early, so we can initialise them later.

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

--HG--
extra : moz-landing-system : lando
2022-08-09 04:40:22 +00:00
Geoff Lankow d6fc20777b Bug 1783308 - Enable building and packaging of Sync component. r=mkmelin
Once this lands, it should enable work on the Thunderbird Sync code without needing a full build.

Differential Revision: https://phabricator.services.mozilla.com/D153830
2022-08-07 22:25:43 +00:00
Rob Lemley 3b062b49f0 Backed out changeset 521d59a12f3c (bug 1783308) for breaking l10n repacks. rs=backout 2022-08-08 11:44:19 -04:00