Closed Bug 370215 Opened 18 years ago Closed 18 years ago

update microsummaries to use unique place: uris for Places bookmarks

Categories

(Firefox Graveyard :: Microsummaries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 3 alpha3

People

(Reporter: myk, Assigned: asaf)

References

Details

Attachments

(1 file)

In bug 360133, bookmarks in Places are getting unique identifiers. The microsummaries code needs to be updated to use those identifiers instead of URIs to refer to the bookmarks it summarizes.
Among other things, this means fixing references in nsMicrosummaryService.js to bookmarkID.spec so that they refer to the PRInt64 equivalent (probably just bookmarkID).
Assignee: nobody → mano
Priority: -- → P2
Target Milestone: --- → Firefox 3 alpha3
Attached patch patch (deleted) — Splinter Review
Attachment #258160 - Flags: review?(myk)
Attachment #258160 - Flags: review?(dietrich)
Comment on attachment 258160 [details] [diff] [review] patch >- _getField: function MSS__getField(bookmarkID, fieldName) { >- var pageURI = bookmarkID.QueryInterface(Ci.nsIURI); >+ _getField: function MSS__getField(aPlaceURI, aFieldName) { >+ aPlaceURI.QueryInterface(Ci.nsIURI); Nit: if I recall correctly, mconnor has said we are standardizing on not having "a" prefixes on method arguments, so these should be prefix-less here and elsewhere. Otherwise, this looks fine. I haven't been able to test, however, as Places is horked on my build.
Attachment #258160 - Flags: review?(myk) → review+
Myk, where did mconnor say (or write) about not using Hungarian notation? (I'm sure you're going to get a bunch of people who like it, and a bunch of people who don't.)
(In reply to comment #5) > Myk, where did mconnor say (or write) about not using Hungarian notation? I don't recall, but I'll ping him shortly to confirm. Perhaps I misunderstood or misattributed that statement to mconnor when it was actually uttered by someone less authoritative. > (I'm sure you're going to get a bunch of people who like it, and a bunch of > people who don't.) Right. We'll never make everyone happy no matter which way we go on this.
(In reply to comment #6) > (In reply to comment #5) > > Myk, where did mconnor say (or write) about not using Hungarian notation? > > I don't recall, but I'll ping him shortly to confirm. Perhaps I misunderstood > or misattributed that statement to mconnor when it was actually uttered by > someone less authoritative. Correction: no-a was Ben's position; yes-a was mconnor's, and we're going with yes-a. So the review stands with the nit rescinded.
Attachment #258160 - Flags: review?(dietrich) → review+
Summary: update microsummaries to use new unique identifiers for Places bookmarks → update microsummaries to use unique place: uris for Places bookmarks
mozilla/browser/components/microsummaries/src/nsMicrosummaryService.js 1.58 mozilla/browser/components/places/content/bookmarkProperties.js 1.35 mozilla/browser/components/places/content/controller.js 1.136 mozilla/browser/components/places/content/toolbar.xml 1.76
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: