Closed
Bug 778114
Opened 12 years ago
Closed 12 years ago
chat sound not playing if mail notification sound disabled
Categories
(Thunderbird :: Instant Messaging, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 17.0
People
(Reporter: realRaven, Assigned: realRaven)
Details
Attachments
(1 file, 4 obsolete files)
2.06 KB,
patch
|
Irving
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1 Build ID: 20120713134347 Steps to reproduce: enabled mail.chat.play_notification_sound while having mail.biff.play_sound disabled Actual results: no notification sounds played back when my name was mentioned in IRC Expected results: chat notification sounds should play even if mail notification sounds are disabled
Assignee | ||
Updated•12 years ago
|
Severity: normal → trivial
Assignee | ||
Updated•12 years ago
|
Component: General → Instant Messaging
Assignee | ||
Comment 1•12 years ago
|
||
Tech Notes for patching: Pref check within PlayBiffSound() needs to move outside and be checked before calling PlayBiffSound() instead; code: http://mxr.mozilla.org/comm-central/source/mailnews/base/src/nsStatusBarBiffManager.cpp#229 http://mxr.mozilla.org/comm-central/source/mailnews/base/src/nsStatusBarBiffManager.cpp#89 http://mxr.mozilla.org/comm-central/source/mailnews/base/src/nsStatusBarBiffManager.cpp#180 I will see if I can get around to writing that one soon...
Assignee | ||
Comment 2•12 years ago
|
||
Updated•12 years ago
|
Assignee: nobody → axelg
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #646910 -
Attachment is obsolete: true
Attachment #646913 -
Flags: review?
Assignee | ||
Comment 4•12 years ago
|
||
removed duplicate comment
Attachment #646913 -
Attachment is obsolete: true
Attachment #646913 -
Flags: review?
Attachment #646915 -
Flags: review?(irving)
Assignee | ||
Comment 5•12 years ago
|
||
Ok, it was pointed out that previous code was incomplete, and how to compile a single file. This one compiles and should also work as designed. I have yet to make a full build for testing.
Attachment #646915 -
Attachment is obsolete: true
Attachment #646915 -
Flags: review?(irving)
Assignee | ||
Comment 6•12 years ago
|
||
moved a comment to a more appropriate place
Attachment #646921 -
Attachment is obsolete: true
Comment 7•12 years ago
|
||
Axel, is it intentional that there's no review request on the patch attached in comment 6?
Assignee | ||
Comment 8•12 years ago
|
||
probably not, who should I add for this one?
Updated•12 years ago
|
Attachment #646925 -
Flags: review?(irving)
Comment 9•12 years ago
|
||
Comment on attachment 646925 [details] [diff] [review] moved a comment Review of attachment 646925 [details] [diff] [review]: ----------------------------------------------------------------- Looks fine, works in my quick test. ::: mailnews/base/src/nsStatusBarBiffManager.cpp @@ +170,5 @@ > // if we fail along the way, don't return. > // we still need to update the UI. > if (newValue == nsIMsgFolder::nsMsgBiffState_NewMail) { > + nsresult rv; > + nsCOMPtr<nsIPrefBranch> pref(do_GetService(NS_PREFSERVICE_CONTRACTID, &rv)); This retrieves the pref service twice per notification (once here, and once inside the call to PlayBiffSound()) but I can't see a simple way to only get it once, and it's not a huge performance hit anyway.
Attachment #646925 -
Flags: review?(irving) → review+
Comment 10•12 years ago
|
||
Pushed to comm-central trunk: https://hg.mozilla.org/comm-central/rev/6bbaa1a0d296
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•12 years ago
|
||
Thanks Florian for taking this over. My build system defunct for the last fortnight :(
Updated•12 years ago
|
Target Milestone: --- → Thunderbird 17.0
You need to log in
before you can comment on or make changes to this bug.
Description
•