Backed out changeset 241b4b54e654 (bug 1824374) for causing failures at popover-invoking-attribute.html.
This commit is contained in:
@@ -3202,11 +3202,12 @@ Element* nsINode::GetNearestInclusiveTargetPopoverForInvoker() const {
|
||||
nsGenericHTMLElement* nsINode::GetEffectivePopoverTargetElement() const {
|
||||
const auto* formControl =
|
||||
nsGenericHTMLFormControlElementWithState::FromNode(this);
|
||||
if (!formControl || formControl->IsDisabled() ||
|
||||
!formControl->IsButtonControl()) {
|
||||
if (!formControl || !formControl->IsConceptButton() ||
|
||||
formControl->IsDisabled() ||
|
||||
(formControl->GetForm() && formControl->IsSubmitControl())) {
|
||||
return nullptr;
|
||||
}
|
||||
if (auto* popover = nsGenericHTMLElement::FromNodeOrNull(
|
||||
if (auto* popover = nsGenericHTMLElement::FromNode(
|
||||
formControl->GetPopoverTargetElement())) {
|
||||
if (popover->GetPopoverState() != PopoverState::None) {
|
||||
return popover;
|
||||
|
||||
Reference in New Issue
Block a user