Skip to content

Commit b3a8f14

Browse files
author
Simon Pieters
committed
[cssom] Add some cross-origin security considerations. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22453
1 parent 150a15c commit b3a8f14

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

cssom/Overview.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,11 @@ <h3 id="css-style-sheet-collections"><span class="secno">6.2 </span>CSS Style Sh
10121012
<li><p>Create a new <a href="#css-style-sheet">CSS style sheet</a> object and set its
10131013
properties as specified.</li>
10141014

1015-
<li><p>Then run the <a href="#add-a-css-style-sheet">add a CSS style sheet</a> steps for the newly
1016-
created <a href="#css-style-sheet">CSS style sheet</a>.</li>
1015+
<li>
1016+
<p>Then run the <a href="#add-a-css-style-sheet">add a CSS style sheet</a> steps for the newly created <a href="#css-style-sheet">CSS style sheet</a>.
1017+
1018+
<p class="warning">If the <a href="#concept-css-style-sheet-origin-clean-flag" title="concept-css-style-sheet-origin-clean-flag">origin-clean flag</a> is unset, this can expose information from the user's
1019+
intranet.
10171020
</ol>
10181021

10191022
<p>To <dfn id="add-a-css-style-sheet">add a CSS style sheet</dfn>, run these
@@ -2753,7 +2756,8 @@ <h3 id="extensions-to-the-window-interface"><span class="secno">7.2 </span>Exten
27532756
<p class="note">Because of historical IDL limitations the <code title="dom-Window-getComputedStyle"><a href="#dom-window-getcomputedstyle">getComputedStyle()</a></code> method used to be on
27542757
a separate interface, <code title="">ViewCSS</code>.</p>
27552758

2756-
2759+
<p class="warning">The <code title="dom-Window-getComputedStyle"><a href="#dom-window-getcomputedstyle">getComputedStyle()</a></code> method exposes information from <a href="#css-style-sheet" title="CSS style sheet">CSS style
2760+
sheets</a> with the <a href="#concept-css-style-sheet-origin-clean-flag" title="concept-css-style-sheet-origin-clean-flag">origin-clean flag</a> unset.
27572761

27582762
<h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code title="">GetStyleUtils</code> Interface</h3>
27592763

@@ -2798,6 +2802,9 @@ <h3 id="the-getstyleutils-interface"><span class="secno">7.3 </span>The <code ti
27982802
computed for the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a> using the style rules associated
27992803
with the <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#context-object">context object</a>'s <a href="#associated-document">associated document</a>.</p>
28002804

2805+
<p class="warning">The <code title="dom-GetStyleUtils-specifiedStyle"><a href="#dom-getstyleutils-specifiedstyle">specifiedStyle</a></code>, <code title="dom-GetStyleUtils-computedStyle"><a href="#dom-getstyleutils-computedstyle">computedStyle</a></code> and
2806+
<code title="dom-GetStyleUtils-usedStyle"><a href="#dom-getstyleutils-usedstyle">usedStyle</a></code> methods expose information from <a href="#css-style-sheet" title="CSS style sheet">CSS style sheets</a> with the
2807+
<a href="#concept-css-style-sheet-origin-clean-flag" title="concept-css-style-sheet-origin-clean-flag">origin-clean flag</a> unset.
28012808

28022809

28032810
<h3 id="extensions-to-the-element-interface"><span class="secno">7.4 </span>Extensions to the <code title="">Element</code> Interface</h3>

cssom/Overview.src.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,11 @@ <h3>CSS Style Sheet Collections</h3>
933933
<li><p>Create a new <span>CSS style sheet</span> object and set its
934934
properties as specified.</p></li>
935935

936-
<li><p>Then run the <span>add a CSS style sheet</span> steps for the newly
937-
created <span>CSS style sheet</span>.</p></li>
936+
<li>
937+
<p>Then run the <span>add a CSS style sheet</span> steps for the newly created <span>CSS style sheet</span>.
938+
939+
<p class=warning>If the <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> is unset, this can expose information from the user's
940+
intranet.
938941
</ol>
939942

940943
<p>To <dfn>add a CSS style sheet</dfn>, run these
@@ -2674,7 +2677,8 @@ <h3>Extensions to the <code title>Window</code> Interface</h3>
26742677
<p class='note'>Because of historical IDL limitations the <code title=dom-Window-getComputedStyle>getComputedStyle()</code> method used to be on
26752678
a separate interface, <code title>ViewCSS</code>.</p>
26762679

2677-
2680+
<p class=warning>The <code title=dom-Window-getComputedStyle>getComputedStyle()</code> method exposes information from <span title="CSS style sheet">CSS style
2681+
sheets</span> with the <span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> unset.
26782682

26792683
<h3>The <code title>GetStyleUtils</code> Interface</h3>
26802684

@@ -2719,6 +2723,9 @@ <h3>The <code title>GetStyleUtils</code> Interface</h3>
27192723
computed for the <span data-anolis-spec=dom>context object</span> using the style rules associated
27202724
with the <span data-anolis-spec=dom>context object</span>'s <span>associated document</span>.</p>
27212725

2726+
<p class=warning>The <code title=dom-GetStyleUtils-specifiedStyle>specifiedStyle</code>, <code title=dom-GetStyleUtils-computedStyle>computedStyle</code> and
2727+
<code title=dom-GetStyleUtils-usedStyle>usedStyle</code> methods expose information from <span title="CSS style sheet">CSS style sheets</span> with the
2728+
<span title=concept-css-style-sheet-origin-clean-flag>origin-clean flag</span> unset.
27222729

27232730

27242731
<h3>Extensions to the <code title>Element</code> Interface</h3>

0 commit comments

Comments
 (0)