Bug 533688 Firefox 3.6 failed to start with AT-SPI2 0.1.3 r=david.bolter

This commit is contained in:
Ginn Chen 2009-12-16 19:21:48 +08:00
parent 500bd257c9
commit 10cae7a19c
2 changed files with 6 additions and 3 deletions

View File

@ -925,10 +925,10 @@ refChildCB(AtkObject *aAtkObj, gint aChildIndex)
NS_ASSERTION(childAtkObj, "Fail to get AtkObj");
if (!childAtkObj)
return nsnull;
g_object_ref(childAtkObj);
//this will addref parent
atk_object_set_parent(childAtkObj, aAtkObj);
g_object_ref(childAtkObj);
return childAtkObj;
}

View File

@ -947,9 +947,12 @@ nsRootAccessible::Init()
nsRefPtr<nsApplicationAccessibleWrap> root = GetApplicationAccessible();
NS_ENSURE_STATE(root);
nsresult rv = nsDocAccessibleWrap::Init();
if (NS_SUCCEEDED(rv))
root->AddRootAccessible(this);
return nsDocAccessibleWrap::Init();
return rv;
}
nsresult