Skip to content

Commit 918d4b7

Browse files
zcorpansvgeesus
authored andcommitted
Add Privacy and Security Considerations
1 parent 9b08275 commit 918d4b7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

geometry/Overview.bs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,29 @@ href="https://www.w3.org/TR/html5/infrastructure.html#safe-passing-of-structured
17111711
of structured data”</a> definitions. [[!HTML5]]
17121712

17131713

1714+
<h2 id="priv-sec">Privacy and Security Considerations</h2>
1715+
1716+
<p>The {{DOMMatrix}} and {{DOMMatrixReadOnly}} interfaces have entry-points to parsing a string with
1717+
CSS syntax. Therefore the <a href="https://drafts.csswg.org/css-syntax/#priv-sec">privacy and
1718+
security considerations</a> of the CSS Syntax specification applies. [[CSS3-SYNTAX]]
1719+
1720+
<div class=example>
1721+
<p>This could potentially be used to exploit bugs in the CSS parser in a user agent.
1722+
</div>
1723+
1724+
<p>There are no other known security or privacy impacts of the interfaces defined in this
1725+
specification. However, other specifications that have APIs that use the interfaces defined in this
1726+
specification could potentially introduce security or privacy issues.
1727+
1728+
<div class=example>
1729+
<p>For example, the {{Element/getBoundingClientRect()}} API defined in CSSOM View returns a
1730+
{{DOMRect}} that could be used to measure the size of an inline element containing some text of a
1731+
particular font, which exposes information about whether the user has that font installed. That
1732+
information, if used to test many common fonts, can then be personally-identifiable information.
1733+
[[CSSOM-VIEW]]
1734+
</div>
1735+
1736+
17141737
<h2 class="no-num" id="changes">Changes since last publication</h2>
17151738

17161739
<p>The following changes were made since the <a

0 commit comments

Comments
 (0)