Re: [whatwg/storage] Add a storage key comparison algorithm (PR #134)

@recvfrom commented on this pull request.



> @@ -229,6 +229,17 @@ settings object</a> <var>environment</var>, run these steps:
  <li><p>Return <var>key</var>.
 </ol>
 
+<p>To determine whether a <a>storage key</a> <var>A</var>
+<dfn export for="storage key" id=concept-storage-key-equals lt=equal>equals</dfn> <var>B</var>, run
+these steps:
+
+<ol>
+ <li><p>If <var>A</var>'s <a for="storage key">origin</a> is not <a lt="same origin">same-origin</a>

I modeled this after https://github.com/whatwg/url/blob/main/url.bs#L2730-L2731, but it looks like "same origin with" is indeed much more commonly used in places like https://html.spec.whatwg.org/multipage/origin.html. Will change!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/134#discussion_r804833427
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/storage/pull/134/review/880436246@github.com>

Received on Friday, 11 February 2022 16:52:12 UTC