Re: [w3c/permissions] WIP: Define a permission store (closes #384) (PR #390)

@annevk commented on this pull request.



> +        </dd>
+        <dt>
+          A <dfn data-dfn-for="powerful feature" class="export">permission key comparison algorithm</dfn>:
+        </dt>
+        <dd>
+          <p>
+            Takes two [=permission store keys=] and returns a boolean that shows whether the two keys are equal.
+            If unspecified, this defaults to the <a>default permission key comparison algorithm</a>.
+          </p>
+          <p>
+            The <dfn data-export="">default permission key comparison algorithm</dfn>,
+            given [=permission store keys=] |key1| and |key2| (both [=origins=]), runs the following steps:
+          </p>
+          <ol class="algorithm">
+            <li>
+              If |key1| is not [=same origin=] with |key2| return false.

Not assert, but return early if either is not.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/390#discussion_r1032058639
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/permissions/pull/390/review/1193901305@github.com>

Received on Friday, 25 November 2022 07:02:19 UTC