John Bieling
345ca4b608
Bug 1606575 - Add parseMailboxString() to messengerUtilities API. r=mkmelin
...
Currently add-on developers try to do manual parsing, which is error
prone. It is true that they could load a third party library, but
exposing this makes it so much easier.
Differential Revision: https://phabricator.services.mozilla.com/D204490
--HG--
extra : amend_source : eac1c6ffe0efa666752eab2ef26119738056515f
2024-03-14 13:11:27 -07:00
John Bieling
789cfb6a5a
Bug 1606575 - Add messengerUtilities API including a formatFileSize() method. r=mkmelin
...
This API will be populated with utility methods useful for extension
developers. The main goal is to be consistent across add-ons and not
forcing add-ons to re-invent methods which already exist in Thunderbird.
If Thunderbrid decides to change the output of these functions, all
add-ons using them will automatically be adjusted as well.
Differential Revision: https://phabricator.services.mozilla.com/D204473
--HG--
extra : amend_source : cfb3e0c93ed9e20f65bb026ca5566d834d5fd253
2024-03-14 13:10:59 -07:00
John Bieling
d5de4d4aa3
Bug 1885279 - Fix timing issue in messageDisplayAction API. r=mkmelin
...
I am not 100% sure why this is popping up now, but it is not a recent
regression, but a real bug. The code in question was introduced in Bug 1803255.
We are currently not awaiting the call to `super.updateWindow()`.
This patch adds the same mechanism which is already used in
`ExtensionToolbarButtons.sys.mjs`:
https://searchfox.org/comm-central/rev/a0bc09a88c7e060ba8cafb62a40dc0f36153d8d2/mail/components/extensions/ExtensionToolbarButtons.sys.mjs#647-653
Differential Revision: https://phabricator.services.mozilla.com/D204584
--HG--
extra : amend_source : 86945d83b709d56067be8295b0d08ee24fb49a3f
2024-03-14 12:38:39 +02:00
Magnus Melin
10629c8c87
Bug 1885274 - Port bug 1882577 - Make nsISearchEngine.getIconURL an async function. r=john.bieling
...
Differential Revision: https://phabricator.services.mozilla.com/D204585
--HG--
extra : rebase_source : f0294a7a2dbf107d605cd3f1190f904bb09d4127
extra : amend_source : 3a7c423c3df21d6cd18067c6292eef4194cf584f
2024-03-14 12:37:50 +02: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
Thunderbird Updatebot
29a08f36eb
Bug 1878375 - Synchronize vendored Rust libraries with mozilla-central. r=mkmelin
...
mozilla-central: 1f3b4df016ac965dd3a2c97cb547c495364fdeef
comm-central: bb6e2e36560f8a7237817ec9e65fbb594cce008b
Differential Revision: https://phabricator.services.mozilla.com/D204576
--HG--
extra : amend_source : 25231763c65c1648511acbb3bc16feb0488c28f1
2024-03-14 12:36:27 +02:00
Daniel Darnell
f9ebb47196
Bug 1869063 - Add Rust linter rustfmt. r=rjl
...
Differential Revision: https://phabricator.services.mozilla.com/D201964
--HG--
extra : moz-landing-system : lando
2024-03-14 07:12:00 +00:00
Daniel Darnell
a0bc09a88c
Backed out changeset f60f6e442a7f (bug 1869063) for causing build bustage. r=backout
2024-03-13 17:02:20 -07:00
Martin Giger
7c6a3be160
Bug 1884932 - Add creating a story docs for storybook. r=heather,aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D204360
--HG--
extra : amend_source : 390232cbcddb1b2a5373a053133e6ad7016393a2
2024-03-13 16:44:54 -07:00
Martin Giger
3f40b93f3a
Bug 1884932 - Add storybook node modules and update esmified module paths to ignored files for jsdoc generation. r=rjl
...
Differential Revision: https://phabricator.services.mozilla.com/D204359
--HG--
extra : amend_source : ded7affa91f4c935827a8357fd54cfcecc345955
2024-03-13 16:44:08 -07:00
Magnus Melin
121fb449f8
Bug 1884868 - adjust testCancelWaitForRedirect(). r=freaktechnik
...
It looks like the close Cancellation/rejection happens earlier now.
Differential Revision: https://phabricator.services.mozilla.com/D204477
--HG--
extra : amend_source : 846bd45d642f7c8b938a9a5961181c7440449073
2024-03-13 16:43:02 -07:00
John Bieling
f8b6a31800
Bug 1882725 - Fix wrong coordinates used in editor.contentDocument.elementFromPoint(). r=aleca
...
This fixes a regression introduced 3 years ago in Bug 1719985. If the
compose window has lots of text and is scrolled to the bottom, the
context menu will not have all entries and the spellchecker throws:
```
can't access property "ownerGlobal", element is null
```
According to MDN, `elementFromPoint()` needs coordinates relative to
the view port, but it currently gets coordinates relative to the document.
Differential Revision: https://phabricator.services.mozilla.com/D204518
--HG--
extra : amend_source : 12a0ec6a91b72d62d598d8f292dafdae2b50e3cb
2024-03-13 16:42:19 -07:00
Daniel Darnell
a23ca95c36
Bug 1869063 - Add Rust linter rustfmt. r=rjl
...
Differential Revision: https://phabricator.services.mozilla.com/D201964
--HG--
extra : amend_source : 0e4e7f480d00e9005213c78ede0094393625a79e
2024-03-13 16:41:45 -07:00
John Bieling
485b7368e8
Bug 1758469 - Fix compose window not being fully locked. r=freaktechnik
...
This is a continuation of the effort started in D202887. Here we add
tests to verify the composer elements being correctly locked and
unlocked again.
The following still incorrect cases are fixed:
- the spelling button is now correctly locked
- action buttons are now correctly locked
Differential Revision: https://phabricator.services.mozilla.com/D203940
--HG--
extra : amend_source : fce46a5adc2aa8535e1f0df6477749fb1145ef3d
2024-03-13 16:40:49 -07:00
Magnus Melin
3870735022
Bug 1878172 - followup, fix linting. rs=eslint DONTBUILD
...
--HG--
extra : amend_source : 349990aebbaf0240a12ec7335c0bcd44c9c5ceb8
2024-03-13 19:32:30 +02:00
ISHIKAWA, Chiaki
ff6d968fc6
Bug 1884433 - add default in a switch statement to suppress GCC warning, r=BenC
...
/NEW-SSD/NREF-COMM-CENTRAL/mozilla/comm/mailnews/base/src/MboxMsgInputStream.cpp: In member function ‘MboxParser::span MboxParser::handle(span)’:
/NEW-SSD/NREF-COMM-CENTRAL/mozilla/comm/mailnews/base/src/MboxMsgInputStream.cpp:245:3: error: control reaches end of non-void function [-Werror=return-type]
245 | }
| ^
cc1plus: all warnings being treated as errors
Differential Revision: https://phabricator.services.mozilla.com/D204082
--HG--
extra : amend_source : 56c1a1e92c4fe4a074531363d4c7fcb419a2994b
2024-03-13 12:16:39 +02:00
Thunderbird Updatebot
0fdc0fb367
Bug 1878375 - Synchronize vendored Rust libraries with mozilla-central. r=mkmelin
...
mozilla-central: 4f7a5399c1ccd3d580631d65356e681ad7e28d74
comm-central: 09531f18debf98cd372cef108506220e3574bf02
Differential Revision: https://phabricator.services.mozilla.com/D204481
--HG--
extra : amend_source : 3d84fe5bc6411477d7fa82610abb418a8746b069
2024-03-13 12:15:31 +02:00
Geoff Lankow
38cd72660f
Bug 1878172 - Test getting messages with an expired or bad OAuth access token. r=mkmelin
...
Includes fixing the POP3 client code to show a notification on failure.
Differential revision: https://phabricator.services.mozilla.com/D204159
2024-03-13 12:12:53 +02:00
John Bieling
d7396a2406
Bug 1844911 - Fix CSS for checked menuitem on MacOS. r=aleca,micahilbery
...
MacOS seems to use the `checked` attribute instead of the `selected` attribute for
menu items. This patch extends the existing CSS rule to act on both. It also loads
the `icons.css` and `colors.css` into the extension popup.
Differential Revision: https://phabricator.services.mozilla.com/D204363
--HG--
extra : amend_source : 807d0cc14bf8faad696f5d8c4c1af672d23f8ca9
2024-03-13 12:01:20 +02:00
Magnus Melin
dc8169d83f
Bug 512385 - Follow-up, fix typo in comments. rs=me
2024-03-13 12:00:03 +02:00
John Bieling
30b6436531
Bug 1840072 - Add test to verify focus is properly returned after browser action popup closed. r=mkmelin
...
This adds a test which was forgotton in Bug 1545932 and has been
regressed by Supernova changes. The regression itself has already been
fixed elsewhere in the meantime.
Differential Revision: https://phabricator.services.mozilla.com/D204148
--HG--
extra : amend_source : 8ec2a5b501da08fdc94a79c09daaecaaee056c3a
2024-03-13 12:45:51 +13:00
ISHIKAWA, Chiaki
fa2e9cfc22
Bug 1882971 Make the file stream used by Pop3 a buffered stream. r=benc
...
Differential Revision: https://phabricator.services.mozilla.com/D203238
--HG--
extra : amend_source : 003a1fa5a9ef2a9de07bd79d2003ba924bd9a088
2024-03-13 12:44:33 +13:00
Richard Marti
6bca59d88a
Bug 1884492 - Port bug 1879963: Avoid pinning confirmation popup for Windows 10 > 10.0.19045.3996. r=rjl
...
Differential Revision: https://phabricator.services.mozilla.com/D204136
--HG--
extra : amend_source : 7d004135fd1f09e49cd91366f8b869c79921d4a6
2024-03-13 12:43:39 +13:00
Magnus Melin
4fcffc5327
Bug 1874450 - clicking an attendee deletes it from view (but not from invite). r=leftmostcat
...
Revert most of bug 1741566.
This also fixes bug 1876019.
Differential Revision: https://phabricator.services.mozilla.com/D199343
--HG--
extra : amend_source : c17b018e41a9260116b4b91c1c08f3c0f627ebf0
2024-03-13 12:42:55 +13:00
Magnus Melin
7067a10505
Bug 512385 - Display Archived-At header field as a link, and add Message Permalink option to List-Id menu. r=john.bieling,vineet
...
E.g. Topicbox list mails have this...
Differential Revision: https://phabricator.services.mozilla.com/D203908
--HG--
extra : amend_source : 38d1fc1377090660feedef946138ac6cf3815678
2024-03-13 12:41:41 +13:00
John Bieling
3bab370cdd
Bug 1884513 - Another attempt to fix intermittent fails in theme test. r=mkmelin
...
Instead of trying to check the new value after the theme has been
applied (which does not always work), we now simply wait *until* the
value has changed.
Differential Revision: https://phabricator.services.mozilla.com/D204341
--HG--
extra : amend_source : d54269c9a514acfb7114ff22138daeb01ae10166
2024-03-13 12:39:43 +13:00
Magnus Melin
1ae693417e
Bug 1824260 - esmify mailnews/. r=freaktechnik
...
Differential Revision: https://phabricator.services.mozilla.com/D204279
--HG--
rename : mailnews/addrbook/modules/AddrBookDirectory.jsm => mailnews/addrbook/modules/AddrBookDirectory.sys.mjs
rename : mailnews/addrbook/modules/AddrBookMailingList.jsm => mailnews/addrbook/modules/AddrBookMailingList.sys.mjs
rename : mailnews/addrbook/modules/AddrBookUtils.jsm => mailnews/addrbook/modules/AddrBookUtils.sys.mjs
rename : mailnews/addrbook/modules/CardDAVUtils.jsm => mailnews/addrbook/modules/CardDAVUtils.sys.mjs
rename : mailnews/addrbook/modules/LDAPClient.jsm => mailnews/addrbook/modules/LDAPClient.sys.mjs
rename : mailnews/addrbook/modules/LDAPListenerBase.jsm => mailnews/addrbook/modules/LDAPListenerBase.sys.mjs
rename : mailnews/addrbook/modules/LDAPMessage.jsm => mailnews/addrbook/modules/LDAPMessage.sys.mjs
rename : mailnews/addrbook/modules/QueryStringToExpression.jsm => mailnews/addrbook/modules/QueryStringToExpression.sys.mjs
rename : mailnews/addrbook/test/CardDAVServer.jsm => mailnews/addrbook/test/CardDAVServer.sys.mjs
rename : mailnews/addrbook/test/LDAPServer.jsm => mailnews/addrbook/test/LDAPServer.sys.mjs
rename : mailnews/base/src/ABQueryUtils.jsm => mailnews/base/src/ABQueryUtils.sys.mjs
rename : mailnews/base/src/FolderUtils.jsm => mailnews/base/src/FolderUtils.sys.mjs
rename : mailnews/base/src/JXON.jsm => mailnews/base/src/JXON.sys.mjs
rename : mailnews/base/src/LineReader.jsm => mailnews/base/src/LineReader.sys.mjs
rename : mailnews/base/src/MailAuthenticator.jsm => mailnews/base/src/MailAuthenticator.sys.mjs
rename : mailnews/base/src/MailCryptoUtils.jsm => mailnews/base/src/MailCryptoUtils.sys.mjs
rename : mailnews/base/src/MailServices.jsm => mailnews/base/src/MailServices.sys.mjs
rename : mailnews/base/src/MailStringUtils.jsm => mailnews/base/src/MailStringUtils.sys.mjs
rename : mailnews/base/src/MailnewsMigrator.jsm => mailnews/base/src/MailnewsMigrator.sys.mjs
rename : mailnews/base/src/MsgDBCacheManager.jsm => mailnews/base/src/MsgDBCacheManager.sys.mjs
rename : mailnews/base/src/MsgIncomingServer.jsm => mailnews/base/src/MsgIncomingServer.sys.mjs
rename : mailnews/base/src/MsgKeySet.jsm => mailnews/base/src/MsgKeySet.sys.mjs
rename : mailnews/base/src/OAuth2.jsm => mailnews/base/src/OAuth2.sys.mjs
rename : mailnews/base/src/OAuth2Providers.jsm => mailnews/base/src/OAuth2Providers.sys.mjs
rename : mailnews/base/src/TemplateUtils.jsm => mailnews/base/src/TemplateUtils.sys.mjs
rename : mailnews/base/src/VirtualFolderWrapper.jsm => mailnews/base/src/VirtualFolderWrapper.sys.mjs
rename : mailnews/base/src/WinUnreadBadge.jsm => mailnews/base/src/WinUnreadBadge.sys.mjs
rename : mailnews/base/src/hostnameUtils.jsm => mailnews/base/src/hostnameUtils.sys.mjs
rename : mailnews/base/src/mailstoreConverter.jsm => mailnews/base/src/mailstoreConverter.sys.mjs
rename : mailnews/compose/src/MimeEncoder.jsm => mailnews/compose/src/MimeEncoder.sys.mjs
rename : mailnews/compose/src/MimeMessage.jsm => mailnews/compose/src/MimeMessage.sys.mjs
rename : mailnews/compose/src/MimeMessageUtils.jsm => mailnews/compose/src/MimeMessageUtils.sys.mjs
rename : mailnews/compose/src/MimePart.jsm => mailnews/compose/src/MimePart.sys.mjs
rename : mailnews/compose/src/SmtpClient.jsm => mailnews/compose/src/SmtpClient.sys.mjs
rename : mailnews/db/gloda/modules/Collection.jsm => mailnews/db/gloda/modules/Collection.sys.mjs
rename : mailnews/db/gloda/modules/Everybody.jsm => mailnews/db/gloda/modules/Everybody.sys.mjs
rename : mailnews/db/gloda/modules/Facet.jsm => mailnews/db/gloda/modules/Facet.sys.mjs
rename : mailnews/db/gloda/modules/Gloda.jsm => mailnews/db/gloda/modules/Gloda.sys.mjs
rename : mailnews/db/gloda/modules/GlodaConstants.jsm => mailnews/db/gloda/modules/GlodaConstants.sys.mjs
rename : mailnews/db/gloda/modules/GlodaContent.jsm => mailnews/db/gloda/modules/GlodaContent.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDataModel.jsm => mailnews/db/gloda/modules/GlodaDataModel.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDatabind.jsm => mailnews/db/gloda/modules/GlodaDatabind.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDatastore.jsm => mailnews/db/gloda/modules/GlodaDatastore.sys.mjs
rename : mailnews/db/gloda/modules/GlodaExplicitAttr.jsm => mailnews/db/gloda/modules/GlodaExplicitAttr.sys.mjs
rename : mailnews/db/gloda/modules/GlodaFundAttr.jsm => mailnews/db/gloda/modules/GlodaFundAttr.sys.mjs
rename : mailnews/db/gloda/modules/GlodaIndexer.jsm => mailnews/db/gloda/modules/GlodaIndexer.sys.mjs
rename : mailnews/db/gloda/modules/GlodaMsgIndexer.jsm => mailnews/db/gloda/modules/GlodaMsgIndexer.sys.mjs
rename : mailnews/db/gloda/modules/GlodaMsgSearcher.jsm => mailnews/db/gloda/modules/GlodaMsgSearcher.sys.mjs
rename : mailnews/db/gloda/modules/GlodaPublic.jsm => mailnews/db/gloda/modules/GlodaPublic.sys.mjs
rename : mailnews/db/gloda/modules/GlodaQueryClassFactory.jsm => mailnews/db/gloda/modules/GlodaQueryClassFactory.sys.mjs
rename : mailnews/db/gloda/modules/GlodaSyntheticView.jsm => mailnews/db/gloda/modules/GlodaSyntheticView.sys.mjs
rename : mailnews/db/gloda/modules/GlodaUtils.jsm => mailnews/db/gloda/modules/GlodaUtils.sys.mjs
rename : mailnews/db/gloda/modules/IndexMsg.jsm => mailnews/db/gloda/modules/IndexMsg.sys.mjs
rename : mailnews/db/gloda/modules/MimeMessage.jsm => mailnews/db/gloda/modules/MimeMessage.sys.mjs
rename : mailnews/db/gloda/modules/NounFreetag.jsm => mailnews/db/gloda/modules/NounFreetag.sys.mjs
rename : mailnews/db/gloda/modules/NounMimetype.jsm => mailnews/db/gloda/modules/NounMimetype.sys.mjs
rename : mailnews/db/gloda/modules/NounTag.jsm => mailnews/db/gloda/modules/NounTag.sys.mjs
rename : mailnews/db/gloda/modules/SuffixTree.jsm => mailnews/db/gloda/modules/SuffixTree.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaQueryHelper.jsm => mailnews/db/gloda/test/unit/resources/GlodaQueryHelper.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaTestHelper.jsm => mailnews/db/gloda/test/unit/resources/GlodaTestHelper.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaTestHelperFunctions.jsm => mailnews/db/gloda/test/unit/resources/GlodaTestHelperFunctions.sys.mjs
rename : mailnews/export/modules/ProfileExporter.jsm => mailnews/export/modules/ProfileExporter.sys.mjs
rename : mailnews/extensions/newsblog/Feed.jsm => mailnews/extensions/newsblog/Feed.sys.mjs
rename : mailnews/extensions/newsblog/FeedItem.jsm => mailnews/extensions/newsblog/FeedItem.sys.mjs
rename : mailnews/extensions/newsblog/FeedParser.jsm => mailnews/extensions/newsblog/FeedParser.sys.mjs
rename : mailnews/extensions/newsblog/FeedUtils.jsm => mailnews/extensions/newsblog/FeedUtils.sys.mjs
rename : mailnews/imap/src/ImapChannel.jsm => mailnews/imap/src/ImapChannel.sys.mjs
rename : mailnews/imap/src/ImapClient.jsm => mailnews/imap/src/ImapClient.sys.mjs
rename : mailnews/imap/src/ImapIncomingServer.jsm => mailnews/imap/src/ImapIncomingServer.sys.mjs
rename : mailnews/imap/src/ImapMessageService.jsm => mailnews/imap/src/ImapMessageService.sys.mjs
rename : mailnews/imap/src/ImapProtocolHandler.jsm => mailnews/imap/src/ImapProtocolHandler.sys.mjs
rename : mailnews/imap/src/ImapProtocolInfo.jsm => mailnews/imap/src/ImapProtocolInfo.sys.mjs
rename : mailnews/imap/src/ImapResponse.jsm => mailnews/imap/src/ImapResponse.sys.mjs
rename : mailnews/imap/src/ImapService.jsm => mailnews/imap/src/ImapService.sys.mjs
rename : mailnews/imap/src/ImapUtils.jsm => mailnews/imap/src/ImapUtils.sys.mjs
rename : mailnews/import/modules/AddrBookFileImporter.jsm => mailnews/import/modules/AddrBookFileImporter.sys.mjs
rename : mailnews/import/modules/AppleMailProfileImporter.jsm => mailnews/import/modules/AppleMailProfileImporter.sys.mjs
rename : mailnews/import/modules/BaseProfileImporter.jsm => mailnews/import/modules/BaseProfileImporter.sys.mjs
rename : mailnews/import/modules/BeckyProfileImporter.jsm => mailnews/import/modules/BeckyProfileImporter.sys.mjs
rename : mailnews/import/modules/CalendarFileImporter.jsm => mailnews/import/modules/CalendarFileImporter.sys.mjs
rename : mailnews/import/modules/OutlookProfileImporter.jsm => mailnews/import/modules/OutlookProfileImporter.sys.mjs
rename : mailnews/import/modules/SeamonkeyProfileImporter.jsm => mailnews/import/modules/SeamonkeyProfileImporter.sys.mjs
rename : mailnews/import/modules/ThunderbirdProfileImporter.jsm => mailnews/import/modules/ThunderbirdProfileImporter.sys.mjs
rename : mailnews/jsaccount/modules/JSAccountUtils.jsm => mailnews/jsaccount/modules/JSAccountUtils.sys.mjs
rename : mailnews/jsaccount/modules/JaBaseUrl.jsm => mailnews/jsaccount/modules/JaBaseUrl.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/testJaBaseIncomingServer.jsm => mailnews/jsaccount/test/unit/resources/testJaBaseIncomingServer.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/testJaBaseMsgFolder.jsm => mailnews/jsaccount/test/unit/resources/testJaBaseMsgFolder.sys.mjs
rename : mailnews/local/src/Pop3Channel.jsm => mailnews/local/src/Pop3Channel.sys.mjs
rename : mailnews/local/src/Pop3Client.jsm => mailnews/local/src/Pop3Client.sys.mjs
rename : mailnews/mime/src/jsmime.jsm => mailnews/mime/src/jsmime.sys.mjs
rename : mailnews/mime/src/mimeParser.jsm => mailnews/mime/src/mimeParser.sys.mjs
rename : mailnews/news/src/NntpChannel.jsm => mailnews/news/src/NntpChannel.sys.mjs
rename : mailnews/news/src/NntpClient.jsm => mailnews/news/src/NntpClient.sys.mjs
rename : mailnews/news/src/NntpNewsGroup.jsm => mailnews/news/src/NntpNewsGroup.sys.mjs
rename : mailnews/news/src/NntpUtils.jsm => mailnews/news/src/NntpUtils.sys.mjs
rename : mailnews/search/src/PeriodicFilterManager.jsm => mailnews/search/src/PeriodicFilterManager.sys.mjs
extra : rebase_source : 0d95b8d8e0eb6134fe513fab1793e34bab974206
2024-03-12 17:01:01 +02:00
Magnus Melin
2b23e8d718
Bug 1824260 - modernize jsmime. r=aleca,freaktechnik
...
The way jsmime.js and jsmime.jsm interacted did not work for esmification.
Make jsmime.js a proper module jsmime.mjs - remove the anchient module loading people use to use 15 years ago
before JavaScript had proper modules.
The interaction with extraMimeParsers.jsm was also problematic (loading it through Services.scriptloader.loadSubScript in jsmime.jsm),
and there's very little reason to use that in the first place these days. So inlined it into the jsmime.mjs module.
jsmime.js (now jsmime.mjs) uses a kind of namespacing that we could well get rid of but for keeing it was for now to keep the patch reviewable.
Will upload the patch first without formatting it, again to make it easeier to see the real changes.
There's a fair amount of linting fixing to be done even if they are not real changes...
Differential Revision: https://phabricator.services.mozilla.com/D204143
--HG--
rename : mailnews/mime/jsmime/jsmime.js => mailnews/mime/jsmime/jsmime.mjs
extra : rebase_source : d1c145bf779e58f550eb94f090f7be572b82b41e
2024-03-12 14:40:39 +02:00
Thunderbird Updatebot
33f6105b3b
Bug 1878375 - Synchronize vendored Rust libraries with mozilla-central. r=babolivier
...
mozilla-central: 5dbe89396d7f52d57c4a21457fcf95d4e1ae24c3
comm-central: 5227f3f969791fa7de9f2604e012d570be6b8101
Differential Revision: https://phabricator.services.mozilla.com/D204340
--HG--
extra : moz-landing-system : lando
2024-03-12 15:00:06 +00:00
Geoff Lankow
d62c2bf3a4
Bug 1883506 - Remove out-param from nsIMsgDBView.open and .openWithHdrs. r=leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D204307
--HG--
extra : amend_source : 3c651e60a656322c4b54336ba7334319ea0af130
2024-03-12 02:38:26 -07:00
Geoff Lankow
256c3798f5
Bug 1883506 - Add a "new message" count to threaded views. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D203523
--HG--
extra : amend_source : abaa081607116323ee0648e56c4db8a2404cafc5
2024-03-12 02:37:57 -07:00
Geoff Lankow
8b5d8f7467
Bug 1883506 - Remove dead code from nsMsgGroupThread. r=mkmelin
...
I'm fairly certain none of this code ever runs. The only references I could find are in functions
that return early for grouped-by-sort views, and the code itself is quite buggy.
Differential Revision: https://phabricator.services.mozilla.com/D203720
--HG--
extra : amend_source : 2a7a24fc4232c97f5a3b0c342ae64f9e33b03111
2024-03-12 02:37:33 -07:00
John Bieling
e1abb7d564
Bug 1882993 - Force field row of other headers to be displayed after adding a value via compose API. r=aleca
...
When adding values to standard headers (like reply-to) via the compose
API, the row of their header field is automatically shown. This is
currently not the case for non-standard headers, which have been added
to the UI via the `mail.compose.other.header` preference.
This patch forces also non-standard headers to be shown, and adds a
test.
Differential Revision: https://phabricator.services.mozilla.com/D204157
--HG--
extra : amend_source : b9eedfa327fe8ff6e54b57a0f52300afceb2e2d6
2024-03-11 14:24:26 -07:00
Betterbird
ed3e476922
Bug 815638 - Fix DSN for send later. r=mkmelin
...
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/815638-fix-DSN-send-later.patch
Differential Revision: https://phabricator.services.mozilla.com/D204153
--HG--
extra : amend_source : cf6864ca89c76a7688b1a12c8c95606ae67189a9
2024-03-11 11:18:05 -07:00
welpy-cw
91f48ab806
Bug 1520435 - Refresh Grouped By views at midnight. r=leftmostcat,aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D203906
--HG--
extra : amend_source : 67118afcdd9f5f305937835230348cb4239d2500
2024-03-11 11:17:16 -07:00
welpy-cw
ffca8e7f62
Bug 1884585 - Use XULStoreUtils in aboutAddressBook.js as well. r=mkmelin,aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D204149
--HG--
extra : amend_source : d5aa8131c08fc5bdb59657f6fd3cbc5f1ebbd513
2024-03-11 11:16:36 -07:00
Magnus Melin
9a27fbc650
Bug 1773646 - Try to fix intermittent comm/mail/test/browser/account/browser_abWhitelist.js | Should [not] have been checked. r=vineet
...
The pref apperas not to exist. Because we didn't wait after clicking so the event handling didn't necessarily have time to safe the pref.
Differential Revision: https://phabricator.services.mozilla.com/D204190
--HG--
extra : amend_source : 0595ff3b069a9814b12f3763ba89bf0f25a1cda0
2024-03-11 11:15:58 -07:00
John Bieling
6d084af7e5
Bug 1884596 - Toggle dom.disable_window_flip to true. r=mkmelin
...
m-c finally wants to drop the `dom.disable_window_flip` preference in
Bug 1773079 and it will be permanently set to `true`.
It is currently set to `false` for us, but it does not look like
flipping it to `true` causes any issues.
Differential Revision: https://phabricator.services.mozilla.com/D204176
--HG--
extra : amend_source : 6a5d5485be3713665634857a2e74f958ff9c5be7
2024-03-11 12:17:17 +02:00
John Bieling
3a4c628b7f
Bug 1884513 - Try to fix intermittent fails in theme tests. r=mkmelin
...
This patch sets `ui.prefersReducedMotion` in theme tests, to reduce
animations, which could delay theme updates.
Differential Revision: https://phabricator.services.mozilla.com/D204147
--HG--
extra : amend_source : 11581b23a430e47dd35b722b9176769c538b5280
2024-03-11 12:16:40 +02:00
Ben Campbell
2ba55284dc
No bug - Remove now-redundant comment in nsMsgDBFolder::GetLocalMsgStream(). rs=me
...
--HG--
extra : rebase_source : b15ee54e068352c0fd786105d770fcbcf42a0f26
2024-03-11 12:05:40 +13:00
John Bieling
9aeed72f36
Bug 1884412 - Remove recommendation to move messages to trash from WebExtension API documentation. r=aleca
...
Following feedback from developers, we remove the recommendation to
manually move messages to trash. Instead, developers should use the
standard `browser.messages.delete()` function, which honors the user's
trash settings.
Differential Revision: https://phabricator.services.mozilla.com/D204077
--HG--
extra : amend_source : 1b7ea551cff50620be932ad6a0282dec4e43bd6b
2024-03-10 12:41:00 +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
a801479e0a
Bug 1824260 - Fix attachmentchecker. r=freaktechnik
...
The attachment checker was doing some not quite ok things, and couldn't be converted to a standard module.
Fix the wrongdoings.
Differential Revision: https://phabricator.services.mozilla.com/D203740
--HG--
rename : mail/modules/AttachmentChecker.jsm => mail/modules/AttachmentChecker.worker.js
extra : rebase_source : 8cd0e035b571ddc349e3d7f9adbaa44fc58fdfcd
2024-03-08 21:12:41 +02:00
Magnus Melin
cdeeed220d
Bug 1882477 - Try to fix intermittent comm/mail/base/test/browser/browser_mailContext.js | ...exception in test bound testMultipleMessages ... aTarget is null. r=freaktechnik
...
Differential Revision: https://phabricator.services.mozilla.com/D202919
--HG--
extra : amend_source : be14777899279646fae5e2d9b0ff541e5aba1875
2024-03-09 12:47:55 +02:00
Thunderbird Updatebot
11b10d37db
Bug 1878375 - Synchronize vendored Rust libraries with mozilla-central. r=mkmelin
...
mozilla-central: 9a7259a1e3324102817feaab1b8103985f1f25c9
comm-central: acdeccce43c8f9d619ee12d548568aea88e3b5cf
Differential Revision: https://phabricator.services.mozilla.com/D204135
--HG--
extra : amend_source : 055697dc5140b321a4dd7f9979c37574ba91152d
2024-03-09 12:47:16 +02:00
Magnus Melin
cb67d3bff6
Backed out changeset 2f81da701a84 (bug 1861204)
2024-03-09 12:43:02 +02:00
John Bieling
92e1cf685d
Bug 1881929 - Fix typo in function name in the compose API. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D204091
--HG--
extra : moz-landing-system : lando
2024-03-09 09:00:24 +00:00
John Bieling
36027afb14
Bug 1881929 - No longer return marked-to-be-expunged or marked-as-deleted messages in messages API. r=aleca
...
These messages are not usable and should not be touched by the API.
Differential Revision: https://phabricator.services.mozilla.com/D204060
--HG--
extra : amend_source : f74f4095830ef7beb4f1869c6c9448c78f2dabc0
2024-03-08 10:09:13 -08:00
welpy-cw
48a0f44b69
Bug 1861204 - Ensure tooltip for subject displays in Table View. r=aleca,dandarnell
...
- Ensure message text-based columns have tooltips and aria labels.
- Add fluent migration.
Differential Revision: https://phabricator.services.mozilla.com/D193496
--HG--
extra : amend_source : 82595cfc544e328874ee4f5867bf71b26dd5e701
2024-03-08 10:08:42 -08:00
John Bieling
690daeb14f
Bug 1849512 - Create a LightweightThemeConsumer instance also in the message browser. r=mkmelin
...
We have an observer in `MailGlue.sys.mjs` for `chrome-document-global-created`,
to create a new instance of the `LightweightThemeConsumer` for each new
opened document.
This is not fired for the `messageBrowser`, which appears to be a
content document.
This patch makes sure we also create such an instance for the
messageBrowser. The patch also adds a test.
**The Bug itself has a reproducer add-on, showcasing the introduced
change by adding a border to all theme-able elements. Without this
patch, the message header area is not touched.**
Differential Revision: https://phabricator.services.mozilla.com/D204029
--HG--
extra : amend_source : 1f0f31a8492de603f71477d8a5376895ecf44e1b
2024-03-08 10:06:02 -08:00