зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
cdb091f2cb
Коммит
7274cc57a6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче