wpt: Add tests for independent localStorage/sessionStorage quotas
The new tests verify that exhausting the quota of one Web Storage area does
not significantly reduce the capacity available to the other one.
Each test first measures the baseline capacity of one storage type by filling
it until QuotaExceededError is thrown, then clears it, exhausts the other
storage type, and measures the capacity again. Independence is verified by
requiring that the second measurement remains broadly comparable to the
baseline rather than collapsing to near-zero capacity, which would indicate
a shared quota.
Two directional tests are added:
- sessionStorage retains comparable quota after localStorage exhaustion
- localStorage retains comparable quota after sessionStorage exhaustion
Gecko currently fails these new tests. This is consistent with the fact that
the existing quota exhaustion tests also currently fail in Gecko.
Signed-off-by: Jan Varga [email protected]