-
Notifications
You must be signed in to change notification settings - Fork 201
Add Storage APIs #1773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add Storage APIs #1773
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2218fc6
move files, remove draft date
autonome 31b585c
Merge branch 'main' into storage
autonome e6bc8f3
Merge branch 'main' into storage
autonome c4093c3
move files, remove draft dates
autonome be7cc3b
separate storage and storage-manager
autonome 0a2392c
make storage group, add it to the features
autonome 61de60e
move storage impls out of html draft, into storage feature
autonome 378b158
merge
autonome 80839a8
Merge branch 'main' into storage
autonome f9b9bcd
merge and dist
autonome 8da0b9b
no touchy draft spec
autonome 1cc79a2
undo indexeddb for now
autonome c643550
merge storage manager back into storage
autonome 3bbec91
update desc
autonome bb00468
merge requeststorageaccessfor into storage-access
autonome bcd5cce
update descs
autonome e385ef3
Merge branch 'main' into storage
autonome bcbbddf
Update features/storage-access.yml
autonome 4f55ff3
Update features/storage.yml
autonome cff7bb2
Merge branch 'storage' of https://github.com/autonome/web-features in…
autonome dd8f3dd
s/storage.yml/localstorage.yml/
autonome 166966d
Update features/shared-storage.yml
autonome 94684ae
Update features/shared-storage-non-cookie.yml
autonome ccb686d
s/shared-storage-non-cookie.yml/non-cookie-storage-access.yml/
autonome 66e0c1a
add group desc
autonome f2e266f
redist
autonome 1bf9e76
move api.Document.hasUnpartitionedCookieAccess
autonome e089869
Merge branch 'main' into storage
autonome a1b6024
Merge branch 'main' into storage
autonome 84694a6
Update features/shared-storage.yml
autonome 24f678e
Merge branch 'main' into storage
autonome c8a70b3
Merge branch 'main' into storage
autonome b474b40
split out storage manager
autonome 0a3f850
uncompute from
autonome 440c4b3
Update features/storage-manager.yml
autonome 8636029
Fix saa-non-cookie key placement and update desc
autonome b0a7232
Merge branch 'main' into storage
autonome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: localStorage and sessionStorage | ||
| description: The `localStorage` and `sessionStorage` APIs store data as key-value pairs. While `localStorage` persists across sessions, `sessionStorage` data is discarded when the page is closed. | ||
| spec: https://storage.spec.whatwg.org/ | ||
| group: storage | ||
| caniuse: namevalue-storage | ||
| # Computing from here aligns the feature with Caniuse | ||
| status: | ||
| compute_from: api.Storage | ||
| compat_features: | ||
| - api.Storage | ||
| - api.Storage.clear | ||
| - api.Storage.getItem | ||
| - api.Storage.key | ||
| - api.Storage.length | ||
| - api.Storage.removeItem | ||
| - api.Storage.setItem | ||
| - api.StorageEvent | ||
| - api.StorageEvent.key | ||
| - api.StorageEvent.newValue | ||
| - api.StorageEvent.oldValue | ||
| - api.StorageEvent.storageArea | ||
| - api.StorageEvent.url | ||
| - api.Window.localStorage | ||
| - api.Window.sessionStorage | ||
| - api.Window.storage_event |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| # Generated from: localstorage.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2015-07-29 | ||
| baseline_high_date: 2018-01-29 | ||
| support: | ||
| chrome: "4" | ||
| chrome_android: "18" | ||
| edge: "12" | ||
| firefox: "3.5" | ||
| firefox_android: "6" | ||
| safari: "4" | ||
| safari_ios: "3.2" | ||
| compat_features: | ||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "13" | ||
| # firefox_android: "14" | ||
| # safari: "4" | ||
| # safari_ios: "3" | ||
| - api.StorageEvent | ||
| - api.StorageEvent.key | ||
| - api.StorageEvent.newValue | ||
| - api.StorageEvent.oldValue | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "3" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "13" | ||
| # firefox_android: "14" | ||
| # safari: "4" | ||
| # safari_ios: "3" | ||
| - api.StorageEvent.storageArea | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "4" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "2" | ||
| # firefox_android: "4" | ||
| # safari: "4" | ||
| # safari_ios: "3.2" | ||
| - api.Window.sessionStorage | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "4" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "3.5" | ||
| # firefox_android: "4" | ||
| # safari: "4" | ||
| # safari_ios: "3.2" | ||
| - api.Window.localStorage | ||
|
|
||
| # ⬇️ Same status as overall feature ⬇️ | ||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "4" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "3.5" | ||
| # firefox_android: "6" | ||
| # safari: "4" | ||
| # safari_ios: "3.2" | ||
| - api.Storage | ||
| - api.Storage.clear | ||
| - api.Storage.getItem | ||
| - api.Storage.key | ||
| - api.Storage.length | ||
| - api.Storage.removeItem | ||
| - api.Storage.setItem | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "6" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "13" | ||
| # firefox_android: "14" | ||
| # safari: "5" | ||
| # safari_ios: "5" | ||
| - api.StorageEvent.url | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2017-04-05 | ||
| # baseline_high_date: 2019-10-05 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "15" | ||
| # firefox: "45" | ||
| # firefox_android: "45" | ||
| # safari: "4" | ||
| # safari_ios: "4" | ||
| - api.Window.storage_event |
6 changes: 3 additions & 3 deletions
6
...res/draft/spec/saa-non-cookie-storage.yml → features/non-cookie-storage-access.yml
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
2 changes: 1 addition & 1 deletion
2
...raft/spec/saa-non-cookie-storage.yml.dist → features/non-cookie-storage-access.yml.dist
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
6 changes: 3 additions & 3 deletions
6
features/draft/spec/shared-storage.yml → features/shared-storage.yml
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,11 @@ | ||
| name: Storage access | ||
| description: The `document.requestStorageAccess()` method allows content in iframes to request storing and reading cookies and other site data, while the `document.hasStorageAccess()` method checks if such access is granted. | ||
| spec: https://privacycg.github.io/storage-access/ | ||
| group: storage | ||
| status: | ||
| compute_from: api.Document.requestStorageAccess | ||
| compat_features: | ||
| - api.Document.hasStorageAccess | ||
| - api.Document.requestStorageAccess | ||
| - api.Document.requestStorageAccessFor | ||
| - api.Permissions.permission_top-level-storage-access | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| name: Storage buckets | ||
| description: The `navigator.storageBuckets` API allows you to organize locally stored data into groups called storage buckets. Each bucket can have different settings, allowing the browser to manage and delete buckets independently rather than applying the same treatment to all. | ||
| spec: https://wicg.github.io/storage-buckets/ | ||
| group: storage |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: Storage manager | ||
| description: "The `navigator.storage` API provides information about the availability and persistence of the data that a site stores on the device, by using APIs such as the Cache API or the IndexedDB API." | ||
| spec: https://storage.spec.whatwg.org/ | ||
| group: storage | ||
| compat_features: | ||
| - api.Navigator.storage | ||
| - api.WorkerNavigator.storage | ||
| - api.StorageManager | ||
autonome marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - api.StorageManager.estimate | ||
| - api.StorageManager.persist | ||
| - api.StorageManager.persisted | ||
2 changes: 1 addition & 1 deletion
2
features/draft/spec/storage.yml.dist → features/storage-manager.yml.dist
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Group for the set of features related to storage of data. | ||
| # Currently this group contains all storage related features | ||
| # that have been developed. However, there are still many to add, | ||
| # so it's possible this eventually gets sub-groups or another | ||
| # approach for more specific categorization. | ||
| name: Storage | ||
autonome marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.