nsINavHistoryFolderResultNode is undefined




Bookmarks & History
11 years ago
9 years ago


(Reporter: Christopher Finke, Unassigned)


Firefox Tracking Flags

(Not tracked)




11 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007101304 Minefield/3.0a9pre
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a9pre) Gecko/2007101304 Minefield/3.0a9pre

In the code examples for querying Places, it says that a RESULT_TYPE_FOLDER result can be traversed by converting it to a folder by doing the following:

var folder = node.QueryInterface(Ci.nsINavHistoryFolderResultNode);
dump("Folder " + folder.title + " id = " + folder.folderId + "\n");

( http://developer.mozilla.org/en/docs/Places:Query_System#Using_the_results )

However, in every situation I have encountered, Ci.nsINavHistoryFolderResultNode appears to be undefined.

Reproducible: Always

Steps to Reproduce:
1. In extension chrome, run this: alert(Components.interfaces.nsINavHistoryFolderResultNode);

Actual Results:  
alerts "undefined"

Expected Results:  
alerts the actual value
That interface was removed in bug 372508 (attachment 264606 [details] [diff] [review]). Sounds like that documentation needs to be updated.
OS: Mac OS X → All
Hardware: Macintosh → All
Yes, this is a documentation bug.

I've updated that page, as well as all other instances of nsINavHistoryFolderResultNode on MDC.

In your example, you don't need to QI that node to anything different, and can use node.title and node.itemId.
Last Resolved: 11 years ago
Resolution: --- → FIXED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.