Closed Bug 364403 Opened 18 years ago Closed 17 years ago

add simple test to history to add a visit with a title/url, and then retrieve it

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 384226

People

(Reporter: moco, Unassigned)

References

()

Details

add simple test to history to add a visit with a title/url, and then retrieve it the code to retrieve it will look something like: + var histsvc = + Components.classes["@mozilla.org/browser/nav-history-service;1"] + .getService(Components.interfaces.nsINavHistoryService); + + // query for the URL + var options = histsvc.getNewQueryOptions(); + options.resultType = options.RESULTS_AS_URI; + var query = histsvc.getNewQuery(); + query.uri = IOSVC.newURI(aURL, null, null); + var result = histsvc.executeQuery(query, options); + var root = result.root; + root.containerOpen = true; + var cc = root.childCount; + for (var i=0; i < cc && !title; ++i) { + var node = root.getChild(i); + title = node.title; + } where IOSVC is the ioservice.
I think this is covered by bug 384226 Marking as a DUPE.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
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. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.