mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
d4582b821c
153 changed files with 172 additions and 4555 deletions
|
|
@ -698,7 +698,6 @@ nsresult nsMessenger::SaveAttachment(nsIFile *aFile,
|
|||
saveListener->QueryInterface(NS_GET_IID(nsIStreamListener),
|
||||
getter_AddRefs(convertedListener));
|
||||
|
||||
#ifndef XP_MACOSX
|
||||
// if the content type is bin hex we are going to do a hokey hack and make sure we decode the bin hex
|
||||
// when saving an attachment to disk..
|
||||
if (MsgLowerCaseEqualsLiteral(aContentType, APPLICATION_BINHEX))
|
||||
|
|
@ -713,7 +712,6 @@ nsresult nsMessenger::SaveAttachment(nsIFile *aFile,
|
|||
channelSupport,
|
||||
getter_AddRefs(convertedListener));
|
||||
}
|
||||
#endif
|
||||
nsCOMPtr<nsIURI> dummyNull;
|
||||
if (fetchService)
|
||||
rv = fetchService->FetchMimePart(URL, fullMessageUri.get(),
|
||||
|
|
@ -771,10 +769,6 @@ nsMessenger::SaveAttachmentToFolder(const nsACString& contentType, const nsACStr
|
|||
ConvertAndSanitizeFileName(PromiseFlatCString(displayName).get(), unescapedFileName);
|
||||
rv = attachmentDestination->Append(unescapedFileName);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
#ifdef XP_MACOSX
|
||||
rv = attachmentDestination->CreateUnique(nsIFile::NORMAL_FILE_TYPE, ATTACHMENT_PERMISSION);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
#endif
|
||||
|
||||
rv = SaveAttachment(attachmentDestination, url, messageUri, contentType, nullptr, nullptr);
|
||||
attachmentDestination.swap(*aOutFile);
|
||||
|
|
|
|||
|
|
@ -353,11 +353,9 @@ NS_IMETHODIMP nsMsgMailSession::AddMsgWindow(nsIMsgWindow *msgWindow)
|
|||
NS_IMETHODIMP nsMsgMailSession::RemoveMsgWindow(nsIMsgWindow *msgWindow)
|
||||
{
|
||||
mWindows.RemoveObject(msgWindow);
|
||||
// Mac keeps a hidden window open so the app doesn't shut down when
|
||||
// the last window is closed. So don't shutdown the account manager in that
|
||||
// case. Similarly, for suite, we don't want to disable mailnews when the
|
||||
// last mail window is closed.
|
||||
#if !defined(XP_MACOSX) && !defined(MOZ_SUITE)
|
||||
// For suite, we don't want to disable mailnews when the last mail window
|
||||
// is closed (other component windows may still be open).
|
||||
#if !defined(MOZ_SUITE)
|
||||
if (!mWindows.Count())
|
||||
{
|
||||
nsresult rv;
|
||||
|
|
|
|||
|
|
@ -136,13 +136,11 @@ nsresult nsStatusBarBiffManager::PlayBiffSound(const char *aPrefBranch)
|
|||
}
|
||||
}
|
||||
}
|
||||
#ifndef XP_MACOSX
|
||||
// if nothing played, play the default system sound
|
||||
if (!customSoundPlayed) {
|
||||
rv = mSound->PlayEventSound(nsISound::EVENT_NEW_MAIL_RECEIVED);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
#endif
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue