Bug 1907603 - Fix "TypeError: aPart is null MimeMessage.sys.mjs". r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D219723 --HG-- extra : rebase_source : 78c088f6220097f818c476f010e587250bb1a72e
This commit is contained in:
Родитель
35be0aeea4
Коммит
f00830e408
|
@ -138,7 +138,14 @@ CallbackStreamListener.prototype = {
|
|||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {?MimeContainer} aPart - MIME part to handle.
|
||||
* @returns {?MimeContainer} the MIME part, with encrypted parts removed.
|
||||
*/
|
||||
function stripEncryptedParts(aPart) {
|
||||
if (!aPart) {
|
||||
return null;
|
||||
}
|
||||
if (aPart.parts && aPart.isEncrypted) {
|
||||
aPart.parts = []; // Show an empty container.
|
||||
} else if (aPart.parts) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче