Re: [whatwg/storage] Add the ability for bottles to have a quota (#97)

@domenic commented on this pull request.



>  
 <p>A <a>storage endpoint</a> has an <dfn for="storage endpoint">identifier</dfn>, which is a
 <a>storage identifier</a>.
 
 <p>A <a>storage endpoint</a> also has <dfn for="storage endpoint">types</dfn>, which is a
 <a for=/>set</a> of <a>storage types</a>.
 
+<p>A <a>storage endpoint</a> also has a <dfn for="storage endpoint">quota</dfn>, which is a number
+representing a recommended <a for=/>storage bottle</a>'s <a for="storage bottle">quota</a>.

Phrasing is a little awkward here; it sounds like a "recommended storage bottle" is getting a quota. Is the intention something like "the recommended quota for all storage bottles in this storage endpoint"?

> @@ -312,7 +322,10 @@ steps:
 <a>storage endpoint</a>. A <a>storage bottle</a> has a <dfn for="storage bottle">map</dfn>, which is
 initially an empty <a for=/>map</a>. A <a>storage bottle</a> also has a
 <dfn for="storage bottle">proxy map reference set</dfn>, which is initially an empty
-<a for=/>set</a>.
+<a for=/>set</a>. A <a>storage bottle</a> also has a <dfn for="storage bottle">quota</dfn>, which is
+null or a number representing a conservative estimate of the amount of bytes available to it. Null

"amount of bytes available" sounds like amount not used by storage. I'd do something like

> null or a number representing a maximum on the amount of bytes that user agents should allow to be stored in the bottle

maybe?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/97#pullrequestreview-424555345

Received on Thursday, 4 June 2020 15:17:53 UTC