зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
32e425dbb4
Коммит
cb644dcb01
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче