Bug 1824374 - implement popover activation behavior, r=emilio

See https://html.spec.whatwg.org/#the-input-element:popover-target-attribute-activation-behavior

Differential Revision: https://phabricator.services.mozilla.com/D175485
This commit is contained in:
Alexander Surkov
2023-04-17 18:10:13 +00:00
parent 3b44166a95
commit affc606a66
4 changed files with 18 additions and 5 deletions

View File

@@ -4083,7 +4083,10 @@ nsresult HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor) {
default:
break;
} // switch
} // click or outer activate event
if (IsButtonControl()) {
HandlePopoverTargetAction();
}
} // click or outer activate event
} else if ((aVisitor.mItemFlags & NS_IN_SUBMIT_CLICK) &&
(oldType == FormControlType::InputSubmit ||
oldType == FormControlType::InputImage)) {