Closed
Bug 492804
Opened 16 years ago
Closed 16 years ago
remove hasAnno check for bookmark description
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 3.6a1
People
(Reporter: dietrich, Assigned: dietrich)
References
Details
(Keywords: perf, Whiteboard: [TSnappiness])
Attachments
(1 file, 1 obsolete file)
|
1.31 KB,
patch
|
Details | Diff | Splinter Review |
one less query.
Attachment #377213 -
Flags: review?(mak77)
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [TSnappiness]
Updated•16 years ago
|
Attachment #377213 -
Flags: review?(mak77) → review+
Comment 1•16 years ago
|
||
Comment on attachment 377213 [details] [diff] [review]
v1
>diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js
> case this.COLUMN_TYPE_DESCRIPTION:
>- const annos = PlacesUtils.annotations;
>- if (annos.itemHasAnnotation(node.itemId, DESCRIPTION_ANNO))
>- return annos.getItemAnnotation(node.itemId, DESCRIPTION_ANNO)
>+ if (node.itemId != -1) {
>+ const annos = PlacesUtils.annotations;
is this really needed?
>+ try {
>+ return annos.getItemAnnotation(node.itemId, DESCRIPTION_ANNO)
missing final semicolon.
>+ }
>+ catch (ex) {
>+ /* has no description */
>+ }
what about making catch on a single line: catch (ex) { /* has no description */ } ? looks like should be easier to follow what code is doing (feel free to ignore me here if you prefer this style)
| Assignee | ||
Comment 2•16 years ago
|
||
Assignee: nobody → dietrich
Attachment #377213 -
Attachment is obsolete: true
| Assignee | ||
Updated•16 years ago
|
Whiteboard: [TSnappiness] → [TSnappiness][has patch][has review][can land]
Comment 3•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [TSnappiness][has patch][has review][can land] → [TSnappiness]
Target Milestone: --- → Firefox 3.6a1
You need to log in
before you can comment on or make changes to this bug.
Description
•