From 9c6f79eff6a965abb3eac8b65186a8991ef480e7 Mon Sep 17 00:00:00 2001 From: "mozilla.mano@sent.com" Date: Mon, 9 Apr 2007 17:42:13 -0700 Subject: [PATCH] Bug 376954 - Document about when accessing childCount throws. patch from Johnathan Nightingale , r=me. --- toolkit/components/places/public/nsINavHistoryService.idl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/components/places/public/nsINavHistoryService.idl b/toolkit/components/places/public/nsINavHistoryService.idl index 4c14da7f45ea..b345a087bca8 100644 --- a/toolkit/components/places/public/nsINavHistoryService.idl +++ b/toolkit/components/places/public/nsINavHistoryService.idl @@ -245,6 +245,8 @@ interface nsINavHistoryContainerResultNode : nsINavHistoryResultNode * This gives you the children of the nodes. It is preferrable to use this * interface over the array one, since it avoids creating an nsIArray object * and the interface is already the correct type. + * + * @throws NS_ERROR_NOT_AVAILABLE if containerOpen is false. */ readonly attribute PRUint32 childCount; nsINavHistoryResultNode getChild(in PRUint32 index);