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)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.1a1
People
(Reporter: lusian, Assigned: lusian)
References
Details
Attachments
(1 file, 1 obsolete file)
5.79 KB,
patch
|
asuth
:
review+
standard8
:
approval-thunderbird3.0.1-
|
Details | Diff | Splinter Review |
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
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #413560 -
Flags: review?(bienvenu)
Updated•16 years ago
|
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 2•16 years ago
|
||
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-
Assignee | ||
Comment 3•16 years ago
|
||
reference to undefined property contactLikeQuery.WILD
Attachment #413560 -
Attachment is obsolete: true
Attachment #413756 -
Flags: superreview?(bienvenu)
Attachment #413756 -
Flags: review?(bugmail)
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 413756 [details] [diff] [review]
Address comment #2
> You don't need sr for test-only patches.
Attachment #413756 -
Flags: superreview?(bienvenu)
Updated•16 years ago
|
Attachment #413756 -
Flags: review?(bugmail) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 5•16 years ago
|
||
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 6•16 years ago
|
||
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?
Comment 7•16 years ago
|
||
(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?
Comment 8•16 years ago
|
||
(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.
Updated•16 years ago
|
Attachment #413756 -
Flags: approval-thunderbird3.0.1? → approval-thunderbird3.0.1-
Comment 9•16 years ago
|
||
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.
Description
•