Bug 348357 - should nsGlobalWindow::Focus() return NS_ERROR_FAILURE or NS_OK if we try to set focus on a disabled element?, r=jst, sr=roc

This commit is contained in:
martijn.martijn%gmail.com 2006-11-18 06:36:58 +00:00
Родитель 32e425dbb4
Коммит cb644dcb01
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3576,7 +3576,7 @@ nsGlobalWindow::Focus()
PRBool isEnabled = PR_TRUE;
if (NS_SUCCEEDED(treeOwnerAsWin->GetEnabled(&isEnabled)) && !isEnabled) {
NS_WARNING( "Should not try to set the focus on a disabled window" );
return NS_ERROR_FAILURE;
return NS_OK;
}
treeOwnerAsWin->SetVisibility(PR_TRUE);