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

988 Коммитов

Автор SHA1 Сообщение Дата
Magnus Melin 7216637180 Bug 1814893 - Clean up filters.sys.mjs. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D206042

--HG--
extra : rebase_source : 7f998a3d15ac3599023180b2a9ce7f56ead466d6
2024-04-03 12:56:48 +03:00
Magnus Melin 47f343d415 Bug 1814893 - clean up enigmailMsgComposeOverlay.js. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205704

--HG--
extra : rebase_source : 947af27609988adc37b536da5a52821916c1f363
2024-03-26 13:37:49 +02:00
Magnus Melin 5fbcf2b6d0 Bug 1814893 - clean up enigmailMsgHdrViewOverlay.js. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205703

--HG--
extra : rebase_source : a3e9e51f924e8bf2763eeab6ac34d2351a70c7a6
2024-03-25 14:59:40 +02:00
Magnus Melin fb73134d80 Bug 1814893 - clean up enigmailMessengerOverlay.js. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205702

--HG--
extra : rebase_source : d0658a76e9119518e17839712be33b276261c7b9
2024-04-04 11:13:58 +03: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
Magnus Melin dec62f3415 Bug 1801529 - Make decryption.sys.mjs pass for eslint-plugin-jsdoc. rs=me
--HG--
extra : rebase_source : 62ad8c386fa2631f0e6d3efa0c0954fa45ee2383
extra : amend_source : c2e606a64f8e920c7510e7f786b020c413521c12
2024-04-01 12:14:45 +03:00
Magnus Melin af8654ccb3 Bug 1814893 - clean up enigmailKeyManager.js. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205701

--HG--
extra : rebase_source : 13010de7e072bad8f4be7e5a61d3978418b06b1a
2024-03-25 14:58:38 +02:00
Magnus Melin ce28f02fab Bug 1814893 - clean up MimeTree.sys.mjs. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205700

--HG--
extra : rebase_source : a2f714ed655c5cefd1fc57a69bd847c3cdbe150d
2024-03-25 14:58:02 +02:00
Magnus Melin 73dbca0637 Bug 1814893 - Clean up PgpMimeHandler.sys.mjs. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205699

--HG--
extra : rebase_source : ee378654ea8d68c7553f09facacaab7fb6641574
2024-03-27 21:20:56 +02: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
Magnus Melin fb69c53dd8 Bug 1883846 - Rework/reinstate the GPGMELib debug output. r=kaie
Adding back debugging infor for GPGMELib.
This should not be using global console for debug info, if such info is warranted.
For error cases, we can log errors. To see debug only info, people should set `openpgp.loglevel` to `All`.

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

--HG--
extra : rebase_source : f5399a64a9b0bfc18a60e89f9e1faf51f9ea0410
extra : amend_source : f87ec4551da5615a96bce2a0b23548b4a15077fa
2024-03-23 14:46:04 +02:00
Kai Engert 01bdc364df Bug 1829881 - Disable support for permissive OpenPGP key import by default. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D203130

--HG--
extra : amend_source : 66b51bb617ea2286e627e7986f3f7a82d44ad48b
extra : absorb_source : bd65510ee86a513f96c08dfc4446a86c341d3ec6
2024-03-23 11:20:07 +02:00
Kai Engert 637e1e4b11 Bug 1861703 - Support viewing nested signed messages. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D192087

--HG--
extra : amend_source : 0fa4be4ca9b5f660376cc8d7f2fe2357b8fe2157
extra : absorb_source : 8779f1581ae59869dcbdf5dae035fe07333567ca
2024-03-23 11:19:47 +02:00
Rob Lemley 243f114c92 Bug 1887051 - Add missing argument to tryLoadGPGME(). r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D205464

--HG--
extra : amend_source : ebd4b00c4de8c2d79721619fdc4964ad3a0b6b4f
2024-03-23 11:19:11 +02: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 57edc3dbaf Bug 1886948 - Part 4: AutoFix for ./mail directory. r=mkmelin
Using D194522 for auto-fixing unused variables.

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

--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:05 +00:00
Kai Engert c911998f43 Bug 1886396 - Minimize false positive reporting of partial OpenPGP message. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D205196

--HG--
extra : moz-landing-system : lando
2024-03-21 22:02:51 +00: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
Magnus Melin 042ed8a5d5 Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/cryptoAPI/RNPCryptoAPI.sys.mjs. rs=me
--HG--
extra : amend_source : f67359f954e694dc1ad4a029c0834336fb58859b
2024-03-17 12:36:43 +02:00
Magnus Melin 6dc62f33af Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/filters.sys.mjs. rs=me
--HG--
extra : amend_source : aadcaa8cc0a06ac5059fa72a68aba3a9197f43cc
2024-03-16 12:36:50 +02:00
Magnus Melin 3e7c075b21 Bug 1824260 - esmify mail/. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D203760

