Bug 431802: node_child_of accessible relation returns wrong object on autocomplete list items, patch by surkov.alexander@gmail.com, r=neil, a=schrep
authorgavin@gavinsharp.com
Sat, 10 May 2008 07:54:42 -0700
changeset 15107 98642924e18457d553b27ad96bad113d9ee836cb
parent 15106 3654cf5aecd72ffbc3af7b1c2e74bb3fc0752426
child 15108 cb0bcaf2770b9941b6cb92527a7c513de5091bc1
push idunknown
push userunknown
push dateunknown
reviewersneil, schrep
bugs431802
milestone1.9pre
Bug 431802: node_child_of accessible relation returns wrong object on autocomplete list items, patch by surkov.alexander@gmail.com, r=neil, a=schrep
toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
--- a/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
+++ b/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
@@ -814,17 +814,17 @@ nsAutoCompleteController::GetLevel(PRInt
 {
   *_retval = 0;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsAutoCompleteController::GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval)
 {
-  *_retval = 0;
+  *_retval = -1;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsAutoCompleteController::HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, PRBool *_retval)
 {
   *_retval = PR_FALSE;
   return NS_OK;