This repository was archived by the owner on Jan 28, 2026. It is now read-only.
Repository navigation
Update Data Storage Limits in Explainer - #132
Merged
Merged
Conversation
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.
xyaoinum
approved these changes
Jan 31, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.