Skip to content

Commit

Permalink
Define 'max length' and 'max duration' normatively
Browse files Browse the repository at this point in the history
Mitigates fingerprinting and tracking vectors that rely on
inconsistencies across devices per W3C Security review
recommendation:

w3c/security-request#71

Note: max duration is expressed in milliseconds.
  • Loading branch information
anssiko committed Oct 10, 2024
1 parent 6aaec47 commit 23e6347
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ <h2>
</li>
</ol>
</li>
<li>Let <var>max length</var> be an implementation-dependent maximum
length of <var>pattern</var>.
<li>Let <var>max length</var> have the value 10.
<div class='note'>
If the length of a pattern is greater than max length an
implementation of this API could consider breaking the request
Expand All @@ -170,8 +169,7 @@ <h2>
point.
</div>
</li>
<li>Let <var>max duration</var> be an implementation-dependent maximum
duration for a single vibration entry in a <var>pattern</var>.
<li>Let <var>max duration</var> have the value 10000.
</li>
<li>For each entry in <var>pattern</var> whose value is greater than
<var>max duration</var>, set the entry's value to <var>max
Expand Down

0 comments on commit 23e6347

Please sign in to comment.