Skip to content

Commit 9333a8a

Browse files
committed
dummy impl of PointerEvent#getPersistentDeviceId() returning always 0 added
1 parent 994207a commit 9333a8a

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
</properties>
88

99
<body>
10-
<release version="4.15.0" date="August xx, 2025" description="Bugfixes">
10+
<release version="4.15.0" date="August xx, 2025" description="Chrome/Edge 139, Firefox 141, Bugfixes">
11+
<action type="add" dev="RhinoTeam">
12+
Dummy impl of PointerEvent#getPersistentDeviceId() returning always 0.
13+
</action>
14+
<action type="update" dev="rbri" issue="#1002">
15+
The parser for the refresh header has been rewritten.
16+
Thanks to a series of additional tests, we are now much closer to real browsers.
17+
</action>
1118
<action type="add" dev="RhinoTeam">
1219
core-js: TypedArray.from and TypedArray.of implemented.
1320
</action>

src/main/java/org/htmlunit/javascript/host/event/PointerEvent.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,14 @@ public double getAltitudeAngle() {
217217
public double getAzimuthAngle() {
218218
return 0d;
219219
}
220+
221+
/**
222+
* @return the persistentDeviceId
223+
*/
224+
@JsxGetter({CHROME, EDGE, FF})
225+
public double getPersistentDeviceId() {
226+
// dummy but valid regarding to the spec
227+
// https://w3c.github.io/pointerevents/#dom-pointerevent-persistentdeviceid
228+
return 0d;
229+
}
220230
}

0 commit comments

Comments
 (0)