You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* FF141 PointerEvent.persistentDeviceId - Relnote/layout
* Update files/en-us/web/api/pointerevent/persistentdeviceid/index.md
* fix: Add newline between list item and HTML comment
---------
Co-authored-by: Brian Smith <brian@smith.berlin>
Copy file name to clipboardExpand all lines: files/en-us/mozilla/firefox/releases/141/index.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,9 @@ Firefox 141 is the current [Beta version of Firefox](https://www.mozilla.org/en-
21
21
### HTML
22
22
23
23
- The HTML [`webkitdirectory`](/en-US/docs/Web/HTML/Reference/Elements/input/file#webkitdirectory) attribute and the corresponding {{domxref("HTMLInputElement.webkitdirectory")}} property are now partially supported on Firefox Android ([Firefox bug 1887878](https://bugzil.la/1887878)).
24
-
The attribute can be set to indicate that an [`<input type="file">`](/en-US/docs/Web/HTML/Reference/Elements/input/file) element should offer selection of directories instead of files.
25
-
Note that the returned file entries for the selected folder always contain an empty string in ({{domxref("File.webkitRelativePath")}}), which means that using `webkitdirectory` is not suitable for use cases where information about the directory structure is needed ([Firefox bug 1973726](https://bugzil.la/1973726)).
24
+
The attribute can be set to indicate that an [`<input type="file">`](/en-US/docs/Web/HTML/Reference/Elements/input/file) element should offer selection of directories instead of files.
25
+
Note that the returned file entries for the selected folder always contain an empty string in ({{domxref("File.webkitRelativePath")}}), which means that using `webkitdirectory` is not suitable for use cases where information about the directory structure is needed ([Firefox bug 1973726](https://bugzil.la/1973726)).
26
+
26
27
<!-- #### Removals -->
27
28
28
29
<!-- ### CSS -->
@@ -52,7 +53,9 @@ Note that the returned file entries for the selected folder always contain an em
52
53
53
54
<!-- #### Removals -->
54
55
55
-
<!-- ### APIs -->
56
+
### APIs
57
+
58
+
- The {{domxref("PointerEvent/persistentDeviceId","persistentDeviceId")}} property of the {{domxref("PointerEvent")}} interface is now supported. This gives each pointing device that interacts with the screen a unique ID that persists for the session. It provides a reliable way to identify multiple pointing devices (such as pens) interacting with the screen simultaneously. ([Firefox bug 1968400](https://bugzil.la/1968400)).
The **`persistentDeviceId`** read-only property of the
12
-
{{domxref("PointerEvent")}} interface is a unique identifier for the pointing device generating the `PointerEvent`. This provides a secure, reliable way to identify multiple pointing devices (such as pens) interacting with the screen simultaneously.
11
+
The **`persistentDeviceId`** read-only property of the {{domxref("PointerEvent")}} interface is a unique identifier for the pointing device generating the `PointerEvent`.
12
+
This provides a secure, reliable way to identify multiple pointing devices (such as pens) interacting with the screen simultaneously.
13
13
14
-
A `persistentDeviceId` persists for the lifetime of a browsing session. To avoid the risk of fingerprinting/tracking, pointing devices are assigned a new `persistentDeviceId` at the start of each session.
14
+
A `persistentDeviceId` persists for the lifetime of a browsing session.
15
+
To avoid the risk of fingerprinting/tracking, pointing devices are assigned a new `persistentDeviceId` at the start of each session.
15
16
16
17
Pointer events whose generating device could not be identified are assigned a `persistentDeviceId` value of `0`.
17
18
@@ -20,17 +21,20 @@ Pointer events whose generating device could not be identified are assigned a `p
20
21
An integer, or `0` if the device generating the `PointerEvent` could not be identified.
21
22
22
23
> [!NOTE]
23
-
> Due to digitizer and pointing device hardware constraints, a `persistentDeviceId` may not be available for all pointer events, particularly with older hardware. For example, the pointing device might not report its hardware ID to the digitizer in time for `pointerdown` to receive a `persistentDeviceId`: it may initially be `0` and change to a valid value for later events in the stroke.
24
+
> Due to digitizer and pointing device hardware constraints, a `persistentDeviceId` may not be available for all pointer events, particularly with older hardware.
25
+
> For example, the pointing device might not report its hardware ID to the digitizer in time for `pointerdown` to receive a `persistentDeviceId`: it may initially be `0` and change to a valid value for later events in the stroke.
0 commit comments