diff options
author | athenian200 <athenian200@outlook.com> | 2020-05-21 01:31:48 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-23 16:12:59 +0200 |
commit | a3124c55a13fba4877e0eaa7a6b31f17832b6ce1 (patch) | |
tree | ed44abb0edc3aa974e7bb933da244409c985ced5 /dom/base/nsDOMWindowUtils.cpp | |
parent | c4ed56660230a124fa3457cd5f789e78a3188515 (diff) | |
download | UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.gz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.lz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.tar.xz UXP-a3124c55a13fba4877e0eaa7a6b31f17832b6ce1.zip |
Issue #1557 - Allow event dispatch on disabled form controls. (uplift)
Diffstat (limited to 'dom/base/nsDOMWindowUtils.cpp')
-rw-r--r-- | dom/base/nsDOMWindowUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsDOMWindowUtils.cpp b/dom/base/nsDOMWindowUtils.cpp index 2ab5937ac..adb407a04 100644 --- a/dom/base/nsDOMWindowUtils.cpp +++ b/dom/base/nsDOMWindowUtils.cpp @@ -3577,7 +3577,8 @@ nsDOMWindowUtils::IsNodeDisabledForEvents(nsIDOMNode* aNode, bool* aRetVal) while (node) { if (node->IsNodeOfType(nsINode::eHTML_FORM_CONTROL)) { nsCOMPtr<nsIFormControl> fc = do_QueryInterface(node); - if (fc && fc->IsDisabledForEvents(eVoidEvent)) { + WidgetEvent event(true, eVoidEvent); + if (fc && fc->IsDisabledForEvents(&event)) { *aRetVal = true; break; } |