[w3c/permissions] Add an optional `embeddingOrigin` to the `permissions.setPermission` command (PR #468)

Updates the `permissions.setPermission` command and the `permission key generation algorithm`. The command now accepts an optional `embeddingOrigin` parameter to support permissions that require double-keying, such as the [Storage Access API](https://privacycg.github.io/storage-access/#permissions-integration). The `permission key generation algorithm` has been updated to accept origin and top-level origin as direct inputs, instead of an [Environment Settings Objects](https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object) (ESO). This allows WebDriver to properly set a permission, since it doesn't necessarily have an ESO to pass.

closes #450

The following tasks have been completed:

 * [ ] Modified Web platform tests (link)

Implementation commitment:

 * [ ] WebKit (link to issue)
 * [ ] Blink (link to issue)
 * [ ] Gecko (link to issue)


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/jalonthomas/permissions/pull/468.html" title="Last updated on Aug 14, 2025, 4:10 PM UTC (bad0c1a)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/permissions/468/4f2ccb0...jalonthomas:bad0c1a.html" title="Last updated on Aug 14, 2025, 4:10 PM UTC (bad0c1a)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/permissions/pull/468

-- Commit Summary --

  * Add embedding origin to set permission command
  * Change the key generation algorithm to use an origin and top level origin instead of an ESO

-- File Changes --

    M index.html (51)

-- Patch Links --

https://github.com/w3c/permissions/pull/468.patch
https://github.com/w3c/permissions/pull/468.diff

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

Message ID: <w3c/permissions/pull/468@github.com>

Received on Thursday, 14 August 2025 16:10:32 UTC