--HG--
rename : mail/components/AppIdleManager.jsm => mail/components/AppIdleManager.sys.mjs
rename : mail/components/about-support/AboutSupportMac.jsm => mail/components/about-support/AboutSupportMac.sys.mjs
rename : mail/components/about-support/AboutSupportUnix.jsm => mail/components/about-support/AboutSupportUnix.sys.mjs
rename : mail/components/about-support/AboutSupportWin32.jsm => mail/components/about-support/AboutSupportWin32.sys.mjs
rename : mail/components/activity/modules/activityModules.jsm => mail/components/activity/modules/activityModules.sys.mjs
rename : mail/components/activity/modules/alertHook.jsm => mail/components/activity/modules/alertHook.sys.mjs
rename : mail/components/activity/modules/autosync.jsm => mail/components/activity/modules/autosync.sys.mjs
rename : mail/components/activity/modules/glodaIndexer.jsm => mail/components/activity/modules/glodaIndexer.sys.mjs
rename : mail/components/activity/modules/moveCopy.jsm => mail/components/activity/modules/moveCopy.sys.mjs
rename : mail/components/activity/modules/pop3Download.jsm => mail/components/activity/modules/pop3Download.sys.mjs
rename : mail/components/activity/modules/sendLater.jsm => mail/components/activity/modules/sendLater.sys.mjs
rename : mail/components/cloudfile/cloudFileAccounts.jsm => mail/components/cloudfile/cloudFileAccounts.sys.mjs
rename : mail/components/search/SearchIntegration.jsm => mail/components/search/SearchIntegration.sys.mjs
rename : mail/extensions/openpgp/content/BondOpenPGP.jsm => mail/extensions/openpgp/content/BondOpenPGP.sys.mjs
rename : mail/extensions/openpgp/content/modules/CollectedKeysDB.jsm => mail/extensions/openpgp/content/modules/CollectedKeysDB.sys.mjs
rename : mail/extensions/openpgp/content/modules/GPGME.jsm => mail/extensions/openpgp/content/modules/GPGME.sys.mjs
rename : mail/extensions/openpgp/content/modules/GPGMELib.jsm => mail/extensions/openpgp/content/modules/GPGMELib.sys.mjs
rename : mail/extensions/openpgp/content/modules/OpenPGPAlias.jsm => mail/extensions/openpgp/content/modules/OpenPGPAlias.sys.mjs
rename : mail/extensions/openpgp/content/modules/RNP.jsm => mail/extensions/openpgp/content/modules/RNP.sys.mjs
rename : mail/extensions/openpgp/content/modules/RNPLib.jsm => mail/extensions/openpgp/content/modules/RNPLib.sys.mjs
rename : mail/extensions/openpgp/content/modules/armor.jsm => mail/extensions/openpgp/content/modules/armor.sys.mjs
rename : mail/extensions/openpgp/content/modules/constants.jsm => mail/extensions/openpgp/content/modules/constants.sys.mjs
rename : mail/extensions/openpgp/content/modules/core.jsm => mail/extensions/openpgp/content/modules/core.sys.mjs
rename : mail/extensions/openpgp/content/modules/cryptoAPI.jsm => mail/extensions/openpgp/content/modules/cryptoAPI.sys.mjs
rename : mail/extensions/openpgp/content/modules/cryptoAPI/GnuPGCryptoAPI.jsm => mail/extensions/openpgp/content/modules/cryptoAPI/GnuPGCryptoAPI.sys.mjs
rename : mail/extensions/openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm => mail/extensions/openpgp/content/modules/cryptoAPI/RNPCryptoAPI.sys.mjs
rename : mail/extensions/openpgp/content/modules/data.jsm => mail/extensions/openpgp/content/modules/data.sys.mjs
rename : mail/extensions/openpgp/content/modules/decryption.jsm => mail/extensions/openpgp/content/modules/decryption.sys.mjs
rename : mail/extensions/openpgp/content/modules/dialog.jsm => mail/extensions/openpgp/content/modules/dialog.sys.mjs
rename : mail/extensions/openpgp/content/modules/encryption.jsm => mail/extensions/openpgp/content/modules/encryption.sys.mjs
rename : mail/extensions/openpgp/content/modules/filters.jsm => mail/extensions/openpgp/content/modules/filters.sys.mjs
rename : mail/extensions/openpgp/content/modules/filtersWrapper.jsm => mail/extensions/openpgp/content/modules/filtersWrapper.sys.mjs
rename : mail/extensions/openpgp/content/modules/fixExchangeMsg.jsm => mail/extensions/openpgp/content/modules/fixExchangeMsg.sys.mjs
rename : mail/extensions/openpgp/content/modules/funcs.jsm => mail/extensions/openpgp/content/modules/funcs.sys.mjs
rename : mail/extensions/openpgp/content/modules/key.jsm => mail/extensions/openpgp/content/modules/key.sys.mjs
rename : mail/extensions/openpgp/content/modules/keyLookupHelper.jsm => mail/extensions/openpgp/content/modules/keyLookupHelper.sys.mjs
rename : mail/extensions/openpgp/content/modules/keyObj.jsm => mail/extensions/openpgp/content/modules/keyObj.sys.mjs
rename : mail/extensions/openpgp/content/modules/keyRing.jsm => mail/extensions/openpgp/content/modules/keyRing.sys.mjs
rename : mail/extensions/openpgp/content/modules/keyserver.jsm => mail/extensions/openpgp/content/modules/keyserver.sys.mjs
rename : mail/extensions/openpgp/content/modules/keyserverUris.jsm => mail/extensions/openpgp/content/modules/keyserverUris.sys.mjs
rename : mail/extensions/openpgp/content/modules/log.jsm => mail/extensions/openpgp/content/modules/log.sys.mjs
rename : mail/extensions/openpgp/content/modules/masterpass.jsm => mail/extensions/openpgp/content/modules/masterpass.sys.mjs
rename : mail/extensions/openpgp/content/modules/mime.jsm => mail/extensions/openpgp/content/modules/mime.sys.mjs
rename : mail/extensions/openpgp/content/modules/mimeDecrypt.jsm => mail/extensions/openpgp/content/modules/mimeDecrypt.sys.mjs
rename : mail/extensions/openpgp/content/modules/mimeEncrypt.jsm => mail/extensions/openpgp/content/modules/mimeEncrypt.sys.mjs
rename : mail/extensions/openpgp/content/modules/mimeVerify.jsm => mail/extensions/openpgp/content/modules/mimeVerify.sys.mjs
rename : mail/extensions/openpgp/content/modules/msgRead.jsm => mail/extensions/openpgp/content/modules/msgRead.sys.mjs
rename : mail/extensions/openpgp/content/modules/persistentCrypto.jsm => mail/extensions/openpgp/content/modules/persistentCrypto.sys.mjs
rename : mail/extensions/openpgp/content/modules/singletons.jsm => mail/extensions/openpgp/content/modules/singletons.sys.mjs
rename : mail/extensions/openpgp/content/modules/sqliteDb.jsm => mail/extensions/openpgp/content/modules/sqliteDb.sys.mjs
rename : mail/extensions/openpgp/content/modules/streams.jsm => mail/extensions/openpgp/content/modules/streams.sys.mjs
rename : mail/extensions/openpgp/content/modules/trust.jsm => mail/extensions/openpgp/content/modules/trust.sys.mjs
rename : mail/extensions/openpgp/content/modules/uris.jsm => mail/extensions/openpgp/content/modules/uris.sys.mjs
rename : mail/extensions/openpgp/content/modules/windows.jsm => mail/extensions/openpgp/content/modules/windows.sys.mjs
rename : mail/extensions/openpgp/content/modules/wkdLookup.jsm => mail/extensions/openpgp/content/modules/wkdLookup.sys.mjs
rename : mail/extensions/openpgp/content/modules/zbase32.jsm => mail/extensions/openpgp/content/modules/zbase32.sys.mjs
rename : mail/modules/ConversationOpener.jsm => mail/modules/ConversationOpener.sys.mjs
rename : mail/modules/DBViewWrapper.jsm => mail/modules/DBViewWrapper.sys.mjs
rename : mail/modules/DisplayNameUtils.jsm => mail/modules/DisplayNameUtils.sys.mjs
rename : mail/modules/GlobalPopupNotifications.jsm => mail/modules/GlobalPopupNotifications.sys.mjs
rename : mail/modules/MailE10SUtils.jsm => mail/modules/MailE10SUtils.sys.mjs
rename : mail/modules/MailMigrator.jsm => mail/modules/MailMigrator.sys.mjs
rename : mail/modules/MailUsageTelemetry.jsm => mail/modules/MailUsageTelemetry.sys.mjs
rename : mail/modules/MailUtils.jsm => mail/modules/MailUtils.sys.mjs
rename : mail/modules/MailViewManager.jsm => mail/modules/MailViewManager.sys.mjs
rename : mail/modules/MessageArchiver.jsm => mail/modules/MessageArchiver.sys.mjs
rename : mail/modules/MsgHdrSyntheticView.jsm => mail/modules/MsgHdrSyntheticView.sys.mjs
rename : mail/modules/PhishingDetector.jsm => mail/modules/PhishingDetector.sys.mjs
rename : mail/modules/QuickFilterManager.jsm => mail/modules/QuickFilterManager.sys.mjs
rename : mail/modules/SearchSpec.jsm => mail/modules/SearchSpec.sys.mjs
rename : mail/modules/SessionStore.jsm => mail/modules/SessionStore.sys.mjs
rename : mail/modules/SessionStoreManager.jsm => mail/modules/SessionStoreManager.sys.mjs
rename : mail/modules/ShortcutsManager.jsm => mail/modules/ShortcutsManager.sys.mjs
rename : mail/modules/SummaryFrameManager.jsm => mail/modules/SummaryFrameManager.sys.mjs
rename : mail/modules/TBDistCustomizer.jsm => mail/modules/TBDistCustomizer.sys.mjs
rename : mail/modules/TabStateFlusher.jsm => mail/modules/TabStateFlusher.sys.mjs
rename : mail/modules/TagUtils.jsm => mail/modules/TagUtils.sys.mjs
rename : mail/modules/WindowsJumpLists.jsm => mail/modules/WindowsJumpLists.sys.mjs
rename : mail/test/browser/shared-modules/AccountManagerHelpers.jsm => mail/test/browser/shared-modules/AccountManagerHelpers.sys.mjs
rename : mail/test/browser/shared-modules/AddressBookHelpers.jsm => mail/test/browser/shared-modules/AddressBookHelpers.sys.mjs
rename : mail/test/browser/shared-modules/AttachmentHelpers.jsm => mail/test/browser/shared-modules/AttachmentHelpers.sys.mjs
rename : mail/test/browser/shared-modules/CloudfileHelpers.jsm => mail/test/browser/shared-modules/CloudfileHelpers.sys.mjs
rename : mail/test/browser/shared-modules/ComposeHelpers.jsm => mail/test/browser/shared-modules/ComposeHelpers.sys.mjs
rename : mail/test/browser/shared-modules/ContentTabHelpers.jsm => mail/test/browser/shared-modules/ContentTabHelpers.sys.mjs
rename : mail/test/browser/shared-modules/DOMHelpers.jsm => mail/test/browser/shared-modules/DOMHelpers.sys.mjs
rename : mail/test/browser/shared-modules/EventUtils.jsm => mail/test/browser/shared-modules/EventUtils.sys.mjs
rename : mail/test/browser/shared-modules/FolderDisplayHelpers.jsm => mail/test/browser/shared-modules/FolderDisplayHelpers.sys.mjs
rename : mail/test/browser/shared-modules/JunkHelpers.jsm => mail/test/browser/shared-modules/JunkHelpers.sys.mjs
rename : mail/test/browser/shared-modules/KeyboardHelpers.jsm => mail/test/browser/shared-modules/KeyboardHelpers.sys.mjs
rename : mail/test/browser/shared-modules/MouseEventHelpers.jsm => mail/test/browser/shared-modules/MouseEventHelpers.sys.mjs
rename : mail/test/browser/shared-modules/NNTPHelpers.jsm => mail/test/browser/shared-modules/NNTPHelpers.sys.mjs
rename : mail/test/browser/shared-modules/NewMailAccountHelpers.jsm => mail/test/browser/shared-modules/NewMailAccountHelpers.sys.mjs
rename : mail/test/browser/shared-modules/NotificationBoxHelpers.jsm => mail/test/browser/shared-modules/NotificationBoxHelpers.sys.mjs
rename : mail/test/browser/shared-modules/OpenPGPTestUtils.jsm => mail/test/browser/shared-modules/OpenPGPTestUtils.sys.mjs
rename : mail/test/browser/shared-modules/PrefTabHelpers.jsm => mail/test/browser/shared-modules/PrefTabHelpers.sys.mjs
rename : mail/test/browser/shared-modules/PromptHelpers.jsm => mail/test/browser/shared-modules/PromptHelpers.sys.mjs
rename : mail/test/browser/shared-modules/QuickFilterBarHelpers.jsm => mail/test/browser/shared-modules/QuickFilterBarHelpers.sys.mjs
rename : mail/test/browser/shared-modules/SearchWindowHelpers.jsm => mail/test/browser/shared-modules/SearchWindowHelpers.sys.mjs
rename : mail/test/browser/shared-modules/SubscribeWindowHelpers.jsm => mail/test/browser/shared-modules/SubscribeWindowHelpers.sys.mjs
rename : mail/test/browser/shared-modules/ViewHelpers.jsm => mail/test/browser/shared-modules/ViewHelpers.sys.mjs
rename : mail/test/browser/shared-modules/WindowHelpers.jsm => mail/test/browser/shared-modules/WindowHelpers.sys.mjs
extra : rebase_source : 029a50bec27e1a8f8baf7ba3c2d8aefb87fad6a0
extra : amend_source : cbd0d8007716867d0acdb8c325e197f8e03bf7a7
2024-03-09 15:15:16 +02:00
Magnus Melin aa7951fdc0 Bug 1883846 - Port bug 1883371 - Enable ESLint rule no-console on production code. r=aleca
Remove some of things that shoudn't really be logged.
Some usage were in try-catches that should not reasonably throw.
Upgraded many debug/logs to warn - when appropriate.

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

