mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
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>