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

189 Коммитов

Автор SHA1 Сообщение Дата
Rob Lemley 58f2dc08f0 Bug 1833949 - Port bug 1826062: Automatic reformatting for Prettier 2.0.5. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D178537

--HG--
extra : amend_source : 4c543c3aeea4bb0a59407f358166956d9026e6a2
2023-05-21 15:05:24 +10:00
Magnus Melin 660a2738d0 Bug 1828331 - Some refactoring of nsIMsgMessageService. r=benc
Rename DisplayMessage to loadMessage + remove unused outUrl. This is a more appropriate name as it's strictly not just about displaying, but used for e.g. copying too.
OutUrl *was* passed around to CopyMessage.

Rename CopyMessage to copyMessage and remove unused outUrl.

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

--HG--
extra : rebase_source : 719233163affeeacc1d4094ce24328a7058fb534
2023-04-27 16:15:06 +10:00
Geoff Lankow 0243573762 Bug 1791459 - Convert more test setup functions to add_setup. rs=me
--HG--
extra : amend_source : 0edb80ed4b032a5353a0d1e6fef15165fa81c56a
2023-04-24 10:45:56 +12:00
Mark Banner e316bebe09 Bug 1827074 - Remove unnecessary nsIMsgWindow parameter from nsIMsgFolder propagateDelete, recursiveDelete and emptyTrash functions. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D175105

--HG--
extra : amend_source : 3e7a913994c7d2ef25a840c1801966ea48195e51
2023-04-19 20:57:54 +10:00
Mark Banner e71d25bdd7 Bug 1827074 - Remove unnecessary prompt handling in nsIMsgWindow. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D175104

--HG--
extra : amend_source : 3bb9cc6de1ef9d80b1d2ac2d6875ffbaa487fb7e
2023-04-19 20:57:35 +10:00
Alessandro Castellani 9ee5e52158 Merge comm onto ash 2022-12-02 15:32:36 -08:00
Magnus Melin 2bf0ec9488 Bug 1803405 - Port bug 1793463: Make NS_URIChainHasFlags (mostly) threadsafe. rs=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D163578

--HG--
extra : rebase_source : 14bfdd08b948d08d661771763c4a19f8c5ac6b61
2022-12-02 21:55:30 +11:00
Geoff Lankow d0d0388d5a Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-11-28 10:41:17 +13:00
Geoff Lankow 814c23c7eb Merge comm-central to ash
--HG--
rename : mail/base/content/msgMail3PaneWindow.js => mail/base/content/messenger.js
2022-11-28 12:26:41 +13:00
Geoff Lankow e49182b2ac Merge comm-central to ash 2022-11-21 14:24:28 +13:00
Martin Giger 5f617743e0 Bug 1801272 - Convert imports of modules from testing/ to ESM. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D162373

--HG--
extra : rebase_source : cf6272b43faaea35793235708edbfc94c407fc9f
2022-11-19 20:04:39 +11:00
Magnus Melin 7cf828bdfd Bug 1798241 - nsIMsgDatabase naming cleanup. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D161016

--HG--
extra : rebase_source : 046a6b1890657ae53e16bf531c3726daea1b9616
extra : amend_source : 445ffa157df3ce2f9c3cebaf60902252b94e6ed1
2022-11-03 21:16:52 +11:00
Geoff Lankow a7aa127eff Bug 1799764 - Implement GetMessageServiceFromURI in JS. r=aleca
This avoids the creation of unnecessary nsIMessenger objects just to do some basic logic.

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

--HG--
extra : rebase_source : 87f85b9a4f0a6a8c8f7e8344b518c4e29e3f7f21
extra : amend_source : 087047c544c32dc9061566c9d9f295fd5102b4c1
2022-11-07 16:27:22 +13:00
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
Ping Chen aeedf87c96 Bug 1794185 - Fix "Get Next n Messages" for nntp-js. r=mkmelin
Update nsIDBFolderInfo.knownArtsSet based on XOVER range, doesn't matter if artciles in the range don't exist on the server.

Differential Revision: https://phabricator.services.mozilla.com/D158898
2022-10-08 06:13:43 +00:00
Ben Campbell 1749f88c7a Bug 1793258 - Use PromiseStreamListener instead of custom articleTextListener in news unit tests. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158439

--HG--
extra : amend_source : 93e44b1d1e8c93de7a69b73a48f49402b979a635
2022-10-03 20:53:46 +11: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 8cea8e601a Bug 1787955 - Fix dot-stuffing when posting NNTP article. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D155930

--HG--
extra : amend_source : 71b2650ed7645a88b063b9d2284e54569ff7ed1a
2022-08-30 20:42:34 +10:00
Ping Chen 2f8bd68359 Bug 1786655 - Use PascalCase for class names in {Smtpd,Nntpd,Pop3d}.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D155443

--HG--
extra : rebase_source : 8c643aaf5259ce46ce813022af97717bfe5d828b
extra : amend_source : 9cb9163749ccd3846169ffbfd066fac64de507a9
2022-08-24 20:26:12 +10:00
Ping Chen 2fb587c3ea Bug 1786203 - Support 201 status code in NntpClient.jsm. r=mkmelin
Update test_NntpChannel to return 201 from Nntpd test server.

Differential Revision: https://phabricator.services.mozilla.com/D155308
2022-08-23 02:01:20 +00:00
Magnus Melin 0465d8e5a7 Bug 1785773 - followup - fix linting. rs=eslint DONTBUILD
--HG--
extra : amend_source : b988ae1c17390595701109fb73a590462978f7c7
2022-08-19 21:26:34 +10:00
Ping Chen 4dabf8d363 Bug 1785773 - Do not write to stream if NntpService.fetchMessage has no consumer. r=mkmelin
Without a consumer, outputStream.write will fail after buffer become full.
Add a test to fetch a large message.

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

--HG--
extra : amend_source : e2cd90e126ca31fbc67341726334ebdadbc200c9
2022-08-19 20:50:26 +10:00
Ping Chen 1a477fa4c3 Bug 1783517 - Abort connection if canceled password dialog in NntpClient.jsm. r=mkmelin
Add test_cancelPasswordDialog.js.

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

--HG--
extra : amend_source : 98a4773ac6e0a46a78749dd69c528f29154a907e
2022-08-10 20:30:21 +10:00
Ping Chen 5d9c9acef6 Bug 1782365 - Support removing all expired NNTP articles. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D153543

--HG--
extra : rebase_source : 6a4f1cd4ac47208e3e286194362d859bb1e62984
2022-08-04 04:59:28 +00:00
Ping Chen 06bcc9e292 Bug 1781720 - Remove the C++ implementation of NNTP. r=mkmelin
Remove nsNntpService/nsNNTPProtocol/nsNntpIncomingServer, so that nntp-js is the only NNTP implementation.

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

--HG--
extra : amend_source : dccc701ea2c24d3539edfefce5d5c95e1e261805
2022-07-28 20:34:49 +10:00
Magnus Melin 658036deef Bug 1779145 - Port bug 1667455 to Thunderbird - Expose a "Services" property on all privileged JS scopes (like Cu/Cc/Ci). r=leftmostcat
Changed prettier printWidth to 100 to put Services.jsm on one line, prettified and then
   grep -rEl "/Services.jsm" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -e '/\/Services.jsm/d'

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

--HG--
extra : rebase_source : 43da2706d3b30f5062511cedd527e9fb65631f02
extra : amend_source : 863bfd4ad3930f4fe4ed0b3dba6061370118f9a5
2022-07-18 20:26:40 +10:00
Ping Chen f55c561ea5 Bug 1483485 - Remove realHostName/realUsername from nsIMsgIncomingServer. r=mkmelin
Skip and fix a few tests.

Depends on D144790.

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

--HG--
extra : amend_source : 31a1b0ca7a816f036ea74d887b287abed445fae2
2022-05-13 12:52:00 +03:00
Nicolai Kasper b725d2ce97 Bug 1571683 - Part 6: Replace asyncTestUtils.js functionality with promises in mailnews/news/test/unit/test_nntpPasswordFailure.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D139375

