Files
servo/components/storage
Jan Varga 44c882fb47 storage: Scope WebStorage quota per storage type instead of per origin total (#41531)
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: Existing unit and WPT tests continue to pass, a new WPT test
has been
added

---------

Signed-off-by: Jan Varga <jvarga@igalia.com>
2025-12-28 02:29:45 +00:00
..