--HG--
extra : rebase_source : 73d8f0ba2ad7ebf0f82e71bed603f90e45dac0ce
extra : amend_source : 0824f75948689237cc7d49715a23603ce0f654a3
2024-03-07 11:51:32 +02:00
Kai Engert 9be1f74341 Bug 1875303 - Don't allow import of OpenPGP v5/v6 keys yet. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D203122

--HG--
extra : amend_source : de4ac43fd7248a5103acec14d2fcb16430b7678d
2024-03-05 21:10:33 -08:00
Kai Engert 72f6d67f48 Bug 1871726 - Add a test to ensure we refuse importing of OpenPGP v5 and v6. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D203129

--HG--
extra : amend_source : d8670dea1507f61335f622b2a94ce61016a17973
2024-03-05 12:24:05 +02:00
Steffano Utreras 4dd5f5d619 Bug 1788962 - Hide the 'Go Back' button when the Key Wizard is opened from inside the Key Manager. r=kaie DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D193970

--HG--
extra : rebase_source : 60e6dbdd23466260611274ddf7a3b051298433f5
extra : amend_source : a58e040af8b2dfced2588e309ffab5e1d729b3f5
2023-11-17 21:45:49 +00:00
Magnus Melin fd8d039db5 Bug 1741362 - Modernize compose-send-message and fix some documentation. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D203318

Depends on D203257

--HG--
extra : rebase_source : a6d7f20bd3a299e71337601c98c4c7a487b3a1cd
2024-03-02 13:22:07 +00:00
John Bieling 3022d41c86 Bug 1854684 - Remove inadequate performance optimization and add some minor improvements for the MimeTreeEmitter and the MimeTreeDecrypter. r=kaie
- removes inadequate performance optimizations in MimeTreeEmitter, wil
  be reworked later
- no longer detect for each part if it is encrypted, but just check if
  the message has at least one part that looks encrypted
- use private class members
- no longer expose the used MimeTreeDecrypter instance
- set decryptFailure also in pgpDecryptAttachment()
- add the name property to the MimeTreePart for attachments (to be
  compatible with MsgHeaderToMimeMessage and the ExtractMimeMsgEmitter)
- added the option to provide a callback function for
  getAttachmentName(), so the consumer can be independent of the base
  implementation

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

--HG--
extra : moz-landing-system : lando
2024-03-01 23:12:04 +00:00
Kai Engert 23d61cd294 Bug 1852565 - Allow exporting key revocation certificate from OpenPGP Key Manager. r=mkmelin
Minimal getLabel function contributed by Mossop, thank you!

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

--HG--
extra : moz-landing-system : lando
2024-02-29 22:01:43 +00:00
Geoff Lankow 090d60f96c Bug 1882701 - Port bug 1878401 - Always pass BrowsingContext to nsIFilePicker::Init. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D203092

--HG--
extra : rebase_source : 5878d116d8873025ba64fc47fbdbb149c5e4f3be
2024-02-29 12:03:40 +02:00
Kai Engert cab938b092 Bug 1882305 - Remove temp.openpgp.autoDecrypt and related code. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D202829

--HG--
extra : rebase_source : 49d82719df11e4288de7f457b64f517597590213
2024-02-28 07:36:57 +02:00
Magnus Melin 2e0cd2b03b Bug 1882129 - Port bug 1881266 - Enable ESLint recommended rules no-constant-condition and no-case-declarations, warning for existing failures. r=eslint
Differential Revision: https://phabricator.services.mozilla.com/D202792

--HG--
extra : rebase_source : 3f0f630e695d2c7a43b1619e14bcdc6b149d6e8f
extra : amend_source : 3fa45df6a944a9e32b3a6fbf058d65f71db03923
2024-02-27 12:56:36 +02:00
Kai Engert 646ffd8612 Bug 1865528 - Avoid unnecessary rewriting of pref mailnews.headers.extraAddonHeaders. r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D202574

--HG--
extra : moz-landing-system : lando
2024-02-26 17:32:15 +00:00
Kai Engert 2039c63c2a Bug 1881461 - Keep a reference to the temporarily used JS callback function. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D202559

--HG--
extra : rebase_source : 60ada76a0d93b513735a20c8977767512087074f
2024-02-23 11:02:51 +01:00
Martin Giger ff911384e3 Bug 1881745 - Convert all registered components from JSM to ESM. r=thunderbird-reviewers,ikey
Differential Revision: https://phabricator.services.mozilla.com/D202568

