Closed
Bug 868604
Opened 12 years ago
Closed 12 years ago
JavaScript Warning "test for equality (==) mistyped as assignment (=)?" in "chrome://browser/content/downloads.js"
Categories
(Firefox for Android Graveyard :: Download Manager, defect)
Firefox for Android Graveyard
Download Manager
Tracking
(firefox22 wontfix, firefox23 fixed)
RESOLVED
FIXED
Firefox 23
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
Attachments
(2 files)
2.24 KB,
patch
|
bnicholson
:
review+
|
Details | Diff | Splinter Review |
1.80 KB,
patch
|
cpeterson
:
review+
|
Details | Diff | Splinter Review |
I see this annoying warning in logcat every time I start Firefox:
E/GeckoConsole(30193): [JavaScript Warning: "SyntaxError: test for equality (==) mistyped as assignment (=)?" {file: "chrome://browser/content/downloads.js" line: 103 column: 50 source: " while (download = this._privateDownloads.pop()) {
Attachment #745361 -
Flags: review?(bnicholson)
Comment 1•12 years ago
|
||
Comment on attachment 745361 [details] [diff] [review]
fix-downloads-warning.patch
If you don't want the extra code, I think adding an extra set of parentheses inside of the while loop will make the assignment explicit and avoids this warning.
Attachment #745361 -
Flags: review?(bnicholson) → review+
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Brian Nicholson (:bnicholson) from comment #1)
> Comment on attachment 745361 [details] [diff] [review]
> fix-downloads-warning.patch
>
> If you don't want the extra code, I think adding an extra set of parentheses
> inside of the while loop will make the assignment explicit and avoids this
> warning.
I'll use your suggestion. :)
(carrying forward r=bnicholson)
Attachment #745430 -
Flags: review+
Assignee | ||
Comment 3•12 years ago
|
||
status-firefox22:
--- → wontfix
status-firefox23:
--- → fixed
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•