Skip to content

Commit 81344cc

Browse files
annevkdomenic
authored andcommitted
Restrict application caches to secure contexts
Fixes #3440.
1 parent 1b6288b commit 81344cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78127,7 +78127,7 @@ interface <dfn data-export="" data-dfn-type="interface">Window</dfn> : <span>Eve
7812778127

7812878128
// the user agent
7812978129
readonly attribute <span>Navigator</span> <span data-x="dom-navigator">navigator</span>; <!-- IE also has window.clientInformation === window.navigator -->
78130-
readonly attribute <span>ApplicationCache</span> <span data-x="dom-applicationCache">applicationCache</span>;
78130+
[SecureContext] readonly attribute <span>ApplicationCache</span> <span data-x="dom-applicationCache">applicationCache</span>;
7813178131

7813278132
// user prompts
7813378133
void <span data-x="dom-alert">alert</span>();
@@ -86014,7 +86014,8 @@ NETWORK:
8601486014

8601586015
<h4>Application cache API</h4>
8601686016

86017-
<pre><code class="idl" data-x="">[Exposed=Window]
86017+
<pre><code class="idl" data-x="">[SecureContext,
86018+
Exposed=Window]
8601886019
interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
8601986020

8602086021
// <span data-x="concept-appcache-status">update status</span>
@@ -106149,7 +106150,9 @@ document.body.appendChild(text);
106149106150
this element in the <span>stack of open elements</span>.</p>
106150106151

106151106152
<p id="parser-appcache">If the <code>Document</code> is being loaded as part of <span
106152-
data-x="navigate">navigation</span> of a <span>browsing context</span>, run these steps:</p>
106153+
data-x="navigate">navigation</span> of a <span>browsing context</span> and the result of
106154+
executing <span>Is environment settings object a secure context?</span> on the
106155+
<code>Document</code>'s <span>relevant settings object</span> is true, then:</p>
106153106156

106154106157
<ol>
106155106158

0 commit comments

Comments
 (0)