Skip to content

Commit d60ce7c

Browse files
authored
Add Clear-Site-Data Clear "cache" interaction with prerender
Part of #357.
1 parent f635899 commit d60ce7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

prerendering.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/
4545
text: session history entry; url: browsing-the-web.html#session-history-entry
4646
text: the worker's lifetime; url: workers.html#the-worker's-lifetime
4747
text: URL and history update steps; url: browsing-the-web.html#url-and-history-update-steps
48+
text: top-level traversable set; url: document-sequences.html#top-level-traversable-set
4849
for: Document
4950
text: abort; url: document-lifecycle.html#abort-a-document
5051
text: destroy; url: document-lifecycle.html#destroy-a-document
@@ -641,6 +642,15 @@ This stores which client hints each origin has opted into receiving, until it ca
641642
1. Otherwise, [=map/set=] [=Accept-CH cache=][|origin|] to |hintSet|.
642643
</div>
643644

645+
<h3 id="interaction-with-clear-site-data-clear-cache">Interaction with Clear-Site-Data Clear Cache</h3>
646+
647+
<div algorithm="clear cache for origin patch">
648+
Modify [$clear cache for origin$] to add the following step at the end.
649+
650+
1. [=list/For each=] [=navigable/top-level traversable=] |traversable| in the user agent's [=top-level traversable set=]:
651+
1. If |traversable|'s [=navigable/active document=]'s [=Document/origin=] is [=same origin=] with <var ignore>origin</var>, and |traversable| is a [=prerendering traversable=], then [=destroy a top-level traversable|destroy=] |traversable|.
652+
</div>
653+
644654
<h2 id="supports-loading-mode">The \`<dfn export http-header><code>Supports-Loading-Mode</code></dfn>\` HTTP response header</h2>
645655

646656
<em>The following section would be added as a sub-section of [[HTML]]'s <a href="https://html.spec.whatwg.org/multipage/browsers.html#browsers">Loading web pages</a> section.</em>

0 commit comments

Comments
 (0)