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

7807 Коммитов

Автор SHA1 Сообщение Дата
Magnus Melin ebeb124378 Bug 1668926 - fix missing member initialization in nsOfflineStoreCompactState. r=benc
CID 1137656 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member m_offlineMsgSize is not initialized in this constructor nor in any functions that it calls.

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

--HG--
extra : rebase_source : 1e6f6b6a5413ed9aeb3dd10b7f9afd67a2e91b1f
2021-04-11 21:50:01 +03:00
Magnus Melin 4beba4c533 Bug 1668926 - fix member initialization in nsMessenger::nsFilePickerShownCallback::nsFilePickerShownCallback. r=benc
CID 1416479 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member mResult is not initialized in this constructor nor in any functions that it calls.

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

--HG--
extra : rebase_source : d6bc34342d31465bdaaf2e7573959e81a5ecc746
2021-04-11 22:12:02 +03:00
Magnus Melin 7cf5120e98 Bug 1668926 - fix missing member initialization in MsgStatusFeedback. r=benc
CID 1137658 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)3. uninit_member: Non-static class member m_meteorsSpinning is not initialized in this constructor nor in any functions that it calls.

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

--HG--
extra : rebase_source : c82176590c0b1445f410d0061dc8dd2b3fc48af6
2021-04-11 21:53:46 +03:00
Magnus Melin 165703ca3c Bug 1668926 - fix missing member variable initialization for nsMsgMailboxParser::nsMsgMailboxParser. r=benc
uninit_member: Non-static class member m_startTime is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member m_parsingDone is not initialized in this constructor nor in any functions that it calls.

CID 1260151 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)6. uninit_member: Non-static class member m_urlInProgress is not initialized in this constructor nor in any functions that it calls.

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

--HG--
extra : rebase_source : 873f26cd889079aa02e134c5eb1a5b097d64d7cb
2021-04-11 21:35:29 +03:00
Magnus Melin c24665d512 Bug 1668926 - fix "logicallly dead code" in nsLocalURI2Path. r=benc
CID 1417611: Dereference before null check (REVERSE_INULL)
   notnull: At condition curPos, the value of curPos cannot be nullptr.
   dead_error_condition: The condition curPos must be true.

