Skip to content

Commit 4e4cee3

Browse files
aselyaRob--WoliverdunkHeikoTheissenbvandersloot-mozilla
authored
GetPartitionKey updates (#712)
Co-authored-by: Rob Wu <[email protected]> Co-authored-by: Oliver Dunk <[email protected]> Co-authored-by: Heiko Theißen <[email protected]> Co-authored-by: bvandersloot-mozilla <[email protected]>
1 parent e62ab22 commit 4e4cee3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proposals/hasCrossSiteAncestor.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,21 @@ string. A UUID of the document.
104104

105105
| Required Combinations | Notes |
106106
|---|---|
107-
|frameId | frameId must be a non-zero value|
108107
|tabId + frameId |frameId can be 0|
109108
|tabId | will use the top-level frame (frameId 0)|
109+
|frameId| frameId must not be 0, when specified without tabId|
110110
|documentId| tabId/frameId are not required but permitted|
111111

112112
##### Return value
113113
A Promise that will be fulfilled with a `Cookie.partitionKey` object that matches the properties given in the details parameter and contains the `hasCrossSiteAncestor` value associated with the current cross-site status of the frame.
114114

115+
##### Permissions required to use Cookies.getPartitionKey()
116+
- Host permissions for the frame's document.
117+
115118
##### Error conditions
116119
- If host permissions are not granted for the document whose partitionkey is getting queried an error will be returned.
117120
- When the parameters passed do not correspond to an existing frame, an error will be returned.
121+
- If the partitionKey that would be associated with the frame can not be serialized an error will be returned. This can happen when the origin associated with the topLevelSite is opaque or if the underlying key associated with the frame has a nonce. This is comparable to situations where `document.cookie` would throw.
118122

119123
### New Permissions
120124
No new permissions are required.

0 commit comments

Comments
 (0)