Open Bug 2007824 Opened 19 hours ago Updated 12 hours ago

[wpt-sync] Sync PR 56933 - storage: Scope `WebStorage` quota per storage type instead of per origin total

Categories

(Core :: Storage: localStorage & sessionStorage, task, P4)

task

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 WebStorage quota per storage type instead of per origin total

Change quota accounting for WebStorage so that usage is tracked per storage
type instead of combining localStorage and sessionStorage into 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 to sessionStorage to fail due
to data stored in localStorage (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

Component: web-platform-tests → Storage: localStorage & sessionStorage
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

You need to log in before you can comment on or make changes to this bug.