You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To generate a new [=permission key=] for the "<a permission><code>top-level-storage-access</code></a>" feature, given an [=environment settings object=] |settings|, run the following steps:
193
-
1. Let |current origin| be |settings|' [=environment settings object/origin=].
194
-
1. If |current origin| is not [=same site=] with |settings|' [=top-level origin=], return null.
195
-
1. Return the result of [=obtain a site|obtaining a site=] from |settings|' [=top-level origin=].
192
+
To generate a new [=permission key=] for the "<a permission><code>top-level-storage-access</code></a>" feature, given an [=/origin=] |origin| and [=/origin=] |embedded origin|, run the following steps:
193
+
1. If |embedded origin| is not [=same site=] with |origin|, return null.
194
+
1. Return the result of [=obtain a site|obtaining a site=] from |origin|.
196
195
197
-
Note: the check for whether |settings|' [=environment settings object/origin=] is [=same site=] with |settings|'[=top-level origin=] is intended to disallow permission queries from cross-site frames.
196
+
Note: the check for whether |embedded origin| is [=same site=] with |origin| is intended to disallow permission queries from cross-site frames.
198
197
This depends on the invariant that `top-level-storage-access` permission requests are only allowed in a [=top-level browsing context=]. As such, this check is only relevant in {{Permissions/query(permissionDesc)}}.
0 commit comments