From eb6c32a65a092d3b8d64eb3b301e833f70251f52 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..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.