Closed
Bug 507058
Opened 16 years ago
Closed 16 years ago
nsNavBookmarks::GetBookmarkIdsForURITArray binds to a bogus index
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | beta1-fixed |
People
(Reporter: sdwilsh, Assigned: mak)
References
Details
Attachments
(1 file)
|
979 bytes,
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
We have this line of code:
mDBFindURIBookmarks->BindInt32Parameter(1, TYPE_BOOKMARK);
however, mDBFindURIBookmarks has only one parameter at index zero. We should really fix that, and get a unit test for it.
I'm seeing this in startup, when we call PU_getMostRecentBookmarkForURI.
Flags: blocking1.9.2?
| Assignee | ||
Comment 1•16 years ago
|
||
argh, thank you for catching this
| Assignee | ||
Comment 2•16 years ago
|
||
this does not affect 1.9.1
| Assignee | ||
Comment 3•16 years ago
|
||
getting a specific unit test would be hard, there is no error check on that line, so the error is simply ignored and the method works correctly, even now. It's just a spurious call, not even sure it should block since the method works and is tested through getBookmarkIdsForURI.
| Reporter | ||
Comment 4•16 years ago
|
||
Oh - awesome. I just noticed that I was getting an NS_ENSURE_TRUE failure in my console with some of my storage patches applied.
| Assignee | ||
Comment 5•16 years ago
|
||
Attachment #391547 -
Flags: review?(sdwilsh)
| Reporter | ||
Updated•16 years ago
|
Attachment #391547 -
Flags: review?(sdwilsh) → review+
| Reporter | ||
Comment 6•16 years ago
|
||
Comment on attachment 391547 [details] [diff] [review]
patch v1.0
r=sdwilsh
| Assignee | ||
Comment 7•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Updated•16 years ago
|
status1.9.2:
--- → beta1-fixed
Flags: blocking1.9.2? → blocking1.9.2+
You need to log in
before you can comment on or make changes to this bug.
Description
•