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
chore: skip non-standard cookie asserts on Firefox #6994
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
test/mocha-utils.ts
Outdated
export const expectCookieEquals = (cookies, expectedCookies) => { | ||
const { isChrome } = getTestState(); | ||
if (!isChrome) { | ||
for (const expectedCookie of expectedCookies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about changing this to check to only checking the standard properties instead of removing the non standard ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! Tried to keep it simple and just copied over all the standard/shared values to a new object. Let me know if you had something else in mind.
@googlebot I signed it! |
786dd8f
to
067442e
Compare
A test failed at https://github.com/puppeteer/puppeteer/pull/6994/checks?check_run_id=2114890609
Any chance this could be an intermittent failure or is it really something my patch broke? |
I triggered a re-run of all the jobs. Lets see... |
All the checks passed this time. |
Yes, this is what I had in mind. Now, you should also be able to remove the |
Sorry, I don't have a |
Thanks for merging @jschfflr ! |
…Firefox (sync #6994) r=remote-protocol-reviewers,whimboo Depends on D108099 Synchronize the upstream change merged at puppeteer/puppeteer#6994 Differential Revision: https://phabricator.services.mozilla.com/D108859
Sorry for the late reply - I was OOO. No, I'm more than happy with the current version. Thanks! |
Fix for #6976
This change adds a dedicated assert helper for cookies which will only check the non-standard properties
sameParty
,sourcePort
andsourceScheme
when running against chrome.All cookie asserts are replaced to use this helper.
3 tests marked as failing with Firefox are enabled: