From 8ec1c2359747e22e09d07c48bded6d01f757a709 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 2 Jun 2022 20:49:30 +0000 Subject: [PATCH] Add top-level site to storage key. (#127) --- storage.bs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/storage.bs b/storage.bs index 18f7985..3eec359 100644 --- a/storage.bs +++ b/storage.bs @@ -199,7 +199,7 @@ anticipated that some APIs will be applicable to both storage types going

Storage keys

A storage key is a tuple consisting of an origin -(an origin). [[!HTML]] +(an origin) and a top-level site (a site). [[!HTML]]

This is expected to change; see Client-Side Storage Partitioning. @@ -228,7 +228,15 @@ anticipated that some APIs will be applicable to both storage types going environment settings object; otherwise environment's creation URL's origin. -

  • Return a tuple consisting of origin. +

  • Let top-level origin be environment's + top-level origin. + +

  • If top-level origin is null, then set it to origin. + +

  • Let top-level site be the result of of running obtain a site + given top-level origin. + +

  • Return a tuple consisting of origin and top-level site.

    To determine whether a storage key A @@ -239,6 +247,9 @@ steps:

  • If A's origin is not same origin with B's origin, then return false. +

  • If A's top-level site is not equal to + B's top-level site, then return false. +

  • Return true.