[w3c/permissions] WebDriver: Make it possible to pass a different origin to "Set Permission" (Issue #419)

https://w3c.github.io/permissions/#set-permission-command changes permissions for "all environment settings objects whose origin is the same as the origin of [the current settings object]".

This is somewhat problematic from a [testdriver](https://web-platform-tests.org/writing-tests/testdriver.html) perspective when cross-origin tests are involved: there are [limitations](https://web-platform-tests.org/writing-tests/testdriver.html#using-test-driver-in-other-browsing-contexts) that end up making all WebDriver communication go through the context that includes testharness.js, so if a given test includes a cross-origin iframe that needs to invoke "Set Permission" the call will go through the main frame and not have the desired effect.

Even though this is a testdriver limitation, I guess fixing it is not trivial, so I was wondering if the editors would be open to changing the spec itself to make it possible to (optionally) pass different origins.

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

Message ID: <w3c/permissions/issues/419@github.com>

Received on Tuesday, 12 September 2023 10:12:02 UTC