aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/mouseevent.rs2
-rw-r--r--tests/wpt/metadata/dom/events/Event-subclasses-constructors.html.ini3
2 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/mouseevent.rs b/components/script/dom/mouseevent.rs
index fc0f777ecd5..48600f1155e 100644
--- a/components/script/dom/mouseevent.rs
+++ b/components/script/dom/mouseevent.rs
@@ -137,7 +137,7 @@ impl MouseEvent {
init.parent.shiftKey,
init.parent.metaKey,
init.button,
- 0,
+ init.buttons,
init.relatedTarget.as_deref(),
None,
);
diff --git a/tests/wpt/metadata/dom/events/Event-subclasses-constructors.html.ini b/tests/wpt/metadata/dom/events/Event-subclasses-constructors.html.ini
index 952d6bea81c..57bf766d5ba 100644
--- a/tests/wpt/metadata/dom/events/Event-subclasses-constructors.html.ini
+++ b/tests/wpt/metadata/dom/events/Event-subclasses-constructors.html.ini
@@ -1,8 +1,5 @@
[Event-subclasses-constructors.html]
type: testharness
- [MouseEvent constructor (argument with non-default values)]
- expected: FAIL
-
[WheelEvent constructor (argument with non-default values)]
expected: FAIL