diff --git a/storage.bs b/storage.bs index 18f7985..fd01930 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 topLevelOrigin be environment's + top-level origin. + +

  • If topLevelOrigin is null, then set it to origin. + +

  • Let topLevelSite be the result of of running obtain a site + given topLevelOrigin. + +

  • Return (origin, topLevelSite).

    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 same site + with B's top-level site, then return false. +

  • Return true.