aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 383de5e039e..4e9fe1a93c2 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -1070,7 +1070,7 @@ impl ScriptTask {
let event: JSRef<Event> = EventCast::from_ref(*uievent);
let wintarget: JSRef<EventTarget> = EventTargetCast::from_ref(*window);
- let _ = wintarget.dispatch_event_with_target(None, event);
+ wintarget.dispatch_event(event);
}
None => ()
}