Closed Bug 530032 Opened 16 years ago Closed 16 years ago

xpcshell-tests in /mailnews/db/ fail on JS strict mode

Categories

(MailNews Core :: Backend, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.1a1

People

(Reporter: lusian, Assigned: lusian)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091119 Minefield/3.7a1pre (.NET CLR 3.5.30729) Build Identifier: xpcshell uni tests in /mailnews/db/ fail on JS strict mode Reproducible: Always
Blocks: 524781
Attached patch Fix JS strict warnings (obsolete) — Splinter Review
Attachment #413560 - Flags: review?(bienvenu)
Assignee: nobody → lusian
Severity: trivial → minor
Status: UNCONFIRMED → ASSIGNED
Component: General → Backend
Ever confirmed: true
Product: Testing → MailNews Core
QA Contact: general → backend
Target Milestone: --- → Thunderbird 3.1a1
Version: unspecified → Trunk
Comment on attachment 413560 [details] [diff] [review] Fix JS strict warnings thx for looking at this. this looks like more than a warning fix, and you'll need to ask :asuth about it: + contactLikeQuery.nameLike(contactLikeQuery.WILDCARD, personNameSubstring, + contactLikeQuery.WILDCARD); +var gMessageGenerator; + since this is only used in setupGlobals, it can be changed to let gMessageGenerator = new MessageGenerator(); and in fact, since it's not a global, the name could just be messageGenerator.
Attachment #413560 - Flags: review?(bienvenu) → review-
reference to undefined property contactLikeQuery.WILD
Attachment #413560 - Attachment is obsolete: true
Attachment #413756 - Flags: superreview?(bienvenu)
Attachment #413756 - Flags: review?(bugmail)
Comment on attachment 413756 [details] [diff] [review] Address comment #2 > You don't need sr for test-only patches.
Attachment #413756 - Flags: superreview?(bienvenu)
Attachment #413756 - Flags: review?(bugmail) → review+
Keywords: checkin-needed
Checked in: http://hg.mozilla.org/comm-central/rev/29b8e3f6c26e Sorry, I forgot to set the correct username on push.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Comment on attachment 413756 [details] [diff] [review] Address comment #2 I guess this (fix) would be wanted on c-1.9.1 too. Should be no risk.
Attachment #413756 - Flags: approval-thunderbird3.0.1?
(In reply to comment #3) > Created an attachment (id=413756) [details] Andrew, am I right that without the mailnews/ changes in this patch we'll function exactly the same (with the addition of a strict warning)? i.e. the only bug this patch fixes is the strict warning?
(In reply to comment #7) > Andrew, am I right that without the mailnews/ changes in this patch we'll > function exactly the same (with the addition of a strict warning)? i.e. the > only bug this patch fixes is the strict warning? Yes, I believe the WILD/WILDCARD fix does not actually affect the code flow. I think in a previous investigation I noticed the problem and got concerned then noticed the control flow ends up in the same place no matter what and forgot about the problem.
Attachment #413756 - Flags: approval-thunderbird3.0.1? → approval-thunderbird3.0.1-
Comment on attachment 413756 [details] [diff] [review] Address comment #2 Based on Andrew's comment, I don't think we need this on branch.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: