mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-27 12:51:25 +00:00
Issue #1557 - Allow event dispatch on disabled form controls.
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=329509 This seems to resolve #1356 without causing #1557. Also reverts previous changes as they no longer appear to serve a purpose.
This commit is contained in:
@@ -63,9 +63,9 @@ NS_IMPL_STRING_ATTR(HTMLFieldSetElement, Name, name)
|
||||
NS_IMPL_NSICONSTRAINTVALIDATION(HTMLFieldSetElement)
|
||||
|
||||
bool
|
||||
HTMLFieldSetElement::IsDisabledForEvents(EventMessage aMessage)
|
||||
HTMLFieldSetElement::IsDisabledForEvents(WidgetEvent* aEvent)
|
||||
{
|
||||
return IsElementDisabledForEvents(aMessage, nullptr);
|
||||
return IsElementDisabledForEvents(aEvent, nullptr);
|
||||
}
|
||||
|
||||
// nsIContent
|
||||
@@ -74,7 +74,7 @@ HTMLFieldSetElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
|
||||
{
|
||||
// Do not process any DOM events if the element is disabled.
|
||||
aVisitor.mCanHandle = false;
|
||||
if (IsDisabledForEvents(aVisitor.mEvent->mMessage)) {
|
||||
if (IsDisabledForEvents(aVisitor.mEvent)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user