mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09: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:
parent
675d15f7f8
commit
f6b3f2c38b
14 changed files with 35 additions and 26 deletions
|
|
@ -498,18 +498,18 @@ HTMLTextAreaElement::GetAttributeMappingFunction() const
|
|||
}
|
||||
|
||||
bool
|
||||
HTMLTextAreaElement::IsDisabledForEvents(EventMessage aMessage)
|
||||
HTMLTextAreaElement::IsDisabledForEvents(WidgetEvent* aEvent)
|
||||
{
|
||||
nsIFormControlFrame* formControlFrame = GetFormControlFrame(false);
|
||||
nsIFrame* formFrame = do_QueryFrame(formControlFrame);
|
||||
return IsElementDisabledForEvents(aMessage, formFrame);
|
||||
return IsElementDisabledForEvents(aEvent, formFrame);
|
||||
}
|
||||
|
||||
nsresult
|
||||
HTMLTextAreaElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
|
||||
{
|
||||
aVisitor.mCanHandle = false;
|
||||
if (IsDisabledForEvents(aVisitor.mEvent->mMessage)) {
|
||||
if (IsDisabledForEvents(aVisitor.mEvent)) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue