Closed
Bug 997638
Opened 11 years ago
Closed 11 years ago
JavaScript strict warning: chrome://messenger/content/virtualFolderProperties.js, line 71: assignment to undeclared variable folderNameField
Categories
(Thunderbird :: Folder and Message Lists, defect)
Thunderbird
Folder and Message Lists
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 31.0
People
(Reporter: ishikawa, Assigned: ishikawa)
Details
Attachments
(1 file, 1 obsolete file)
|
1.09 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
During running |make mozmill| test suite of full debug build of
comm-central TB, I have begun seeing the following warning for some time now.
JavaScript strict warning: chrome://messenger/content/virtualFolderProperties.js, line 71: assignment to undeclared variable folderNameField
I checked and found out that
folderNameField is not properly declared and used in the file,
mailnews/base/content/virtualFolderProperties.js
I am not sure if the variable is shared among the
routines in the file, but I assumed so, and
created the patch attached.
This patch has eliminated the "undeclared variable folderNameField" message.
TIA
| Assignee | ||
Comment 1•11 years ago
|
||
Comment on attachment 8408076 [details] [diff] [review]
Suggested Patch
Requesting a review to alt88@gmail.com.
TIA
Attachment #8408076 -
Flags: review?(alta88)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → ishikawa
Comment on attachment 8408076 [details] [diff] [review]
Suggested Patch
Review of attachment 8408076 [details] [diff] [review]:
-----------------------------------------------------------------
The var name refers to 2 different dom nodes even though the same name is reused, so it's not really a global. I think the better solution is to just declare
let folderNameField =
in line 71.
r+ with that (I'm probably ok to r for this nit).
Attachment #8408076 -
Flags: review?(alta88) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
> The var name refers to 2 different dom nodes even though the same name is
> reused, so it's not really a global. I think the better solution is to just
> declare
>
> let folderNameField =
>
> in line 71.
>
> r+ with that (I'm probably ok to r for this nit).
Thank you for the clarification.
Does this look OK?
Attachment #8408259 -
Flags: review+
| Assignee | ||
Comment 5•11 years ago
|
||
(In reply to alta88 from comment #4)
> yes, thanks!
Thank you.
I am going to put checkin-needed keyword.
Maybe Ryan will figure out if we need someone else's review.
TIA
Keywords: checkin-needed
Updated•11 years ago
|
Attachment #8408076 -
Attachment is obsolete: true
Comment 6•11 years ago
|
||
Why do I need to be the one to tell you that a module peer needs to review this?
Keywords: checkin-needed
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #6)
> Why do I need to be the one to tell you that a module peer needs to review
> this?
Oops. Sorry about this. My attention span was not covering this bugzilla after reading comment 2 :-)
According to https://wiki.mozilla.org/Modules/Thunderbird
it seems only
Owner: David Bienvenu (:bienvenu), Mark Banner (:standard8),
can answer this?
Hard to believe, but there is no "(recommended)" mark appearing next to the
box shown for requesting review. So I am putting Mark Banner in the field.
TIA
| Assignee | ||
Updated•11 years ago
|
Attachment #8408259 -
Flags: review+ → review?(standard8)
Updated•11 years ago
|
Attachment #8408259 -
Flags: review?(standard8) → review+
| Assignee | ||
Comment 8•11 years ago
|
||
Thank you.
I put the checkin-needed keyword.
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 31.0
Comment 10•11 years ago
|
||
(In reply to ISHIKAWA, Chiaki from comment #7)
> (In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #6)
> > Why do I need to be the one to tell you that a module peer needs to review
> > this?
>
> Oops. Sorry about this. My attention span was not covering this bugzilla
> after reading comment 2 :-)
>
> According to https://wiki.mozilla.org/Modules/Thunderbird
You do not need to escalate to the top level owners for small stuff like this. You first looks into the various modules/components listed there.
Also, as this stuff was in /mailnews, you need to look at https://wiki.mozilla.org/Modules/MailNews_Core .
The virtual folders are a subset of MailNews Core::Search .
You need to log in
before you can comment on or make changes to this bug.
Description
•