Closed Bug 408109 Opened 18 years ago Closed 18 years ago

nsProfileCollector::LogBookmarkLocation does not count bookmarks

Categories

(Toolkit Graveyard :: Data Collection/Metrics, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alex, Assigned: pete)

References

()

Details

Attachments

(1 file)

LogBookmarkLocation is supposed to count the number of bookmarks by type. It is called by the profile collector, and the expected output is something like this: <bookmarks> <bookmarklocation foldercount="4" itemcount="6" separatorcount="2" livemarkcount="1" name="full-tree"/> <bookmarklocation foldercount="2" itemcount="1" separatorcount="2" livemarkcount="0" name="root"/> <bookmarklocation foldercount="0" itemcount="1" separatorcount="0" livemarkcount="1" name="toolbar"/> </bookmarks> That data comes from bug 399869, so it was working at some point. However, it is currently reporting a 0 itemcount for all profiles that are sending data. For example: <bookmarks> <bookmarklocation foldercount="0" itemcount="0" separatorcount="0" livemarkcount="0" name="full-tree"/> <bookmarklocation foldercount="0" itemcount="0" separatorcount="0" livemarkcount="0" name="root"/> <bookmarklocation foldercount="0" itemcount="0" separatorcount="0" livemarkcount="0" name="toolbar"/> </bookmarks> I do not think this is related to bug 356606... but it is possible I missed the connection in the collector.
Status: NEW → ASSIGNED
Ok, I have a patch for this. Here is my bookmarks data w/ the patch <bookmarks> <bookmarklocation foldercount="6" itemcount="6" separatorcount="2" livemarkcount="1" name="full-tree"/> <bookmarklocation foldercount="1" itemcount="1" separatorcount="1" livemarkcount="0" name="root"/> <bookmarklocation foldercount="1" itemcount="1" separatorcount="0" livemarkcount="1" name="toolbar"/> </bookmarks>
Jan can you review this one please ...
> If the output you get is correct then r=varga Yea, in fact as I added an additional bm to my toolbar, I can see the itemcount increment to reflect the change ...
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: