Re: [whatwg/storage] consider setting StorageKey on environment explicitly (Issue #142)

I think that's reasonable. I think what we want long term is to have a field on environment called authority (or hey, principal), that encompasses origin, the top-level site, and other pertinent authority aspects. I think that would make the new web security model a lot clearer. (And then we can define things such as "same authority" and in developer relations we can talk about the transition from the same-origin policy to the same-authority policy.)

Perhaps a step in that direction would be that we define StorageKey as such, but for now we also keep the separate origin getter on environment and then we can adjust all the call sites.

cc @bvandersloot-mozilla 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/142#issuecomment-1122147159
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/storage/issues/142/1122147159@github.com>

Received on Tuesday, 10 May 2022 09:24:47 UTC