--HG--
rename : calendar/base/src/CalAlarm.jsm => calendar/base/src/CalAlarm.sys.mjs
rename : calendar/base/src/CalAlarmMonitor.jsm => calendar/base/src/CalAlarmMonitor.sys.mjs
rename : calendar/base/src/CalAlarmService.jsm => calendar/base/src/CalAlarmService.sys.mjs
rename : calendar/base/src/CalAttachment.jsm => calendar/base/src/CalAttachment.sys.mjs
rename : calendar/base/src/CalAttendee.jsm => calendar/base/src/CalAttendee.sys.mjs
rename : calendar/base/src/CalCalendarManager.jsm => calendar/base/src/CalCalendarManager.sys.mjs
rename : calendar/base/src/CalDateTime.jsm => calendar/base/src/CalDateTime.sys.mjs
rename : calendar/base/src/CalDefaultACLManager.jsm => calendar/base/src/CalDefaultACLManager.sys.mjs
rename : calendar/base/src/CalDeletedItems.jsm => calendar/base/src/CalDeletedItems.sys.mjs
rename : calendar/base/src/CalDuration.jsm => calendar/base/src/CalDuration.sys.mjs
rename : calendar/base/src/CalEvent.jsm => calendar/base/src/CalEvent.sys.mjs
rename : calendar/base/src/CalFreeBusyService.jsm => calendar/base/src/CalFreeBusyService.sys.mjs
rename : calendar/base/src/CalICSService.jsm => calendar/base/src/CalICSService.sys.mjs
rename : calendar/base/src/CalIcsParser.jsm => calendar/base/src/CalIcsParser.sys.mjs
rename : calendar/base/src/CalIcsSerializer.jsm => calendar/base/src/CalIcsSerializer.sys.mjs
rename : calendar/base/src/CalItipItem.jsm => calendar/base/src/CalItipItem.sys.mjs
rename : calendar/base/src/CalMimeConverter.jsm => calendar/base/src/CalMimeConverter.sys.mjs
rename : calendar/base/src/CalPeriod.jsm => calendar/base/src/CalPeriod.sys.mjs
rename : calendar/base/src/CalProtocolHandler.jsm => calendar/base/src/CalProtocolHandler.sys.mjs
rename : calendar/base/src/CalRecurrenceDate.jsm => calendar/base/src/CalRecurrenceDate.sys.mjs
rename : calendar/base/src/CalRecurrenceInfo.jsm => calendar/base/src/CalRecurrenceInfo.sys.mjs
rename : calendar/base/src/CalRecurrenceRule.jsm => calendar/base/src/CalRecurrenceRule.sys.mjs
rename : calendar/base/src/CalRelation.jsm => calendar/base/src/CalRelation.sys.mjs
rename : calendar/base/src/CalStartupService.jsm => calendar/base/src/CalStartupService.sys.mjs
rename : calendar/base/src/CalTimezoneService.jsm => calendar/base/src/CalTimezoneService.sys.mjs
rename : calendar/base/src/CalTodo.jsm => calendar/base/src/CalTodo.sys.mjs
rename : calendar/base/src/CalWeekInfoService.jsm => calendar/base/src/CalWeekInfoService.sys.mjs
rename : calendar/import-export/CalHtmlExport.jsm => calendar/import-export/CalHtmlExport.sys.mjs
rename : calendar/import-export/CalIcsImportExport.jsm => calendar/import-export/CalIcsImportExport.sys.mjs
rename : calendar/itip/CalItipEmailTransport.jsm => calendar/itip/CalItipEmailTransport.sys.mjs
rename : calendar/itip/CalItipProtocolHandler.jsm => calendar/itip/CalItipProtocolHandler.sys.mjs
rename : calendar/providers/caldav/CalDavCalendar.jsm => calendar/providers/caldav/CalDavCalendar.sys.mjs
rename : calendar/providers/composite/CalCompositeCalendar.jsm => calendar/providers/composite/CalCompositeCalendar.sys.mjs
rename : calendar/providers/memory/CalMemoryCalendar.jsm => calendar/providers/memory/CalMemoryCalendar.sys.mjs
rename : calendar/providers/storage/CalStorageCalendar.jsm => calendar/providers/storage/CalStorageCalendar.sys.mjs
rename : mail/components/AboutRedirector.jsm => mail/components/AboutRedirector.sys.mjs
rename : mail/components/MailGlue.jsm => mail/components/MailGlue.sys.mjs
rename : mail/components/StartupRecorder.jsm => mail/components/StartupRecorder.sys.mjs
rename : mail/components/activity/Activity.jsm => mail/components/activity/Activity.sys.mjs
rename : mail/components/activity/ActivityManager.jsm => mail/components/activity/ActivityManager.sys.mjs
rename : mail/components/activity/ActivityManagerUI.jsm => mail/components/activity/ActivityManagerUI.sys.mjs
rename : mail/components/devtools/devtools-loader.jsm => mail/components/devtools/devtools-loader.sys.mjs
rename : mail/components/migration/src/ThunderbirdProfileMigrator.jsm => mail/components/migration/src/ThunderbirdProfileMigrator.sys.mjs
rename : mail/components/prompts/PromptCollection.jsm => mail/components/prompts/PromptCollection.sys.mjs
rename : mail/extensions/am-e2e/AME2E.jsm => mail/extensions/am-e2e/AME2E.sys.mjs
rename : mailnews/addrbook/modules/AddrBookCard.jsm => mailnews/addrbook/modules/AddrBookCard.sys.mjs
rename : mailnews/addrbook/modules/AddrBookManager.jsm => mailnews/addrbook/modules/AddrBookManager.sys.mjs
rename : mailnews/addrbook/modules/CardDAVDirectory.jsm => mailnews/addrbook/modules/CardDAVDirectory.sys.mjs
rename : mailnews/addrbook/modules/LDAPConnection.jsm => mailnews/addrbook/modules/LDAPConnection.sys.mjs
rename : mailnews/addrbook/modules/LDAPDirectory.jsm => mailnews/addrbook/modules/LDAPDirectory.sys.mjs
rename : mailnews/addrbook/modules/LDAPDirectoryQuery.jsm => mailnews/addrbook/modules/LDAPDirectoryQuery.sys.mjs
rename : mailnews/addrbook/modules/LDAPOperation.jsm => mailnews/addrbook/modules/LDAPOperation.sys.mjs
rename : mailnews/addrbook/modules/LDAPProtocolHandler.jsm => mailnews/addrbook/modules/LDAPProtocolHandler.sys.mjs
rename : mailnews/addrbook/modules/LDAPReplicationService.jsm => mailnews/addrbook/modules/LDAPReplicationService.sys.mjs
rename : mailnews/addrbook/modules/LDAPService.jsm => mailnews/addrbook/modules/LDAPService.sys.mjs
rename : mailnews/addrbook/modules/LDAPSyncQuery.jsm => mailnews/addrbook/modules/LDAPSyncQuery.sys.mjs
rename : mailnews/addrbook/modules/LDAPURLParser.jsm => mailnews/addrbook/modules/LDAPURLParser.sys.mjs
rename : mailnews/addrbook/modules/SQLiteDirectory.jsm => mailnews/addrbook/modules/SQLiteDirectory.sys.mjs
rename : mailnews/addrbook/modules/VCardUtils.jsm => mailnews/addrbook/modules/VCardUtils.sys.mjs
rename : mailnews/addrbook/src/AbAutoCompleteMyDomain.jsm => mailnews/addrbook/src/AbAutoCompleteMyDomain.sys.mjs
rename : mailnews/addrbook/src/AbAutoCompleteSearch.jsm => mailnews/addrbook/src/AbAutoCompleteSearch.sys.mjs
rename : mailnews/addrbook/src/AbLDAPAttributeMap.jsm => mailnews/addrbook/src/AbLDAPAttributeMap.sys.mjs
rename : mailnews/addrbook/src/AbLDAPAutoCompleteSearch.jsm => mailnews/addrbook/src/AbLDAPAutoCompleteSearch.sys.mjs
rename : mailnews/base/src/FolderLookupService.jsm => mailnews/base/src/FolderLookupService.sys.mjs
rename : mailnews/base/src/MailNotificationManager.jsm => mailnews/base/src/MailNotificationManager.sys.mjs
rename : mailnews/base/src/MailNotificationService.jsm => mailnews/base/src/MailNotificationService.sys.mjs
rename : mailnews/base/src/MsgAsyncPrompter.jsm => mailnews/base/src/MsgAsyncPrompter.sys.mjs
rename : mailnews/base/src/OAuth2Module.jsm => mailnews/base/src/OAuth2Module.sys.mjs
rename : mailnews/compose/src/MailtoProtocolHandler.jsm => mailnews/compose/src/MailtoProtocolHandler.sys.mjs
rename : mailnews/compose/src/MessageSend.jsm => mailnews/compose/src/MessageSend.sys.mjs
rename : mailnews/compose/src/SMTPProtocolHandler.jsm => mailnews/compose/src/SMTPProtocolHandler.sys.mjs
rename : mailnews/compose/src/SmtpServer.jsm => mailnews/compose/src/SmtpServer.sys.mjs
rename : mailnews/compose/src/SmtpService.jsm => mailnews/compose/src/SmtpService.sys.mjs
rename : mailnews/db/gloda/components/GlodaAutoComplete.jsm => mailnews/db/gloda/components/GlodaAutoComplete.sys.mjs
rename : mailnews/db/gloda/components/MimeMessageEmitter.jsm => mailnews/db/gloda/components/MimeMessageEmitter.sys.mjs
rename : mailnews/extensions/mdn/MDNService.jsm => mailnews/extensions/mdn/MDNService.sys.mjs
rename : mailnews/extensions/newsblog/NewsBlog.jsm => mailnews/extensions/newsblog/NewsBlog.sys.mjs
rename : mailnews/extensions/offline-startup/OfflineStartup.jsm => mailnews/extensions/offline-startup/OfflineStartup.sys.mjs
rename : mailnews/imap/src/ImapModuleLoader.jsm => mailnews/imap/src/ImapModuleLoader.sys.mjs
rename : mailnews/import/src/SeamonkeyImport.jsm => mailnews/import/src/SeamonkeyImport.sys.mjs
rename : mailnews/import/src/ThunderbirdImport.jsm => mailnews/import/src/ThunderbirdImport.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/TestJaMsgProtocolInfoComponent.jsm => mailnews/jsaccount/test/unit/resources/TestJaMsgProtocolInfoComponent.sys.mjs
rename : mailnews/local/src/Pop3IncomingServer.jsm => mailnews/local/src/Pop3IncomingServer.sys.mjs
rename : mailnews/local/src/Pop3ProtocolHandler.jsm => mailnews/local/src/Pop3ProtocolHandler.sys.mjs
rename : mailnews/local/src/Pop3ProtocolInfo.jsm => mailnews/local/src/Pop3ProtocolInfo.sys.mjs
rename : mailnews/local/src/Pop3Service.jsm => mailnews/local/src/Pop3Service.sys.mjs
rename : mailnews/mime/src/MimeJSComponents.jsm => mailnews/mime/src/MimeJSComponents.sys.mjs
rename : mailnews/news/src/NewsAutoCompleteSearch.jsm => mailnews/news/src/NewsAutoCompleteSearch.sys.mjs
rename : mailnews/news/src/NntpIncomingServer.jsm => mailnews/news/src/NntpIncomingServer.sys.mjs
rename : mailnews/news/src/NntpMessageService.jsm => mailnews/news/src/NntpMessageService.sys.mjs
rename : mailnews/news/src/NntpProtocolHandler.jsm => mailnews/news/src/NntpProtocolHandler.sys.mjs
rename : mailnews/news/src/NntpProtocolInfo.jsm => mailnews/news/src/NntpProtocolInfo.sys.mjs
rename : mailnews/news/src/NntpService.jsm => mailnews/news/src/NntpService.sys.mjs
rename : mailnews/search/src/MsgTraitService.jsm => mailnews/search/src/MsgTraitService.sys.mjs
extra : moz-landing-system : lando
2024-02-23 12:50:48 +00:00
Magnus Melin 98389c259d Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/filtersWrapper.jsm. rs=me 2024-02-20 10:22:06 +02:00
Magnus Melin 3a5526e50d Bug 1880242 - refactor nsIMsgSMIMEHeaderSink. r=kaie,darktrojan
nsIMsgSMIMEHeaderSink has a bunch of methods not related to S/MIME, and there are also
methods that are only relevant for OpenPGP.
This mixup caused a lot of forwarding between unrelated sinks and was very confusing.

With this patch the different technologies are split up to have their own sinks.

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

--HG--
extra : rebase_source : 48afe112936a793ea5e9c446c55fac3c8cddac76
extra : amend_source : bb2112c93224c76432df65dbcbdd098fea9bff9b
2024-02-20 09:12:44 +02:00
Magnus Melin 2cd172ee7d Bug 1860977 - Don't set the subject on the wrong message. r=kaie
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1860977-dont-set-subject-on-wrong-message.patch
Some parts needed changing due to changed on trunk vs 115.

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

--HG--
extra : rebase_source : 3bf024ae22cd31468d51f0157be2019dddfe89e8
extra : amend_source : 9d0e68b62783c88fcf0cc5b1ab8be3c58c8dc26f
2024-02-20 09:12:23 +02:00
Magnus Melin c95acb8d8f Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/CollectedKeysDB.jsm. rs=me
--HG--
extra : amend_source : 344fc8373b80b66edbd077d34c2893799ca776db
2024-02-19 12:45:53 +02:00
Magnus Melin e98458728d Bug 1801529 - Fix jsdocs in mail/extensions/openpgp/content/modules/funcs.jsm. rs=me
--HG--
extra : amend_source : 0d6b2b6f21b5dacf820d5efd95fd7cdc4036d66b
2024-02-18 10:54:00 +02:00
Brendan Abolivier 5c7da046b4 Bug 1879822 - Fix the content-type and body formatting used to upload OpenPGP keys over HKP(S). r=thunderbird-reviewers,kaie
While investigating the original issue, I realised sending the correct content-type only lead to another error. With a bit of trial and error, I realised the cause was the value in the request body being surrounded by quotes.

