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

fix: properly bubble up cookie creation failure message #37586

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Mar 15, 2023

Description of Change

Closes #37568.

net::CanonicalCookie::CreateSanitizedCookie allows for passing a net::CookieInclusionStatus out parameter, which will contain errors related to cookie creation if they existed. Previously, if the cookie wasn't created we showed the user a generic failure, but we should instead show the user the more specific error should it exist.

Checklist

Release Notes

Notes: Improve error messages on session.cookies.set failure.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/22-x-y PR should also be added to the "22-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. labels Mar 15, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 15, 2023
@codebytere codebytere force-pushed the improve-cookie-set-failure branch 2 times, most recently from f081dbc to 0b0fc23 Compare March 15, 2023 11:00
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 16, 2023
@codebytere codebytere merged commit b8f970c into main Mar 16, 2023
@codebytere codebytere deleted the improve-cookie-set-failure branch March 16, 2023 12:48
@release-clerk
Copy link

release-clerk bot commented Mar 16, 2023

Release Notes Persisted

Improve error messages on session.cookies.set failure.

@trop
Copy link
Contributor

trop bot commented Mar 16, 2023

I have automatically backported this PR to "22-x-y", please check out #37595

@trop trop bot added in-flight/22-x-y and removed target/22-x-y PR should also be added to the "22-x-y" branch. labels Mar 16, 2023
@trop
Copy link
Contributor

trop bot commented Mar 16, 2023

I have automatically backported this PR to "23-x-y", please check out #37596

@trop
Copy link
Contributor

trop bot commented Mar 16, 2023

I have automatically backported this PR to "24-x-y", please check out #37597

@trop trop bot added in-flight/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. labels Mar 16, 2023
@trop trop bot added merged/22-x-y PR was merged to the "22-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch merged/23-x-y PR was merged to the "23-x-y" branch. and removed in-flight/22-x-y labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/22-x-y PR was merged to the "22-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Cookie is not set from parition when domain is present
3 participants