-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 issue #27355 with too many cookies in admin #27364
Fix issue #27355 with too many cookies in admin #27364
Conversation
Hi @ihor-sviziev. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Verified that locally with different scenarios.
Change works as expected, translations (Polish) still work.
I'd love to provide Functional Tests as a separate PR.
Hi @lbajsarowicz, thank you for the review.
|
@lbajsarowicz in functional tests I believe we can’t handle specifically this case because AFAIK there is no way to find all cookies with the same domain and name, but different path. |
Ok. Its fine for me. |
Failed functional tests not related to the changes in this PR |
Pull Request state was updated. Re-review required.
Hi @ihor-sviziev, here is your new Magento instance. |
@engcom-Alfa I can't reproduce this issue on test instance. Also I see the file mage-translation-directory is loaded, so we shouldn't have any cookies: |
Hi @ihor-sviziev . I rechecked it and everything works well. Thanks! |
Hi @lbajsarowicz . Could you approve it again? |
Hi @lbajsarowicz, thank you for the review. |
Hi @ihor-sviziev, thank you for your contribution! |
Port MC-19247 for adminhtml in order to not use jQuery.localStorage plugin
Description (*)
As part of 71c781d there were significantly changed translation module for frontend, but for backend was left old implementation that caused #27355
Before my changes js translation file was loaded via
https://github.com/magento/magento2/blob/71c781df5536a2ec79c9cf42ade0c262396767a3/app/code/Magento/Translation/view/base/templates/translate.phtml
After - via https://github.com/magento/magento2/blob/71c781df5536a2ec79c9cf42ade0c262396767a3/app/code/Magento/Translation/view/base/web/js/mage-translation-dictionary.js
so it not creating any cookies anymore.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)