Closed Bug 492804 Opened 16 years ago Closed 16 years ago

remove hasAnno check for bookmark description

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: dietrich, Assigned: dietrich)

References

Details

(Keywords: perf, Whiteboard: [TSnappiness])

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
one less query.
Attachment #377213 - Flags: review?(mak77)
Whiteboard: [TSnappiness]
Attachment #377213 - Flags: review?(mak77) → review+
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)
Attached patch for checkinSplinter Review
Assignee: nobody → dietrich
Attachment #377213 - Attachment is obsolete: true
Whiteboard: [TSnappiness] → [TSnappiness][has patch][has review][can land]
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [TSnappiness][has patch][has review][can land] → [TSnappiness]
Target Milestone: --- → Firefox 3.6a1
Blocks: 498863
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: