Skip to content

Commit 0098f6c

Browse files
committed
CLEAR: Regenerate HTML.
1 parent 719a18f commit 0098f6c

File tree

1 file changed

+119
-12
lines changed

1 file changed

+119
-12
lines changed

specs/clear-site-data/index.html

Lines changed: 119 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@
573573
<h1 class="p-name no-ref" id="title">Clear Site Data</h1>
574574

575575
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">A Collection of Interesting Ideas,
576-
<time class="dt-updated" datetime="2015-06-12">12 June 2015</time></span></h2>
576+
<time class="dt-updated" datetime="2015-06-15">15 June 2015</time></span></h2>
577577

578578
<div data-fill-with="spec-metadata">
579579
<dl>
@@ -657,13 +657,17 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
657657
Neuter browsing contexts matching <var>origin</var> with
658658
<var>subdomain state</var>
659659
</span></a>
660-
<li><a href="#clear-cache"><span class="secno">3.2.2</span> <span class="content">
660+
<li><a href="#reload-contexts"><span class="secno">3.2.2</span> <span class="content">
661+
Reload browsing contexts matching <var>origin</var> with
662+
<var>subdomain state</var>
663+
</span></a>
664+
<li><a href="#clear-cache"><span class="secno">3.2.3</span> <span class="content">
661665
Clear cache for <var>origin</var> with <var>subdomain state</var>
662666
</span></a>
663-
<li><a href="#clear-cookies"><span class="secno">3.2.3</span> <span class="content">
667+
<li><a href="#clear-cookies"><span class="secno">3.2.4</span> <span class="content">
664668
Clear cookies for <var>origin</var> with <var>subdomain state</var>
665669
</span></a>
666-
<li><a href="#clear-dom"><span class="secno">3.2.4</span> <span class="content">
670+
<li><a href="#clear-dom"><span class="secno">3.2.5</span> <span class="content">
667671
Clear DOM-accessible storage for <var>origin</var> with
668672
<var>subdomain state</var>
669673
</span></a>
@@ -1102,6 +1106,19 @@ <h3 class="heading settled" data-level="3.2" id="clear"><span class="secno">3.2.
11021106

11031107

11041108
<ol>
1109+
<li data-md="">
1110+
<p>If <var>response</var>’s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/url/#concept-url">URL</a></code> is <a data-link-type="dfn" href="https://w3c.github.io/webappsec/specs/mixedcontent/#a-priori-insecure-url"><i lang="la">a priori</i>
1111+
insecure</a>, skip the remaining steps of this algorithm.</p>
1112+
1113+
1114+
1115+
<p class="issue" id="issue-6ab3e863"><a class="self-link" href="#issue-6ab3e863"></a> Some have suggested that this might not be a restriction we want
1116+
(see
1117+
<a href="https://lists.w3.org/Archives/Public/public-webappsec/2015Jun/0032.html">Martin
1118+
Thomson’s public-webappsec post on the topic</a>, for example).</p>
1119+
1120+
1121+
11051122
<li data-md="">
11061123
<p>Let <var>exclusions</var> be the result of <a href="#get-exclusions">§3.1.1
11071124
Which data types ought to be retained for response?
@@ -1130,15 +1147,15 @@ <h3 class="heading settled" data-level="3.2" id="clear"><span class="secno">3.2.
11301147

11311148
<li data-md="">
11321149
<p>If <var>exclusions</var> does not contain "<code>cookies</code>", execute
1133-
<a href="#clear-cookies">§3.2.3
1150+
<a href="#clear-cookies">§3.2.4
11341151
Clear cookies for origin with subdomain state
11351152
</a> on <var>response</var>’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#concept-response-url">url</a></code>'s
11361153
<a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a>, with <var>subdomain state</var>.</p>
11371154

11381155

11391156

11401157
<li data-md="">
1141-
<p>Execute <a href="#clear-dom">§3.2.4
1158+
<p>Execute <a href="#clear-dom">§3.2.5
11421159
Clear DOM-accessible storage for origin with
11431160
subdomain state
11441161
</a> on <var>response</var>’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#concept-response-url">url</a></code>'s
@@ -1147,12 +1164,28 @@ <h3 class="heading settled" data-level="3.2" id="clear"><span class="secno">3.2.
11471164

11481165

11491166
<li data-md="">
1150-
<p>Execute <a href="#clear-cache">§3.2.2
1167+
<p>Execute <a href="#clear-cache">§3.2.3
11511168
Clear cache for origin with subdomain state
11521169
</a> on <var>response</var>’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#concept-response-url">url</a></code>'s
11531170
<a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a>, with <var>subdomain state</var>.</p>
11541171

1172+
1173+
1174+
<li data-md="">
1175+
<p>If <var>exclusions</var> does not contain "<code>contexts</code>", execute
1176+
<a href="#reload-contexts">§3.2.2
1177+
Reload browsing contexts matching origin with
1178+
subdomain state
1179+
</a> on <var>response</var>’s <code class="idl"><a data-link-type="idl" href="https://fetch.spec.whatwg.org/#concept-response-url">url</a></code>'s
1180+
<a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a>, with <var>subdomain state</var>.</p>
1181+
11551182
</ol>
1183+
1184+
<p class="note" role="note">Note: Especially given the cross-context implications, user agents are
1185+
are encouraged to give web developers some mechanism by which the clearing
1186+
operation can be debugged. This might take the form of a console message or
1187+
timeline entry indicating success.</p>
1188+
11561189

11571190
<h4 class="heading settled" data-level="3.2.1" id="neuter-contexts"><span class="secno">3.2.1. </span><span class="content">
11581191
Neuter browsing contexts matching <var>origin</var> with
@@ -1164,8 +1197,12 @@ <h4 class="heading settled" data-level="3.2.1" id="neuter-contexts"><span class=
11641197
of either <a data-link-type="dfn" href="#include-subdomains"><code>Include Subdomains</code></a> or <a data-link-type="dfn" href="#exclude-subdomains"><code>Exclude
11651198
Subdomains</code></a>, this algorithm walks through the set of <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing
11661199
contexts</a> which the user agent knows about, and sandboxes each in order
1167-
to prevent them from recreating wiped data (from in-memory JavaScript
1168-
variables, for instance):</p>
1200+
to prevent them from recreating cleared data (from in-memory JavaScript
1201+
variables, for instance). Once data is cleared, the affected browsing
1202+
contexts will be hard-reloaded, as defined in <a href="#reload-contexts">§3.2.2
1203+
Reload browsing contexts matching origin with
1204+
subdomain state
1205+
</a>:</p>
11691206

11701207

11711208
<ol>
@@ -1182,6 +1219,13 @@ <h4 class="heading settled" data-level="3.2.1" id="neuter-contexts"><span class=
11821219

11831220

11841221

1222+
<li data-md="">
1223+
<p>While <var>document</var> is <a data-link-type="dfn" href="http://www.w3.org/TR/html5/embedded-content-0.html#an-iframe-srcdoc-document">an <code>iframe srcdoc</code>
1224+
document</a>, let <var>document</var> be the <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#active-document">active document</a>
1225+
of <var>document</var>’s <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#browsing-context-container">browsing context container</a>.</p>
1226+
1227+
1228+
11851229
<li data-md="">
11861230
<p>If <a href="#matches-origin">§3.1.3
11871231
Does origin match origin to clear and
@@ -1204,7 +1248,59 @@ <h4 class="heading settled" data-level="3.2.1" id="neuter-contexts"><span class=
12041248
between browsing contexts to potentially bypass neutering?</p>
12051249

12061250

1207-
<h4 class="heading settled" data-level="3.2.2" id="clear-cache"><span class="secno">3.2.2. </span><span class="content">
1251+
<h4 class="heading settled" data-level="3.2.2" id="reload-contexts"><span class="secno">3.2.2. </span><span class="content">
1252+
Reload browsing contexts matching <var>origin</var> with
1253+
<var>subdomain state</var>
1254+
</span><a class="self-link" href="#reload-contexts"></a></h4>
1255+
1256+
1257+
<p>Given an <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a> (<var>origin</var>) and a <var>subdomain state</var>
1258+
of either <a data-link-type="dfn" href="#include-subdomains"><code>Include Subdomains</code></a> or <a data-link-type="dfn" href="#exclude-subdomains"><code>Exclude
1259+
Subdomains</code></a>, this algorithm walks through the set of <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing
1260+
contexts</a> which the user agent knows about and reloads each of them:</p>
1261+
1262+
1263+
<ol>
1264+
<li data-md="">
1265+
<p>For each <var>context</var> in the user agent’s set of <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing
1266+
contexts</a>:</p>
1267+
1268+
1269+
1270+
<ol>
1271+
<li data-md="">
1272+
<p>Let <var>document</var> be <var>context</var>’s <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#active-document">active
1273+
document</a>.</p>
1274+
1275+
1276+
1277+
<li data-md="">
1278+
<p>While <var>document</var> is <a data-link-type="dfn" href="http://www.w3.org/TR/html5/embedded-content-0.html#an-iframe-srcdoc-document">an <code>iframe srcdoc</code>
1279+
document</a>, let <var>document</var> be the <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#active-document">active document</a>
1280+
of <var>document</var>’s <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#browsing-context-container">browsing context container</a>.</p>
1281+
1282+
1283+
1284+
<li data-md="">
1285+
<p>If <a href="#matches-origin">§3.1.3
1286+
Does origin match origin to clear and
1287+
subdomain state
1288+
</a> returns <a data-link-type="dfn" href="#matches"><code>Matches</code></a> when
1289+
executed on <var>context</var>’s <a data-link-type="dfn" href="https://tools.ietf.org/html/rfc6454#section-3.2">origin</a>, <var>origin</var>, and
1290+
<code>subdomain state</code>:</p>
1291+
1292+
1293+
1294+
<ol>
1295+
<li data-md="">
1296+
<p>Navigate <var>context</var> to <var>document</var>’s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/url/#concept-url">URL</a></code> with
1297+
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#replacement-enabled">replacement enabled</a> and <a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#exceptions-enabled">exceptions enabled</a>. The
1298+
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#source-browsing-context">source browsing context</a> is <var>context</var>. This is a
1299+
<a data-link-type="dfn" href="http://www.w3.org/TR/html5/browsers.html#reload-triggered-navigation">reload-triggered navigation</a>.</p>
1300+
1301+
</ol></ol></ol>
1302+
1303+
<h4 class="heading settled" data-level="3.2.3" id="clear-cache"><span class="secno">3.2.3. </span><span class="content">
12081304
Clear cache for <var>origin</var> with <var>subdomain state</var>
12091305
</span><a class="self-link" href="#clear-cache"></a></h4>
12101306

@@ -1263,7 +1359,7 @@ <h4 class="heading settled" data-level="3.2.2" id="clear-cache"><span class="sec
12631359

12641360
</ol>
12651361

1266-
<h4 class="heading settled" data-level="3.2.3" id="clear-cookies"><span class="secno">3.2.3. </span><span class="content">
1362+
<h4 class="heading settled" data-level="3.2.4" id="clear-cookies"><span class="secno">3.2.4. </span><span class="content">
12671363
Clear cookies for <var>origin</var> with <var>subdomain state</var>
12681364
</span><a class="self-link" href="#clear-cookies"></a></h4>
12691365

@@ -1318,7 +1414,7 @@ <h4 class="heading settled" data-level="3.2.3" id="clear-cookies"><span class="s
13181414

13191415
</ol>
13201416

1321-
<h4 class="heading settled" data-level="3.2.4" id="clear-dom"><span class="secno">3.2.4. </span><span class="content">
1417+
<h4 class="heading settled" data-level="3.2.5" id="clear-dom"><span class="secno">3.2.5. </span><span class="content">
13221418
Clear DOM-accessible storage for <var>origin</var> with
13231419
<var>subdomain state</var>
13241420
</span><a class="self-link" href="#clear-dom"></a></h4>
@@ -1678,8 +1774,14 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
16781774
<ul>
16791775
<li><a href="http://www.w3.org/TR/html5/browsers.html#active-document">active document</a>
16801776
<li><a href="http://www.w3.org/TR/html5/browsers.html#active-sandboxing-flag-set">active sandboxing flag set</a>
1777+
<li><a href="http://www.w3.org/TR/html5/embedded-content-0.html#an-iframe-srcdoc-document">an iframe srcdoc document</a>
16811778
<li><a href="http://www.w3.org/TR/html5/browsers.html#browsing-context">browsing context</a>
1779+
<li><a href="http://www.w3.org/TR/html5/browsers.html#browsing-context-container">browsing context container</a>
1780+
<li><a href="http://www.w3.org/TR/html5/browsers.html#exceptions-enabled">exceptions enabled</a>
16821781
<li><a href="http://www.w3.org/TR/html5/browsers.html#sandboxing:parse-a-sandboxing-directive">parse a sandboxing directive</a>
1782+
<li><a href="http://www.w3.org/TR/html5/browsers.html#reload-triggered-navigation">reload-triggered navigation</a>
1783+
<li><a href="http://www.w3.org/TR/html5/browsers.html#replacement-enabled">replacement enabled</a>
1784+
<li><a href="http://www.w3.org/TR/html5/browsers.html#source-browsing-context">source browsing context</a>
16831785
</ul>
16841786
<li><a data-link-type="biblio" href="#biblio-indexeddb">[IndexedDB]</a> defines the following terms:
16851787
<ul>
@@ -1720,6 +1822,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
17201822
</ul>
17211823
<li><a data-link-type="biblio" href="#biblio-url">[URL]</a> defines the following terms:
17221824
<ul>
1825+
<li><a href="http://www.w3.org/TR/url/#concept-url">URL</a>
17231826
<li><a href="http://www.w3.org/TR/url/#concept-url-host">host</a>
17241827
</ul>
17251828
<li><a data-link-type="biblio" href="#biblio-html">[HTML]</a> defines the following terms:
@@ -1776,6 +1879,10 @@ <h2 class="no-num heading settled" id="issues-index"><span class="content">Issue
17761879
and <a data-link-type="dfn" href="#retaincookies"><code>retainCookies</code></a> is what we would offer to folks who
17771880
want to retain certain cookies. Perhaps we need a mechanism to allow only
17781881
certain cookies to be retained?<a href="#issue-16edebe8"></a></div>
1882+
<div class="issue"> Some have suggested that this might not be a restriction we want
1883+
(see
1884+
<a href="https://lists.w3.org/Archives/Public/public-webappsec/2015Jun/0032.html">Martin
1885+
Thomson’s public-webappsec post on the topic</a>, for example).<a href="#issue-6ab3e863"></a></div>
17791886
<div class="issue"> This won’t be an atomic set of operations. How can we prevent collusion
17801887
between browsing contexts to potentially bypass neutering?<a href="#issue-65295789"></a></div>
17811888
<div class="issue"> We’re dealing with the network cache here, as defined in

0 commit comments

Comments
 (0)