Bug 1380393 part 3. Remove nsIDOMHTMLElement.focus. r=mccr8

This commit is contained in:
Boris Zbarsky
2017-07-13 23:45:50 -04:00
parent 636876c10b
commit 37fa28bf2b
4 changed files with 7 additions and 9 deletions

View File

@@ -4487,7 +4487,9 @@ HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
container->GetNextRadioButton(name, isMovingBack, this,
getter_AddRefs(selectedRadioButton));
if (selectedRadioButton) {
rv = selectedRadioButton->Focus();
ErrorResult error;
selectedRadioButton->Focus(error);
rv = error.StealNSResult();
if (NS_SUCCEEDED(rv)) {
rv = DispatchSimulatedClick(selectedRadioButton,
aVisitor.mEvent->IsTrusted(),