I've also slightly improved error handling in accessHkpInternal.upload since during testing I hit an error which did not have an errorDetails field.

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

--HG--
extra : moz-landing-system : lando
2024-02-16 22:45:50 +00:00
Magnus Melin 1f956ae143 Bug 1801529 - Fix jsdocs for some parts of mail/extensions/openpgp/content/modules/. rs=me
--HG--
extra : rebase_source : 978a224df9f7a7a20d4fb278f35d70768b2bea54
2024-02-16 09:23:54 +02:00
Magnus Melin 7f8ae805b6 Bug 1879813 - Make EnigmailMimeDecrypt.displayStatus pass headerSink.modifyMessageHeaders parameter uri of correct type. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D201363

--HG--
extra : rebase_source : 63be8d8db33092cd559c1ee2ba40595cc56ec52d
extra : amend_source : d6fc0566aa7bd128050b7d78631db30757e1f0a0
2024-02-14 08:56:34 +02:00
Magnus Melin 42f9b4d15c Bug 1801529 - use/fix eslint-plugin-jsdoc for some files in mail/extensions/openpgp/content/modules/. rs=me 2024-02-09 14:28:05 +02:00
John Bieling 4bb84a0d18 Bug 1876008 - Introduce a MimeTreeEmitter base class. r=kaie
Our codebase uses many different jsmime emitters with similar code.
A base class others can derive from could be beneficial. This patch
moves the existing emitter used by mimeTree.sys.mjs into a class
which has a few more options and does size calculations, attachment
handling and encryption detection. If no options are set, there should
be no change in behavior.

I also rename mimeTree.sys.mjs to MimeTree.sys.mjs.

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

--HG--
rename : mail/extensions/openpgp/content/modules/mimeTree.sys.mjs => mail/extensions/openpgp/content/modules/MimeTree.sys.mjs
extra : moz-landing-system : lando
2024-02-06 07:20:31 +00:00
John Bieling 889a6429a2 Bug 1876008 - Rename input parameters of functions handling MimeTreeParts to mimeTreePart. r=kaie
This is an effort to increase readability of this module, by using
descriptive parameter names.

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

--HG--
extra : moz-landing-system : lando
2024-02-06 07:20:31 +00:00
John Bieling 986a90f1ce Bug 1876008 - Move stripHTMLFromArmoredBlocks() out of MimeTreeDecrypter class. r=kaie
This function is a utility function and does not need to be part of the
class.

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

--HG--
extra : moz-landing-system : lando
2024-02-06 07:20:30 +00:00
John Bieling ec5795f88d Bug 1876008 - Remove leftover functions from D199624. r=mkmelin,kaie
To make review of D199624 easier, code copied from one file to
another was not removed but commented. Removing it now.

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

--HG--
extra : moz-landing-system : lando
2024-02-06 07:20:30 +00:00
John Bieling 3a80bed30e Bug 1876008 - Move crypto functions related to MimeTree into a dedicated module. r=kaie
"MimeTree" is exclusively used for mime parts generated by jsmime
emitters. One of these emitters is used in `getMimeTree()`.
These mime parts look different from mime parts generates by libmime or
MsgHdrToMimeMsg. This patch defines the MimeTreePart type, to have
a clear identification when referencing mime parts.

The decryption functions used in `persistentCrypto.jsm` highly depend on
the shape and format of these MimeTreeParts. These decryption functions
are not limited to be used by `persistentCrypto.jsm`, but can decrypt
MimeTreeParts in general. This patch moves these decryption functions
out of `persistentCrypto.jsm` into a new dedicated module for handling
MimeTreeParts.

Follow ups:
 * To make review easy, I did not rename the parameters in
   `mimeTree.sys.mjs`. In a follow-up, I will rename `mime` or
   `mimePart` parameter names to `mineTreePart`.
 * I want to expose a `MimeTreeEmitter` base class, which can then be
   used by other consumers without having to duplicate so much code.

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

--HG--
rename : mail/extensions/openpgp/content/modules/persistentCrypto.jsm => mail/extensions/openpgp/content/modules/mimeTree.sys.mjs
extra : moz-landing-system : lando
2024-02-06 07:20:30 +00:00
Kai Engert d1706073dc Bug 1878053 - Set required content headers when creating decrypted copy of S/MIME message. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D200341

--HG--
extra : rebase_source : f9d72bdf72d55eb747d4275f940cabf491b4277b
2024-02-01 17:39:04 +01:00