[wpt-sync] Sync PR 56933 - storage: Scope `WebStorage` quota per storage type instead of per origin total
Categories
(Core :: Storage: localStorage & sessionStorage, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 56933 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/56933
Details from upstream follow.
Jan Varga <jvarga@igalia.com> wrote:
storage: Scope
WebStoragequota per storage type instead of per origin totalChange quota accounting for
WebStorageso that usage is tracked per storage
type instead of combininglocalStorageandsessionStorageinto a single per
origin total.The previous implementation summed the sizes of both storage types and applied
a shared quota limit. This could cause a write tosessionStorageto fail due
to data stored inlocalStorage(and vice-versa), and also resulted in origin
descriptors being created even when only one storage type was in use.This behavior is not consistent with other browsers, where quota is enforced
independently for each storage mechanism.Testing: Unit and WPT tests continue to pass
Reviewed in servo/servo#41531
| Assignee | ||
Updated•19 hours ago
|
| Assignee | ||
Comment 1•12 hours ago
|
||
| Assignee | ||
Comment 2•12 hours ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 1 subtests
Status Summary
Firefox
OK : 2
FAIL: 2
Chrome
OK : 2
PASS: 2
Safari
OK : 2
FAIL: 2
Links
Details
New Tests That Don't Pass
- /webstorage/storage_local_quota_independent_from_session.window.html [wpt.fyi]
- localStorage retains comparable quota after sessionStorage exhaustion:
FAIL(Chrome:PASS, Safari:FAIL)
- localStorage retains comparable quota after sessionStorage exhaustion:
- /webstorage/storage_session_quota_independent_from_local.window.html [wpt.fyi]
- sessionStorage retains comparable quota after localStorage exhaustion:
FAIL(Chrome:PASS, Safari:FAIL)
- sessionStorage retains comparable quota after localStorage exhaustion:
Description
•