Closed krzksz closed 4 years ago
Hi @krzksz, Magento can't correctly work in the case when cookies are disabled, but I agree that we should give some notification to the user about it. I think the solution with notification in modal window is ok. We should add JS script that will check cookie state when JS application is bootstrapping, for this we can use "cookieEnabled" property in navigation object.
Hi @krzksz Are you still interested in preparing a PR for this case?
@magento i am working on it
Hi @raulvOnestic91! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and self-assign the issue.
Hi @raulvOnestic91. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
[ ] 1. Add/Edit Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 2. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.
Hi @krzksz. Thank you for your report. The issue has been fixed in magento/magento2#25324 by @raulvOnestic91 in 2.4-develop branch Related commit(s):
The fix will be available with the upcoming 2.4.0 release.
Preconditions
Steps to reproduce
Expected result
Actual result
SecurityError (DOM Exception 18): The operation is insecure.
errors reported in browser's console, some of the scripts work but I can't add anything to the cart.So it seems like having above setting enabled in Safari will result in above error every time any script is trying to access either
window.localStorage
orwindow.sessionStorage
including reassigning it. As a result following lines throw errors and most probably prevent shop from functioning properly: https://github.com/magento/magento2/blob/c06da29dbf8cbbab5bb40ad690563b5554e78c60/app/code/Magento/Theme/view/frontend/templates/js/polyfill.phtml#L128 https://github.com/magento/magento2/blob/9c14af7a97bcf338662de365d2613c7ca9dbf8c6/app/code/Magento/Ui/view/base/web/js/lib/core/storage/local.js#L14and also this part of https://github.com/magento/magento2/blob/2.2-develop/lib/web/jquery/jquery.storageapi.min.js:
I am not sure what would be your preferred solution to this problem but I can gladly prepare a PR when we agree on how we should solve it 👍 .