Skip to content

Commit 3656181

Browse files
committed
Editorial: address fallout from the storage infrastructure commit
1 parent 42510ac commit 3656181

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

storage.bs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -438,24 +438,26 @@ evaluating quotas.
438438

439439
<h2 id=ui-guidelines>User Interface Guidelines</h2>
440440

441-
<p>User agents should not distinguish between network state and <a>storage</a> in their user
442-
interface. Instead user agents should offer users the ability to remove all storage for each group
443-
of <a>schemelessly same site</a> <a for=/>origins</a>. This ensures to some extent that network
444-
state cannot be used to revive <a>storage</a>. This also reduces the amount users need to know about
445-
the different ways in which websites can store data.
441+
<p>User agents should not distinguish between network state and storage in their user interface.
442+
Instead user agents should offer users the ability to remove all storage for each group of
443+
<a>schemelessly same site</a> <a for=/>origins</a>. This ensures to some extent that network state
444+
cannot be used to revive storage. This also reduces the amount users need to know about the
445+
different ways in which websites can store data.
446446
<!-- To some extent, since HTTP ETag... And also, permissions/credentials, maybe? -->
447447

448448
<p>Credentials should be separated as they contain data the user might not be able to revive, such
449449
as an autogenerated password. Permissions are best separated too to avoid inconveniencing the user.
450450
Credentials and permissions are also somewhat easier to understand and differentiate for users from
451-
network state and <a>storage</a>.
451+
network state and storage.
452452

453453

454454
<h3 id=storage-pressure>Storage Pressure</h3>
455455

456456
<p>When the user agent notices it comes under storage pressure and it cannot free up sufficient
457-
space by clearing network state and <a>non-persistent buckets</a> within <a>storage</a>, then the
458-
user agent should alert the user and offer a way to clear <a>persistent buckets</a>.
457+
space by clearing network state, <a>session storage buckets</a>, and <a>local storage buckets</a>
458+
whose <a for="local storage bucket">mode</a> is "<code>best-effort</code>", then the user agent
459+
should inform the user and offer a way to clear the remaining <a>local storage buckets</a>, i.e.,
460+
those whose <a for="local storage bucket">mode</a> is "<code>persistent</code>".
459461

460462

461463

@@ -499,7 +501,7 @@ dictionary StorageEstimate {
499501
<li><p>Let <var>shelf</var> be the result of running <a>obtain a local storage shelf</a> with
500502
<a>this</a>'s <a>relevant settings object</a>.
501503

502-
<li><p>If <var>shelf</var> is a failure, then reject <var>promise</var> with a {{TypeError}}.
504+
<li><p>If <var>shelf</var> is failure, then reject <var>promise</var> with a {{TypeError}}.
503505

504506
<li>
505507
<p>Otherwise, run these steps <a>in parallel</a>:
@@ -526,7 +528,7 @@ dictionary StorageEstimate {
526528
<li><p>Let <var>shelf</var> be the result of running <a>obtain a local storage shelf</a> with
527529
<a>this</a>'s <a>relevant settings object</a>.
528530

529-
<li><p>If <var>shelf</var> is a failure, then reject <var>promise</var> with a {{TypeError}}.
531+
<li><p>If <var>shelf</var> is failure, then reject <var>promise</var> with a {{TypeError}}.
530532

531533
<li>
532534
<p>Otherwise, run these steps <a>in parallel</a>:
@@ -572,7 +574,7 @@ dictionary StorageEstimate {
572574
<li><p>Let <var>shelf</var> be the result of running <a>obtain a local storage shelf</a> with
573575
<a>this</a>'s <a>relevant settings object</a>.
574576

575-
<li><p>If <var>shelf</var> is a failure, then reject <var>promise</var> with a {{TypeError}}.
577+
<li><p>If <var>shelf</var> is failure, then reject <var>promise</var> with a {{TypeError}}.
576578

577579
<li>
578580
<p>Otherwise, run these steps <a>in parallel</a>:

0 commit comments

Comments
 (0)