Fix focus-stealing for button elements (bug 299677). Patch by darin, r=me sr=dveditz b181=me.
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195030 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -172,7 +172,9 @@ NS_IMPL_STRING_ATTR_DEFAULT_VALUE(nsHTMLButtonElement, Type, type, "submit")
|
||||
NS_IMETHODIMP
|
||||
nsHTMLButtonElement::Blur()
|
||||
{
|
||||
SetElementFocus(PR_FALSE);
|
||||
if (ShouldFocus(this)) {
|
||||
SetElementFocus(PR_FALSE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user