Depends on D139374

--HG--
extra : histedit_source : 123f77607aaa9be559afb3972e124838ce96abd5
2022-02-22 13:23:04 +00:00
Nicolai Kasper b87bdad557 Bug 1571683 - Part 4: Replace asyncTestUtils.js functionality with promises in mailnews/news/test/unit/test_internalUris.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D139373

--HG--
extra : histedit_source : 48ac8ea012d241f3b3d3ef8fb8fd046fae169493
2022-02-22 15:13:46 +00:00
Ping Chen df19d1a041 Bug 1727013 - Enable remaining unit tests for nntp-js. r=mkmelin
Do not log authinfo in NntpClient.

Depends on D128454.

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

--HG--
extra : amend_source : 4c72fd223604fdfd1db0ce2655fc026168ed48ac
2021-10-15 13:09:38 +03:00
Ping Chen 211efa7f52 Bug 1719413 - Add NntpProtocolInfo.jsm to implement nsIMsgProtocolInfo. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D128041

--HG--
extra : amend_source : 429876a1d85a9a27a882e3b28626de3fcc794287
2021-10-11 13:01:57 +03:00
Ping Chen ba7d109e36 Bug 1719413 - Enable test_internalUris.js for nntp-js. r=mkmelin
- Implement fetchMessage/cancelMessage of nsINntpService
- Implement nsIMsgMessageService.Search

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

--HG--
extra : amend_source : bcb6c3399e045177b27d2220e9b0cfd0aeb79dee
2021-10-06 13:16:37 +03:00
Ben Campbell 19824555f1 Bug 1683590 - Remove nsISupport use in nsIFolderListener.OnItemAdded/Removed callbacks. r=mkmelin
Breaks up OnItemAdded() and OnItemRemoved() into folder and message-specific
versions. Also tidies up naming of the callback functions in the .idl while
we're here e.g. OnItemEvent() becomes onFolderEvent().

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

--HG--
extra : rebase_source : 09c95d139bc512626e7974b95b94fa91cead0ef6
2021-10-01 12:46:34 +03:00
Magnus Melin 5a9a321948 Backed out changeset 89021f52292d (bug 1683590) for build bustage. rs=backout
--HG--
extra : amend_source : 2c883d9c7c36aef0d5c3b4a0a489331049079147
2021-09-29 13:42:41 +03:00
Ping Chen 486b6ce13f Bug 1719414 - Enable test_filter.js for nntp-js. r=mkmelin
Use XHDR to fetch headers needed by filters but not returned in XOVER response.

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

--HG--
extra : amend_source : ee10ed02bde44122cb7ca3e113134df40b0d05f6
2021-09-29 12:30:56 +03:00
Ping Chen 3240fc42b3 Bug 1719414 - Support auth in NntpClient.jsm. r=mkmelin
- Implement nsINntpIncomingServer.loadNewsUrl
- Enable auth related tests

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

--HG--
extra : amend_source : 8c37983a79b76730dc4155c3c720b9cc5d99a7e3
2021-09-29 12:30:39 +03:00
Ben Campbell 0bc654a66d Bug 1683590 - Remove nsISupport use in nsIFolderListener.OnItemAdded/Removed callbacks. r=mkmelin
Breaks up OnItemAdded() and OnItemRemoved() into folder and message-specific
versions. Also tidies up naming of the callback functions in the .idl while
we're here e.g. OnItemEvent() becomes onFolderEvent().

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

--HG--
extra : amend_source : 7e86abd0191c081cbce48965b6d064f146fc7f88
2021-09-29 12:30:19 +03:00
Ping Chen 90ce0bab47 Bug 1719414 - Enable test_getNewMessages for nntp-js. r=mkmelin
Fallback to HEAD command if XOVER doesn't work.

Differential Revision: https://phabricator.services.mozilla.com/D126478
2021-09-23 10:32:13 +00:00
Ping Chen 339a2b6136 Bug 1719413 - Enable test_bug170727.js for nntp-js. r=mkmelin
Support offline storage for news messages.

Depends on D125801.

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

--HG--
extra : moz-landing-system : lando
2021-09-23 04:16:48 +00:00
Magnus Melin d0fc90a764 Backed out changeset 848f5e66190e (Bug 1719413 - Enable test_bug170727.js for nntp-js) for debug test failures 2021-09-16 20:20:10 +03:00
Ping Chen d3417c4dd0 Bug 1719413 - Enable test_bug170727.js for nntp-js. r=mkmelin
Support offline storage for news messages.

Depends on D125801.

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

--HG--
extra : amend_source : 4af67bf83b38adb60474c80a6fb0227dfc41dfec
2021-09-16 13:34:53 +03:00
Magnus Melin 7be8e85fdb Backed out changeset f8a9cb9b814b (included unrelated changes)
--HG--
extra : amend_source : 20212bdfd979abcaa8e72da2016cc05b7708fa41
2021-09-16 13:28:23 +03:00
Ping Chen b7ebd6de5c Bug 1719413 - Enable test_bug170727.js for nntp-js. r=mkmelin
Support offline storage for news messages.

Depends on D125801.

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

--HG--
extra : amend_source : c68d48fb36b91b950b99f9233b83f09b82c9a098
extra : histedit_source : 5b8a266b5c659f9b821fb421255509c23f043a7a
2021-09-16 12:51:30 +03:00
Ping Chen 678ebcecab Bug 41133 - Enable test_bug37465.js for nntp-js. r=mkmelin
Create a nsINntpIncomingServer instance if needed to fetch the news article, but no need to create an account for it.

Differential Revision: https://phabricator.services.mozilla.com/D125379
2021-09-13 08:58:28 +00:00
Ping Chen 9af650ece2 Bug 1727013 - Enable test_biff.js for nntp-js. r=mkmelin
Implement getFilterList/setFilterList in MsgIncomingServer.jsm.

Depends on D125020.

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

--HG--
extra : amend_source : e1274ff73162ef6a39793cb005a94a802b00d86d
2021-09-09 12:51:41 +03:00
Ping Chen 1c97b52146 Bug 1727013 - Enable test_nntpPost.js for nntp-js. r=mkmelin
Implement getter/setter for realHostName/realUsername in MsgIncomingServer.jsm.

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

--HG--
extra : amend_source : e2ba168de28c1e419112cc1dbc27764cdca628e6
2021-09-09 12:51:23 +03:00
Ping Chen 0e1898a228 Bug 1719413 - Enable test_nntpProtocols.js for SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D124604

--HG--
extra : histedit_source : 541a55e6f1965346becc87faa5a32d9c0a9ee4ee
2021-09-06 08:57:10 +00:00
Magnus Melin 1a43a2fbe7 Bug 1694662 - adjust Thunderbird tests for changes in 1694662. rs=bustage-fix
--HG--
extra : amend_source : b73906c53e95d5f0b889012182f57964826e90f1
2021-05-01 13:54:55 +03:00
Henry Wilkes e5bf5649cf Bug 1667338 - Switch url from out parameter to return value in nsIMsgMessageService.GetUrlForUri. r=mkmelin
A return value is more convenient for calling in javascript.

Also renamed interface definition from GetUrlForUri to getUrlForUri to conform to javascript naming conventions.

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

--HG--
extra : amend_source : 7ff0c6889942d16dff1e87c25c1d04b195373f64
2021-02-26 12:34:20 +02:00
Rob Lemley 74c6535302 Bug 1672798 - Run black formatting on mozbuild and mozconfigure files. r=mkmelin
Bringing some sanity to our Python scripts.

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

--HG--
extra : rebase_source : 7eed46d79663fa1f261bd64d9bc1c83c4867bfc4
extra : histedit_source : b8b700c76ab2fee92eb426b5a5b69dc86376e60f
2020-10-30 14:28:33 -04:00