CID 1417612 (#1 of 1): Logically dead code (DEADCODE)dead_error_line: Execution cannot reach the expression NS_MsgCreatePathStringFromFolderURI(curPos, newPath, nsTLiteralString<char>(operator "" _ns("none", 4UL)).operator nsTString const &(), false) inside this statement: NS_MsgCreatePathStringFromF....

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

--HG--
extra : rebase_source : 609d0394448c1b5c3c7a47abb27a38a65c594c6a
2021-04-11 21:06:10 +03:00
Magnus Melin 20fbe70194 Bug 1668926 - ensure SignedStatusRunnable::SignedStatusRunnable mResult is initialized. r=benc
CID 1459799 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member mResult is not initialized in this constructor nor in any functions that it calls.

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

--HG--
extra : rebase_source : 14c1930627170a7c9a9c769856117cb51d72126f
2021-04-12 09:57:36 +03:00
Ping Chen f49e4ae32d Bug 1704409 - Call OnStartRunningUrl and pass specific nsresult to OnStopRunningUrl in SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D111588

--HG--
extra : moz-landing-system : lando
2021-04-13 04:38:39 +00:00
Martin Giger 69907a5a50 Bug 1696659 - Replace uses of OS.* with IOUtils and friends. r=mkmelin
Except for chat's logger.jsm (and test), ext-compose.js (no IOUtils in extension API implementations)
and converterWorker (uses OS.File.open to read and write big files).

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

--HG--
extra : moz-landing-system : lando
2021-04-12 22:54:06 +00:00
Alessandro Castellani 1dece2828d Bug 1697575 - Rename all emailWizard related files to accountSetup. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D111523

--HG--
rename : mail/components/accountcreation/content/emailWizard.js => mail/components/accountcreation/content/accountSetup.js
rename : mail/components/accountcreation/content/emailWizard.xhtml => mail/components/accountcreation/content/accountSetup.xhtml
rename : mail/locales/en-US/messenger/accountcreation/accountHub.ftl => mail/locales/en-US/messenger/accountcreation/accountSetup.ftl
extra : amend_source : 039aa1983a58eafbbb4e994df3f1d040a98c2c0a
2021-04-12 12:23:03 +03:00
Magnus Melin 1aaa23808b Bug 1668926 - fix resource leakage in MsgGetFileStream. r=benc
Found by coverity. leaked_storage: Variable newFileStream going out of scope leaks the storage it points to.

CID 1137477

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

--HG--
extra : rebase_source : 87f6ef054782ca9c3f4db289fbd342cc5c6def2e
extra : amend_source : 99e89ab70cd7ba571dfbfbc3097cff99eb7c248e
2021-04-12 11:48:22 +03:00
Geoff Lankow 4ff10d2825 No bug - Remove obsolete test invocation comments. rs=me
Needed something to kick off a build.
2021-04-12 11:03:31 +12:00
Ping Chen 8a7261cd70 Bug 1702741 - Click a notification should open msg window even minimized to tray. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110910

--HG--
extra : amend_source : 5e548a97975936163888b681a418f8240cc615cf
2021-04-09 13:29:15 +03:00
Magnus Melin b70e3474c9 Bug 1702741 - Backed out changeset e73c8437e0ec for test failures. rs=backout DONTBUILD 2021-04-08 15:20:11 +03:00
Mark Banner 4c14aecf5c Bug 1703513 - Simplify nsMsgDBView's note change handling. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D111148

--HG--
extra : amend_source : e2dabe2e94558febb7480778e626dfca80f70b32
2021-04-08 13:31:58 +03:00
Ping Chen 03f7247f01 Bug 1702741 - Click a notification should open msg window even minimized to tray. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110910

--HG--
extra : amend_source : 52688867d6ec796e366292332406a40a58e0feef
2021-04-08 13:16:53 +03:00
Alessandro Castellani b1bff367dd Bug 1697575 - Open Email Wizard dialog in a Tab. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110508

--HG--
extra : amend_source : d867bbe1901f6a3ddb970876e53cedbaffb9d5e5
2021-04-07 20:33:27 +03:00
Richard Marti 06a0150a9c Bug 1702731 - Rename the "Add-ons" to "Add-ons and Themes" and use "Preferences" for all platforms. r=aleca 2021-04-07 12:52:17 +03:00
Ping Chen b034441ea6 Bug 1692771 - Avoid duplicated links when converting to text/plain. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110892

--HG--
extra : amend_source : 4e8fd5761a0712f75203257a42277c6c9667fcff
2021-04-07 12:49:22 +03:00
Ping Chen 65ffc39b9f Bug 1701864 - Prevent an error when using nsMsgSend.cpp together with SmtpService.jsm. r=mkmelin
The problem is SmtpService.jsm doesn't use nsISmtpUrl, so do_QueryInterface would always fail.

--HG--
extra : rebase_source : 9be167f7f3557f1a2ecbe90807daab3e9855a014
2021-04-05 12:01:21 +03:00
Ping Chen f46f082b6e Bug 1701804 - Do not send hostname in EHLO command in SmtpClient.jsm. r=mkmelin
From rfc5321#section-2.3.5

> A domain name that is not in FQDN form is no more than a local alias.
> Local aliases MUST NOT appear in any SMTP transaction.

--HG--
extra : rebase_source : ecaebe98acc678c754589619592c9a3c6e5620b2
2021-04-05 12:00:52 +03:00
Ping Chen 66ad6d15ac Bug 1701741 - Fix isMessage check in MimePart.jsm. r=mkmelin
--HG--
extra : rebase_source : 52668e2e7b3b19fedff925853384e8d920a6ab95
2021-04-05 12:00:43 +03:00
Ben Campbell f5886dfbb2 Bug 1631149 - Move nsMsgDatabase enumerator classes into their own file. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110705

--HG--
extra : amend_source : ce0fec91913a5f1d8a4eba2cdf37df724451a78a
2021-04-04 13:57:32 +03:00
Richard Marti 77478c0e74 Bug 1702784 - Don't add messenger.css to the prefs. r=aleca 2021-04-03 13:54:10 +03:00
Martin Giger e767869f09 Bug 1682196 - Only allow dragging account tree children for reordering. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110541

--HG--
extra : amend_source : ea689fb12c767a4420867867e56945ba7688d5a3
2021-04-02 13:55:37 +03:00
Ping Chen 16c44d3db3 Bug 1701819 - Fix test_sendMailAddressIDN.js in debug mode. r=mkmelin
--HG--
extra : amend_source : 89c4a56a8ebd917cb1b38751f4d84904cf13bede
2021-04-02 13:55:11 +03:00
Ping Chen 7674d9345f Bug 1702360 - Add more debug logs to MessageSend.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110500

--HG--
extra : amend_source : 1b718b785f68791f62c89116dd5e16aa4b7dcb4d
2021-04-01 12:45:36 +03:00
Ping Chen 12c325b00d Bug 1701804 - Send ip address in EHLO command in SmtpClient.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110492

--HG--
extra : amend_source : cdd4285b6450e7c5fa31831ba9c395919e86bc06
2021-04-01 12:43:52 +03:00
Geoff Lankow 857d2ccb60 Bug 1702090 - Remove a deleted directory's contents from All Address Books view. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D110356

--HG--
extra : rebase_source : c08bb3d8ed2503980df13f82eee77ac3b78265dc
extra : histedit_source : 3f42cbec07a98fabd1bfbf98c4de6ec80898da99
2021-03-31 15:49:05 +13:00
Ping Chen 297eaef880 Bug 1701741 - Show error when message attachment is empty. r=mkmelin
The error happens when

- forwarding a message as attachment, but delete the message before sending
- drag/drop a message into compose window, delete the message before sending

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

--HG--
extra : amend_source : 04c870549b477c6c55abef09943ff58d7c479143
2021-03-31 12:37:36 +03:00
Toshihito Kikuchi 185f2c1b51 Bug 1701891 - Make nsMessengerWinIntegration::mTrayIconShown consistent with the icon's status. r=mkmelin
Under the following conditions, both a taskbar icon and a notify icondisppear
so that there is no way to bring Thunderbird's window back.

- No unread email
- `mail.minimizetotray = true`

This happens because `IconWindowProc` deletes the notify icon without updating
the flag `nsMessengerWinIntegration::mTrayIconShown`.  This patch makes sure
that flag is set to `false` every time we delete the notify icon through
`Shell_NotifyIconW`.  In order for `IconWindowProc` to access the instance of
`nsMessengerWinIntegration`, this patch associates the instance pointer with
the window handle.

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

--HG--
extra : amend_source : 814bb713606b20240b8a7a21d03ea893bab9a0fe
2021-03-30 13:50:07 +03:00
Toshihito Kikuchi f4732a845e Bug 1516423 - Have WinUnreadBadge own TaskbarWindowPreview. r=mkmelin
In Thunderbird, an instance of `TaskbarWindowPreview` is created when
`WinUnreadBadge.updateUnreadCount` calls `WinTaskbar::GetOverlayIconController`.
However, that instance is freed immdiately after `updateUnreadCount` exits
because nobody owns it.  As a result, the taskbar icon disappears even when
`mail.minimizeToTray = false`.

This patch makes `WinUnreadBadge` own a reference to `TaskbarWindowPreview`
so that its instance is kept alive after the method exits.
This approach is the same as Firefox stores `TaskbarWindowPreview` as
`DownloadsTaskbar._taskbarProgress`.

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

--HG--
extra : amend_source : 6817b4fb4e049a3e5005505fbac5eae9994a404c
2021-03-30 13:49:19 +03:00
Geoff Lankow ab740e15c6 Bug 1700508 - Fix assertion failure in nsHtml5StreamParser.h. r=mkmelin
Thanks to hsivonen for the suggestion.

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

--HG--
extra : amend_source : 6cc457edd582e265af4015117e79860c7c77cf63
2021-03-30 13:48:00 +03:00
Mark Banner 52c03e020b Bug 1700014 - Use lazy module getters when loading custom widgets, to avoid loading modules early. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D109244

--HG--
extra : moz-landing-system : lando
2021-03-30 08:41:45 +00:00
Richard Marti b921f75c74 Bug 1701525 - Improve the richlistitems in Account Manager. r=aleca 2021-03-28 22:11:27 +02:00
Ping Chen c96bef7839 Bug 1701450 - Prevent error when attachment name is empty in MessageSend.jsm. r=mkmelin
Also fix error msg of NS_MSG_ERROR_ATTACHING_FILE.

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

--HG--
extra : amend_source : 0b3a54db2a7b7a9fce30c3bf927c4ff3098c484b
2021-03-29 13:51:30 +03:00
Geoff Lankow 51ad486532 Bug 1698434 - Create a base class for address book directory implementations. r=mkmelin
This looks like a lot of code removal but it isn't. I'm copying a file then removing half of each copy.

In this patch I've also added a cleanUp function to nsIAbDirectory. It's essentially an async destructor that runs at shutdown or if the directory is deleted.
This allowed me to tidy up the shutdown process and block shutdown until the databases are closed.

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

--HG--
rename : mailnews/addrbook/modules/AddrBookDirectory.jsm => mailnews/addrbook/modules/SQLiteDirectory.jsm
extra : moz-landing-system : lando
2021-03-28 22:38:53 +00:00
Neil Rashbrook 8ca51698c9 Bug 1701259 - Warn when deleting filter targets from any accounts r=mkmelin
Only the editable filter list from the last server was properly accounted for.
2021-03-28 13:50:50 +03:00
Magnus Melin 4679f90ab6 Bug 1701172 - make printing work (missing Services import). r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D109982

--HG--
extra : rebase_source : cee97ac400994168168199f65d1f430069ba266a
2021-03-26 23:18:10 +02:00
Ping Chen e8a21522c1 Bug 1679730 - Handle null username/hostname in findServer of SmtpService.jsm. r=mkmelin 2021-03-26 12:13:33 +02:00
Geoff Lankow 35c50b475c Port bug 1693133 - Changes to BrowserTestUtils.promiseAlertDialog and promiseAlertDialogOpen. rs=bustage-fix 2021-03-26 19:20:41 +13:00
Geoff Lankow 8aba886260 Bug 1697669 - Add Outlook address book provider to preferences. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D107956

--HG--
extra : rebase_source : 492aa2026d1af76f126b3c1e83158c1542140780
extra : amend_source : ced8adf59673d9d69b1f6b0abd935e1be71fe3ff
2021-03-11 12:38:05 +13:00
Geoff Lankow b14d58c864 Bug 244347 follow-up - Fix a broken test. rs=bustage-fix
This test creates a feeds account and expected to have it appear below the local folders account in the folder tree. That's no longer what happens.
2021-03-25 21:38:43 +13:00
Martin Giger 06cee34346 Bug 244347 - Don't filter IM accounts and add hidden accounts to reordering. r=mkmelin
Hidden accounts include the unified folder account. Further this fixes reordering after an account
is marked as default.

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

Depends on D108943

--HG--
extra : rebase_source : e5789a9416c175b5b8d93269b95f191f8f4d17e3
2021-03-19 12:56:16 +00:00
Khushil Mistry 5e91d400a2 Bug 244347 - change sort order of accounts. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D108943

--HG--
extra : rebase_source : 0e6ffa4e6be323fd977583e4375944c13473d9b2
2021-03-18 14:25:03 +00:00
Magnus Melin b02c872895 Bug 1678109 - get rid of the mailnews IOUtils.jsm module. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D108933

--HG--
extra : rebase_source : d8bd49f8dd04b4b142c9975fe18a422da89587e9
2021-03-18 14:28:05 +02:00
Magnus Melin 40f55a133b Bug 1518536 - remove most of iteratorUtils.jsm usage. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D109083

--HG--
extra : rebase_source : 6baaec6ef5e4918ca1ff76b16b8ed8d8b034cce9
2021-03-24 12:49:43 +02:00
it@henk.com.au f63a223cf7 Bug 1700495 - Remove remnants of Outlook Express from code base. r=darktrojan
--HG--
extra : rebase_source : 8ddd1e8f65caee522c7ab57cb9aa60bb1641b6e9
2021-03-24 17:03:07 +13:00
Jorg K 4264a295b4 Bug 1447492 - Fix crash in test_fooUrl.js. r=neil, darktrojan
--HG--
extra : rebase_source : 8a3e56a865f37bc267179012ed8dcfea40345707
2021-03-24 17:02:00 +13:00
Ping Chen de59c7ca6f Bug 1698993 - Support Delivery Status Notification in SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D109295

--HG--
extra : amend_source : bac73487e4d035add61835fa426f07a14c2df21c
2021-03-23 12:18:43 +02:00
gene smith 1e27bb4323 Bug 1615064 - Follow-up: Optimize string processing in nsParseMailMessageState::ParseHeaders(). r=benc
--HG--
extra : rebase_source : 67d9e5e52a605179431e92da06da0585dc47d7ee
2021-03-20 15:22:59 +01:00