From 15c4624918d9407d6ba7ca896eb627faeff91715 Mon Sep 17 00:00:00 2001 From: Ayu Ishii <48255136+ayuishii@users.noreply.github.com> Date: Tue, 14 Feb 2023 14:47:28 -0800 Subject: [PATCH 1/3] quota value in bytes --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index ea91d92..f6b88e9 100644 --- a/index.bs +++ b/index.bs @@ -308,8 +308,8 @@ The persisted() method steps are:

Quota

A [=/storage bucket=] has a quota value, a number-or-null, initially null. -Specifies the upper limit of usage which can be used by the bucket. The user agent MAY further limit -the realized storage space. +Specifies the upper limit of usage in bytes which can be used by the bucket. The user agent MAY further +limit the realized storage space. The storage usage of a [=/storage bucket=] is an [=implementation-defined=] rough estimate of the number of bytes used by all of its [=/storage bottle=]s. From 169bc2ff88ade61af7c40e239a16f777b1457024 Mon Sep 17 00:00:00 2001 From: Ayu Ishii <48255136+ayuishii@users.noreply.github.com> Date: Tue, 14 Feb 2023 14:51:43 -0800 Subject: [PATCH 2/3] code point --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index f6b88e9..b4be97a 100644 --- a/index.bs +++ b/index.bs @@ -145,9 +145,9 @@ To open a bucket for a |storageKey| given a bucket |name| and optiona To validate a bucket name given string |name|, run the following steps: -1. If |name| contains any character that is not [=ASCII lower alpha=], [=ASCII digit=], U+005F (_), or U+002D(-), then return failure. +1. If |name| contains any [=code point=] that is not [=ASCII lower alpha=], [=ASCII digit=], U+005F (_), or U+002D(-), then return failure. -1. If |name| [=string/length=] is 0 or exceeds 64, then return failure. +1. If |name| [=string/code point length=] is 0 or exceeds 64, then return failure. 1. If |name| begins with U+005F (_) or U+002D(-), then return failure. From 0e7938e1d4222695d826d090f7e6cdb86d881749 Mon Sep 17 00:00:00 2001 From: Ayu Ishii <48255136+ayuishii@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:26:47 -0800 Subject: [PATCH 3/3] Operate open bucket on storage bucket map --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index b4be97a..116abab 100644 --- a/index.bs +++ b/index.bs @@ -178,7 +178,7 @@ The delete(|name|) method steps are 1. If the result of [=validate a bucket name=] with |name| is failure, then [=/reject=] |p| with an {{InvalidCharacterError}} and abort these steps. - 1. Let |bucket| be the [=/storage bucket=] named |name| in |storageKey| if one exists. Otherwise return. + 1. Let |bucket| be the [=/storage bucket=] with [=map/key=] |name| in [=bucket map=] if one exists. Otherwise return. 1. Remove |bucket|.