-
Notifications
You must be signed in to change notification settings - Fork 909
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
Import cookies from Chrome #93
Conversation
Google Chrome 66.0.3359.117 just came out today, and it updated the |
probably caused by https://chromium.googlesource.com/chromium/src/+/23f4922cd6206fab60dd7fee798ed325ab982171 |
Updated PR to handle importing from Chrome cookie db v10. Note that the PR now only supports importing from a v10 database, used in Chromium 66 and later. I could add support for earlier db versions, but I don't think it's worthwhile because Chrome will only be supporting v10 and above starting with C66 (released today), so by the time brave-browser sees wide release I think it's fair to assume most users who are migrating from Chrome will have upgraded to Chrome >= 66. |
8257434
to
3f9f9c7
Compare
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.
++ 👍
Adding virtual def for SetPublisherExclude
Support importing cookies from Chrome, per brave/brave-browser#47.
I tried to strike a balance of minimizing Chromium patches while avoiding copy-pasting large chunks of Chromium code, which is what the Muon implementation does to keep patching to an absolute minimum. As a reviewer, if you see any places where patching could be reduced without sacrificing maintainability, please let me know!
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Automated testing
yarn test brave_unit_tests
ChromeImporterTest.ImportCookies
andSUCCESS: all tests passed.
Manual testing
rm -rf ~/Library/Application\ Support/Brave-Development/
yarn start
Cross-platform testing
I will verify that this PR builds and passes both manual and automated tests on our 3 target platforms: macOS, Windows, and Linux, updating the table below as I go.
Reviewer Checklist: