summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLInputElement.cpp
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-05-21 01:31:48 -0500
committerathenian200 <athenian200@outlook.com>2020-05-21 01:31:48 -0500
commit0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9 (patch)
treea718c93bec7faed8e7da1a11c5ecafac43b6d571 /dom/html/HTMLInputElement.cpp
parenta965486fcbf3f199b5c7564bfc0526df72c862d5 (diff)
downloadUXP-0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9.tar
UXP-0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9.tar.gz
UXP-0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9.tar.lz
UXP-0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9.tar.xz
UXP-0a19762d3bb5f6bcaa00a8f168e469d9fdda76b9.zip
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.
Diffstat (limited to 'dom/html/HTMLInputElement.cpp')
-rw-r--r--dom/html/HTMLInputElement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/html/HTMLInputElement.cpp b/dom/html/HTMLInputElement.cpp
index 7708a60ac..f2c14ff2d 100644
--- a/dom/html/HTMLInputElement.cpp
+++ b/dom/html/HTMLInputElement.cpp
@@ -3712,9 +3712,9 @@ HTMLInputElement::NeedToInitializeEditorForEvent(
}
bool
-HTMLInputElement::IsDisabledForEvents(EventMessage aMessage)
+HTMLInputElement::IsDisabledForEvents(WidgetEvent* aEvent)
{
- return IsElementDisabledForEvents(aMessage, GetPrimaryFrame());
+ return IsElementDisabledForEvents(aEvent, GetPrimaryFrame());
}
nsresult
@@ -3722,7 +3722,7 @@ HTMLInputElement::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;
}