Closed Bug 1755550 Opened 2 years ago Closed 2 years ago

Fix strict warning for SeaMonkey startup when checking mail and news defaults.

Categories

(SeaMonkey :: MailNews: Backend, enhancement)

enhancement
Not set
normal

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
seamonkey2.53
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: frg, Assigned: frg)

References

(Blocks 1 open bug)

Details

(Whiteboard: SM2.53.12)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1475867 +++

Bug 1475867 changed only the suite internal usage of nsIShellService but missed the reference in mailnews.
Given that the dialog is only defined in SeaMonkey make the implementation suite only. The affected code is no longer usable/called in comm-central because the accountUtils code was unfortunately made "tab only" and unusable in bug 1697575 so this is for 2.53 and 2.57 only right now until we have forked and restored the original functionality.

For 2.53.x and 2.57 only.
[Approval Request Comment]
Regression caused by (bug #): Bug 1063529
User impact if declined: current default setting not checked right during startup
Testing completed (on m-c, etc.): 2.53.12b1 pre
Risk to taking this patch (and alternatives if risky): broken already.
String changes made by this patch: --

Assignee: nobody → frgrahl
Status: NEW → ASSIGNED
Attachment #9264045 - Flags: review?(iannbugzilla)
Attachment #9264045 - Flags: approval-comm-release?
Attachment #9264045 - Flags: approval-comm-esr60?
Whiteboard: SM2.53.12
Comment on attachment 9264045 [details] [diff] [review]
1755550-fixdefaultclient-25312.patch

>+++ b/mailnews/base/prefs/content/accountUtils.js
>+    // the default for mail/news and are not the default client for mail/news.
>+    if (appTypesCheck &&  ShellService.shouldCheckDefaultClient &&
Nit: only need a single space here
>+        ! ShellService.isDefaultClient(true, appTypesCheck))
Nit: no space needed between ! and S

r/a = me with those fixed.
Attachment #9264045 - Flags: review?(iannbugzilla)
Attachment #9264045 - Flags: review+
Attachment #9264045 - Flags: approval-comm-release?
Attachment #9264045 - Flags: approval-comm-release+
Attachment #9264045 - Flags: approval-comm-esr60?
Attachment #9264045 - Flags: approval-comm-esr60+

2.53.12+ only at the moment:
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/71bea9b2108dea26aacb73f21f684d43b73df08c
Use ShellService.jsm for checking default client. r=IanN a=IanN

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: