From 8ac1635491b627d71e5080106382d375e5ead601 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 6 Jul 2020 13:50:28 +0200 Subject: [PATCH] Quota is not supposed to be a function of available space Also make it clear usage and quota for storage shelves are ultimately implementation-defined. Helps with #95 and #70. Closes #106. --- storage.bs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/storage.bs b/storage.bs index c989039..e573c9e 100644 --- a/storage.bs +++ b/storage.bs @@ -471,20 +471,21 @@ locally.

Usage and quota

-

The storage usage of a storage shelf is a rough estimate of the amount -of bytes used by it. +

The storage usage of a storage shelf is an implementation-defined +rough estimate of the amount of bytes used by it.

This cannot be an exact amount as user agents might, and are encouraged to, use deduplication, compression, and other techniques that obscure exactly how much bytes a storage shelf uses. -

The storage quota of a storage shelf is a conservative estimate of the -total amount of bytes it can hold. This amount should be less than the total available storage space -on the device to give users some wiggle room. +

The storage quota of a storage shelf is an implementation-defined +conservative estimate of the total amount of bytes it can hold. This amount should be less than the +total storage space on the device. It must not be a function of the available storage space on the +device.

User agents are strongly encouraged to consider navigation frequency, recency of visits, bookmarking, and permission for {{"persistent-storage"}} when -evaluating quotas. +determining quotas.