Closed Bug 1755553 Opened 3 years ago Closed 3 years ago

Fix a few strict warnings in SeaMonkey

Categories

(SeaMonkey :: General, enhancement)

enhancement
Not set
normal

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
Future
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: frg, Assigned: frg)

Details

(Whiteboard: SM2.53.12)

Attachments

(1 file, 1 obsolete file)

When enabling strict checking a few warnings about undefined variables and incorrect use of tab.hidden pop up in the error console.

Attached patch 1755553-fixhidden-25312.patch (obsolete) — Splinter Review

tab,hidden is getter only and can not be set directly.
[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: tab status not correctly restored.
Testing completed (on m-c, etc.): 2.53.12b1 pre
Risk to taking this patch (and alternatives if risky): low risk
String changes made by this patch: --

Attachment #9264047 - Flags: review?(iannbugzilla)
Attachment #9264047 - Flags: approval-comm-release?
Attachment #9264047 - Flags: approval-comm-esr60?

A few undefined variables.
[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: none until we enable strict mode then it breaks.
Testing completed (on m-c, etc.): 2.53.12b1 pre
Risk to taking this patch (and alternatives if risky): trivial.
String changes made by this patch: --

Attachment #9264048 - Flags: review?(iannbugzilla)
Attachment #9264048 - Flags: approval-comm-release?
Attachment #9264048 - Flags: approval-comm-esr60?

Comment on attachment 9264047 [details] [diff] [review]
1755553-fixhidden-25312.patch

[Triage Comment]
LGTM r/a=me

Attachment #9264047 - Flags: review?(iannbugzilla)
Attachment #9264047 - Flags: review+
Attachment #9264047 - Flags: approval-comm-release?
Attachment #9264047 - Flags: approval-comm-release+
Attachment #9264047 - Flags: approval-comm-esr60?
Attachment #9264047 - Flags: approval-comm-esr60+

Comment on attachment 9264048 [details] [diff] [review]
1755553-strict-25312.patch

[Triage Comment]
LGTM r/a=me

Attachment #9264048 - Flags: review?(iannbugzilla)
Attachment #9264048 - Flags: review+
Attachment #9264048 - Flags: approval-comm-release?
Attachment #9264048 - Flags: approval-comm-release+
Attachment #9264048 - Flags: approval-comm-esr60?
Attachment #9264048 - Flags: approval-comm-esr60+

Comment on attachment 9264047 [details] [diff] [review]
1755553-fixhidden-25312.patch

Didn't notice that this was already fixed in central via Bug 1479890 so we can take this patch instead.

Attachment #9264047 - Attachment is obsolete: true
Attachment #9264047 - Flags: review+
Attachment #9264047 - Flags: approval-comm-release+
Attachment #9264047 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/c5eea7f78fda
Fix some uninitialized variables to please strict mode. r=IanN

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/f43ef6b211df6dc1daeec37c591c220f83bd751f
Fix some uninitialized variables to please strict mode. r=IanN a=IanN

Target Milestone: --- → Future
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: