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

feat: add httpOnly cookies.get filter #37255

Merged

Conversation

BlackHole1
Copy link
Member

Description of Change

The existing filter does not fully cover some scenarios, such as httpOnly. This httpOnly filter can avoid additional judgments at the js level.

Checklist

Release Notes

Notes: Add httpOnly to the cookie filter.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 14, 2023
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

Given we allow setting cookies with an httpOnly filter, it seems reasonable to allow the same in the getter.

@codebytere codebytere added the semver/minor backwards-compatible functionality label Feb 15, 2023
@codebytere codebytere changed the title feat: add httpOnly cookies filter feat: add httpOnly cookies filter Feb 15, 2023
@codebytere codebytere changed the title feat: add httpOnly cookies filter feat: add httpOnly cookies.get filter Feb 15, 2023
@codebytere codebytere added 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 Feb 15, 2023
Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@codebytere codebytere merged commit 868676a into electron:main Feb 21, 2023
@release-clerk
Copy link

release-clerk bot commented Feb 21, 2023

Release Notes Persisted

Add httpOnly to the cookie filter.

@trop
Copy link
Contributor

trop bot commented Feb 21, 2023

I was unable to backport this PR to "23-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. labels Feb 21, 2023
@BlackHole1 BlackHole1 deleted the support-cookies-filter-httyonly branch February 21, 2023 10:46
@trop
Copy link
Contributor

trop bot commented Feb 21, 2023

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

@trop trop bot added in-flight/24-x-y and removed target/24-x-y PR should also be added to the "24-x-y" branch. labels Feb 21, 2023
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
feat: add httpOnly cookies filter
@trop trop bot added merged/24-x-y PR was merged to the "24-x-y" branch and removed in-flight/24-x-y labels Feb 27, 2023
gecko19 pushed a commit to brightsign/electron that referenced this pull request Feb 28, 2023
feat: add httpOnly cookies filter
BlackHole1 added a commit to BlackHole1/electron that referenced this pull request Apr 20, 2023
feat: add httpOnly cookies filter
@trop
Copy link
Contributor

trop bot commented Apr 20, 2023

@BlackHole1 has manually backported this PR to "23-x-y", please check out #38043

@trop trop bot added in-flight/23-x-y merged/23-x-y PR was merged to the "23-x-y" branch. and removed needs-manual-bp/23-x-y in-flight/23-x-y labels Apr 20, 2023
jkleinsc pushed a commit that referenced this pull request Apr 26, 2023
feat: add `httpOnly` `cookies.get` filter (#37255)

feat: add httpOnly cookies filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/approved ✅ 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/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants