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-15 13:55:51 +00:00
parent e91c36460b
commit e1328ec198
5 changed files with 18 additions and 1013 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)) {