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
limits the risks of data being inappropriately disclosed or misused.
339
+
340
+
Design Web APIs to make it easier for sites to request, collect, and/or transmit
341
+
a small amount of data, or more granular or specific data, than it is to work with
342
+
more generic or bulk data.
343
+
APIs should also provide granularity and user controls,
344
+
in particular over <a href="https://www.w3.org/TR/privacy-principles/#dfn-data">personal data</a>,
345
+
that is communicated to sites.
346
+
When additional functionality requires additional data, APIs can enable this
347
+
subject to user consent (e.g., a permission prompt or user activation).
348
+
349
+
<div class=example>
350
+
A <a href="#font-enumeration">Font Enumeration API</a> API was once proposed, but the tradeoff of user data exposed was not justified by the use cases. Instead, an alternative solution was proposed, which only exposed the font the user actually selected.
351
+
</div>
331
352
<h2 id="api-across-languages">API Design Across Languages</h2>
0 commit comments