Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPartitionKey updates #712

Merged
merged 66 commits into from
Nov 13, 2024
Merged

GetPartitionKey updates #712

merged 66 commits into from
Nov 13, 2024

Conversation

aselya
Copy link
Contributor

@aselya aselya commented Oct 25, 2024

When implementing the getPartitionKey api, there were two issues that I felt should be updated in the proposal.

The first is removing the ability to allow for just a frameId to be used. Allowing this requires the browser to make an assumption on the intended tab which is not explicitly stated in the proposal and could lead to inconsistent behavior between browsers.

In chromium there are cases where the CookiePartitionKey of a cookie can be unserializable (if it's got a nonce or the topLevelSite is opaque). The API should return an error in this case to ensure that we are only returning valid keys with this method key.

aselya and others added 30 commits March 28, 2024 11:31
Add initial proposal
Updates for clarity
Update formatting of url
Updates in phrasing and document organization.
Additional content and formatting
Update pr to incorporate reviewer feedback.

Co-authored-by: Rob Wu <[email protected]>
Update to reflect reviewer suggestion.

Co-authored-by: Rob Wu <[email protected]>
Update to remove reference to Chrome

Co-authored-by: Rob Wu <[email protected]>
Added background information on x-site ancestor chain bit
Update language for cookies.remove()
Add new use case and add clarification to table
Add language describing logic for determining hasCrossSiteAncestor value when not provided. Update method descriptions to incorporate new language and indicate when errors will be thrown.
aselya and others added 17 commits August 19, 2024 10:22
Add table containing valid partitionKeys. Update language in the background section to be more consistent.
Clarify language surrounding the empty partitionKey
Co-authored-by: bvandersloot-mozilla <[email protected]>
Update language to specify the domain of the cookie's url
Return {} to the table of valid partition keys
Add table describing inputs for getPartitionKey()
describe error conditions of new api
Updates to the getPartitionKey() Api:
Remove ability to just pass a frameId without a tabId.

Update language to describe that an error should be returned when a partitionKey is not serializable.
Update language to include reference to nonce
Add permissions required for getPartitionKey() api
proposals/hasCrossSiteAncestor.md Show resolved Hide resolved
proposals/hasCrossSiteAncestor.md Outdated Show resolved Hide resolved
proposals/hasCrossSiteAncestor.md Outdated Show resolved Hide resolved
aselya and others added 3 commits November 7, 2024 09:10
Updating language for host permissions

Co-authored-by: Rob Wu <[email protected]>
remove no longer needed permission
Update allowed parameters for getPartitionKey()
proposals/hasCrossSiteAncestor.md Outdated Show resolved Hide resolved
proposals/hasCrossSiteAncestor.md Outdated Show resolved Hide resolved
proposals/hasCrossSiteAncestor.md Outdated Show resolved Hide resolved
aselya and others added 2 commits November 13, 2024 08:05
Update language for frameId parameter.

Co-authored-by: Rob Wu <[email protected]>
Update details on when an error would be returned.

Co-authored-by: Rob Wu <[email protected]>
@Rob--W
Copy link
Member

Rob--W commented Nov 13, 2024

Can I squash and merge or would you like to make more changes?

@aselya
Copy link
Contributor Author

aselya commented Nov 13, 2024

@Rob--W, feel free to squash and merge.

@Rob--W Rob--W merged commit 4e4cee3 into w3c:main Nov 13, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants