Closed
Bug 258337
Opened 21 years ago
Closed 20 years ago
extension manager nsExtensionsDataSource_addItemMetadata uses wrong array length in a loop
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8final
People
(Reporter: ted, Assigned: ted)
References
()
Details
Attachments
(2 obsolete files)
http://lxr.mozilla.org/aviarybranch/source/toolkit/mozapps/extensions/src/nsExtensionManager.js.in#3750
3749 var manyProps = ["contributor"];
3750 for (var i = 0; i < singleProps.length; ++i) {
3751 var property = this._emR(manyProps[i]);
3750 uses singleProps.length, when it really means to use manyProps.length.
| Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
It's 1 line. You know you want to r=.
Attachment #158140 -
Flags: review?(mconnor)
Comment 3•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
diff -u6 at least, -u8 is preferable especially on short patches like this.
Attachment #158140 -
Flags: review?(mconnor) → review+
| Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
Trivial bugfix, it ought to make 1.0.
Attachment #158140 -
Flags: approval-aviary?
Comment 5•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
a=asa for aviary checkin.
Attachment #158140 -
Flags: approval-aviary? → approval-aviary+
| Assignee | ||
Comment 6•21 years ago
|
||
Could someone check this in for me?
Comment 7•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
need re-approval now that we're past 1.0 RC. setting back to request.
Attachment #158140 -
Flags: approval-aviary+ → approval-aviary?
Comment 8•21 years ago
|
||
Comment on attachment 158140 [details] [diff] [review]
Use the right array length
too late for 1.0
Attachment #158140 -
Flags: approval-aviary? → approval-aviary-
| Assignee | ||
Updated•20 years ago
|
Whiteboard: checkin-needed
Comment 11•20 years ago
|
||
Who can review and land this?
Comment 12•20 years ago
|
||
Comment on attachment 177801 [details] [diff] [review]
Updated to trunk
[Checkin: See comment 14]
r=darin
I don't know this code, but clearly if this code is indexing manyProps in the
loop body with i, then i should range from 0 to manyProps.length.
Attachment #177801 -
Flags: review+
Comment 13•20 years ago
|
||
Please do not land this until Ben's EM rewrite lands.
Comment 14•20 years ago
|
||
This was fixed by the checkin of the patch in bug 291946
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
OS: All → Windows XP
Hardware: All → PC
Resolution: --- → FIXED
Updated•20 years ago
|
Attachment #177801 -
Attachment description: Updated to trunk → Updated to trunk
[Checkin: See comment 14]
Attachment #177801 -
Attachment is obsolete: true
Updated•20 years ago
|
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•