Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Update Data Storage Limits in Explainer - #132

Merged
pythagoraskitty merged 1 commit into
mainfrom
cammie-branch3
Feb 14, 2024
Merged

pythagoraskitty merged 1 commit into
mainfrom
cammie-branch3

Conversation

@pythagoraskitty

Copy link
Copy Markdown
Collaborator

We update the data storage limits so that each origin gets an overall maximum of 5MB of shared storage. The key and values no longer have length restrictions otherwise, and we have removed the limit on number of keys.

We update the data storage limits so that each origin gets an overall maximum of 5MB of shared storage. The key and values no longer have length restrictions otherwise, and we have removed the limit on number of keys.
@pythagoraskitty
pythagoraskitty merged commit 79797f0 into main Feb 14, 2024
@pythagoraskitty
pythagoraskitty deleted the cammie-branch3 branch February 14, 2024 20:04
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 20, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 20, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 21, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 21, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
aarongable pushed a commit to chromium/chromium that referenced this pull request Feb 21, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 21, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 21, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 23, 2024
To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 28, 2024
…e limit, a=testonly

Automatic update from web-platform-tests
Shared Storage: Change to per-origin byte limit

To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}

--

wpt-commits: 3d9335836c665aecca0ea89ba80b59b367416fa8
wpt-pr: 44666
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…e limit, a=testonly

Automatic update from web-platform-tests
Shared Storage: Change to per-origin byte limit

To increase developer ergonomics, we drop the limit on number of
key-value pairs per origin, as well as the previous character limits
for keys and values. We move instead to a total byte quota for each
origin.

Note that, strictly speaking, there will still a key and value length
limit, in that each key and value must necessarily be less than or
equal to the quota, given that the total of all lengths of keys and
values must not exceed the quota.

We accomplish this by updating the previous feature param
`blink::features::kMaxSharedStorageEntriesPerOrigin` to a new
feature param `blink::features::kMaxSharedStorageBytesPerOrigin`,
deleting the previous feature param
`blink::features::kMaxSharedStorageStringLength`, and replacing
instances of the later with half of the new value for
`blink::features::kMaxSharedStorageBytesPerOrigin` (as we are
measuring the length in number of char16_t's).

For more information, see
WICG/shared-storage#132.

Bug: 325352528,1218540
Change-Id: Icf3c390fcdb2893e74d1112c53db0ece2ecefe7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5296983
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Yao Xiao <[email protected]>
Reviewed-by: Russ Hamilton <[email protected]>
Commit-Queue: Cammie Smith Barnes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1263539}

--

wpt-commits: 3d9335836c665aecca0ea89ba80b59b367416fa8
wpt-pr: 44666
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants