Re: [w3c/permissions] Safari returns different results for current permission state (#278)

Oh, yes, from https://www.w3.org/TR/permissions/#reading-current-states. When I poked at this several years ago, it appeared possible to have different iframes or tabs from the same origin that had different states for a given permission. For example, one could have the permission "granted" while the other had it "denied". In cases where those could directly manipulate each other's DOM (i.e. iframes and tabs with an opener relationship), that means that calling `otherframe.window.permissions.query(...)` could return something different from `window.permissions.query(...)`, and similarly for calling a cross-frame function that then calls `permissions.query(...)`. I never wrote the tests to figure out exactly what happened, and the landscape has changed enough since then that my claim about Safari might not even be true anymore.

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

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

Received on Monday, 28 February 2022 18:33:23 UTC