aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlinputelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlinputelement.rs')
-rw-r--r--components/script/dom/htmlinputelement.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index e7116b5d8ce..6e7557465a2 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -866,17 +866,13 @@ impl Activatable for HTMLInputElement {
// https://html.spec.whatwg.org/multipage/#checkbox-state-(type=checkbox):activation-behavior
// https://html.spec.whatwg.org/multipage/#radio-button-state-(type=radio):activation-behavior
if self.mutable() {
- let win = window_from_node(self);
let target = self.upcast::<EventTarget>();
-
target.fire_event("input",
EventBubbles::Bubbles,
- EventCancelable::NotCancelable,
- GlobalRef::Window(win.r()));
+ EventCancelable::NotCancelable);
target.fire_event("change",
EventBubbles::Bubbles,
- EventCancelable::NotCancelable,
- GlobalRef::Window(win.r()));
+ EventCancelable::NotCancelable);
}
},
_ => ()