From 36561817dd21278b90ab5cd3e55229bad2eb0c0a Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 20 May 2020 14:00:07 +0200 Subject: [PATCH] Editorial: address fallout from the storage infrastructure commit --- storage.bs | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/storage.bs b/storage.bs index 933f6a1..562ce28 100644 --- a/storage.bs +++ b/storage.bs @@ -438,24 +438,26 @@ evaluating quotas.

User Interface Guidelines

-

User agents should not distinguish between network state and storage in their user -interface. Instead user agents should offer users the ability to remove all storage for each group -of schemelessly same site origins. This ensures to some extent that network -state cannot be used to revive storage. This also reduces the amount users need to know about -the different ways in which websites can store data. +

User agents should not distinguish between network state and storage in their user interface. +Instead user agents should offer users the ability to remove all storage for each group of +schemelessly same site origins. This ensures to some extent that network state +cannot be used to revive storage. This also reduces the amount users need to know about the +different ways in which websites can store data.

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

Storage Pressure

When the user agent notices it comes under storage pressure and it cannot free up sufficient -space by clearing network state and non-persistent buckets within storage, then the -user agent should alert the user and offer a way to clear persistent buckets. +space by clearing network state, session storage buckets, and local storage buckets +whose mode is "best-effort", then the user agent +should inform the user and offer a way to clear the remaining local storage buckets, i.e., +those whose mode is "persistent". @@ -499,7 +501,7 @@ dictionary StorageEstimate {

  • Let shelf be the result of running obtain a local storage shelf with this's relevant settings object. -

  • If shelf is a failure, then reject promise with a {{TypeError}}. +

  • If shelf is failure, then reject promise with a {{TypeError}}.

  • Otherwise, run these steps in parallel: @@ -526,7 +528,7 @@ dictionary StorageEstimate {

  • Let shelf be the result of running obtain a local storage shelf with this's relevant settings object. -

  • If shelf is a failure, then reject promise with a {{TypeError}}. +

  • If shelf is failure, then reject promise with a {{TypeError}}.

  • Otherwise, run these steps in parallel: @@ -572,7 +574,7 @@ dictionary StorageEstimate {

  • Let shelf be the result of running obtain a local storage shelf with this's relevant settings object. -

  • If shelf is a failure, then reject promise with a {{TypeError}}. +

  • If shelf is failure, then reject promise with a {{TypeError}}.

  • Otherwise, run these steps in parallel: