Bug 1459693, ensure the right anonymous element is focused when calling input.focus(), r=mccr8
This commit is contained in:
@@ -3178,7 +3178,8 @@ HTMLInputElement::Focus(ErrorResult& aError)
|
||||
nsNumberControlFrame* numberControlFrame =
|
||||
do_QueryFrame(GetPrimaryFrame());
|
||||
if (numberControlFrame) {
|
||||
HTMLInputElement* textControl = numberControlFrame->GetAnonTextControl();
|
||||
RefPtr<HTMLInputElement> textControl =
|
||||
numberControlFrame->GetAnonTextControl();
|
||||
if (textControl) {
|
||||
textControl->Focus(aError);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user