Closed
Bug 1290324
Opened 8 years ago
Closed 8 years ago
Remove notifications.xul, notifications.dtd, newmailalert.* and alerts.totalOpenTime preference from OS X builds
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 52.0
People
(Reporter: javirid, Assigned: javirid)
Details
Attachments
(2 files)
5.74 KB,
patch
|
Paenglab
:
review+
philip.chee
:
review+
mkmelin
:
review+
|
Details | Diff | Splinter Review |
1.76 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
On OS X we are using Notification Center for alert the user when new mails arrive. However, we are still including newmailalert.* on the bundle when we release, although they are no referenced from any place for that platform. The preference alerts.totalOpenTime is also in the same problem. The only reference is in newmailalert.* https://dxr.mozilla.org/comm-central/search?q=totalOpenTime&redirect=false The same about notifications.*. They are not used in OS X, as the dialog box loads from the General pane Preferences and the buttin is ifded'd for not-OS X. Test files will be affected as those files will no be found when removed, so the patch should also make something about it.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → leofigueres
Assignee | ||
Comment 1•8 years ago
|
||
Hi :Paenglab This patch removes these files, which are useless in the OS X package as they are not used in the platform. notifications.* are used on the other platform from the General settings pane to setup which information should be shown on the notifications. But not on OS X. newmailalert.* is not used in OS X as we are using the native Notification Center API to tshow the alerts. Theming CSS file for Mac doesn't exist. alerts.totalOpenTime is used also on the other platforms for the same reason as newmailalert ones. I ran mozmill tests (the notifications/ one in mail/test/mozmill) and there where no failed ones and 16 skipped due to "platform exclusiion". Asking tentatively to you, but maybe :aleth is a better guess.
Attachment #8798247 -
Flags: review?(richard.marti)
Comment 2•8 years ago
|
||
Comment on attachment 8798247 [details] [diff] [review] Mozmill Tested patch The mailnews change affects also SM. Adding Ratty to be sure we don't break SM on OS X.
Attachment #8798247 -
Flags: review?(philip.chee)
Comment 3•8 years ago
|
||
Comment on attachment 8798247 [details] [diff] [review] Mozmill Tested patch LGTM
Attachment #8798247 -
Flags: review?(richard.marti) → review+
Comment 4•8 years ago
|
||
Comment on attachment 8798247 [details] [diff] [review] Mozmill Tested patch Review of attachment 8798247 [details] [diff] [review]: ----------------------------------------------------------------- Not sure if TB has platform-specific default prefs. I assume the idea of this patch is to not ship some effectively dead code on OS X.
Attachment #8798247 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 5•8 years ago
|
||
All four files have been modified on the patch by IFNDEFing for OS X, so other platforms aren't affected. This patch aims to avoid shipping to the final user files and preferences that will not be used on OS X.
Comment 6•8 years ago
|
||
Comment on attachment 8798247 [details] [diff] [review] Mozmill Tested patch Review of attachment 8798247 [details] [diff] [review]: ----------------------------------------------------------------- LGTM! r=mkmelin
Attachment #8798247 -
Flags: review?(mkmelin+mozilla) → review+
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•8 years ago
|
||
Ping Philip Chee (:Ratty?)
Comment 8•8 years ago
|
||
Comment on attachment 8798247 [details] [diff] [review] Mozmill Tested patch looks reasonable. Make it so.
Attachment #8798247 -
Flags: review?(philip.chee) → review+
Assignee | ||
Comment 9•8 years ago
|
||
There have been three reviews of the patch. However, it is never a bad practice to ask one more. Anything to say before I ask for check-in, :aleth?
Flags: needinfo?(aleth)
Comment 10•8 years ago
|
||
https://hg.mozilla.org/comm-central/rev/e768dd761076c3ba33b7c277c430160507c35eaf Bug 1290324 - Remove notifications.xul, notifications.dtd, newmailalert.* and alerts.totalOpenTime preference on OS X. r=paenglab,mkmelin,philip.chee a=philip.chee
Comment 11•8 years ago
|
||
That SM review took so long the patch bitrotted ;) Fixed on checkin.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(aleth)
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
Comment 12•8 years ago
|
||
Aleth, Javi, have you noticed that ever since this landed here https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=e768dd761076c3ba33b7c277c430160507c35eaf there are heaps of Mozmill failures. The tests fail like this: 18:49:33 INFO - SUMMARY-UNEXPECTED-FAIL | test-notification.js | test-notification.js::setupTest 18:49:33 INFO - EXCEPTION: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getIntPref] 18:49:33 INFO - at: nonesuch line 151 18:49:33 INFO - setupTest test-notification.js:151 20 You removed pref("alerts.totalOpenTime", 10000); on Mac, so Services.prefs.setIntPref("alerts.totalOpenTime", gTotalOpenTime); and gTotalOpenTime = Services.prefs.getIntPref("alerts.totalOpenTime"); Services.prefs.setIntPref("alerts.totalOpenTime", 3000); obviously now fail. Please fix the test in the next few days or I'll back out this bug :-(
Status: RESOLVED → REOPENED
Flags: needinfo?(leofigueres)
Flags: needinfo?(aleth)
Resolution: FIXED → ---
Comment 14•8 years ago
|
||
Thanks, I only meant to threaten a tiny bit since we need to keep our tree green and branch day is coming soon. On M-C this would have been backed out immediately with no mercy at all. Actually, it's good practice to check the tree after a landing to see whether anything broke.
Assignee | ||
Comment 15•8 years ago
|
||
It was my fault. I tested on Mozmill, but before fixing the totalOpenTime part, so it didn't failed then. My new patch now passes all of them, excepting the ones which should be skipped. It just doesn't do anything with the now removed preference if Mozmill is running in OS X (Darwin). It is using Services.jsm, as the rest of the file it modifies. Could you take a look into this fix, Magnus? Thank you.
Attachment #8808797 -
Flags: review?(mkmelin+mozilla)
Comment 16•8 years ago
|
||
Comment on attachment 8808797 [details] [diff] [review] Fixing mozmill bust Very nice. Thanks, exactly what I was going to suggest. Let me land this with a bug of mine in the next hour. Thanks for the quick reply.
Flags: needinfo?(aleth)
Attachment #8808797 -
Flags: review?(mkmelin+mozilla) → review+
Comment 17•8 years ago
|
||
https://hg.mozilla.org/comm-central/rev/e4ab5c338d81d9c1e457364141e9aeac5fcfe422
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•