Bug 213273 Browser just exits when open a link in a new tab while running with gtk 2.2 and atk libraries
r=kyle, sr=henry not for default build git-svn-id: svn://10.0.0.236/trunk@145316 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2953967adc
commit
03e4cbfcfe
@ -436,7 +436,14 @@ NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
|
||||
}
|
||||
#else
|
||||
AtkStateChange stateData;
|
||||
if (eventType.EqualsIgnoreCase("focus") ||
|
||||
if (eventType.EqualsIgnoreCase("unload")) {
|
||||
nsCOMPtr<nsPIAccessibleDocument> privateAccDoc =
|
||||
do_QueryInterface(accessible);
|
||||
if (privateAccDoc) {
|
||||
privateAccDoc->Destroy();
|
||||
}
|
||||
}
|
||||
else if (eventType.EqualsIgnoreCase("focus") ||
|
||||
eventType.EqualsIgnoreCase("DOMMenuItemActive")) {
|
||||
if (treeItemAccessible) { // use focused treeitem
|
||||
privAcc = do_QueryInterface(treeItemAccessible);
|
||||
|
||||
@ -395,9 +395,6 @@ nsWindow::Destroy(void)
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
if (mRootAccessible) {
|
||||
nsCOMPtr<nsPIAccessNode> accNode(do_QueryInterface(mRootAccessible));
|
||||
if (accNode)
|
||||
accNode->Shutdown();
|
||||
mRootAccessible = nsnull;
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user