- Issue created by @marcus_johansson
- 🇩🇪Germany jan kellermann
Thank you for this issue. I had opened the referenced issue.
1) In general: The storage of data in the browser is permitted if it is strictly necessary for the provision of a requested service. If opening the chat across page boundaries is part of the service, it can be assumed that writing to the localStorage after the user interaction is permitted. Then you do not need a consensus. I have therefore built the MR so that the localStorage is only used after user interaction and only for as long as it is needed.
2) You can just ask the Klaro consent state:
let consent = klaro.getManager().getConsent('deepchat');
.3) We have an issue for Klaro that would resolv your problem because all accesses to the browser are prevented until consent is given: https://www.drupal.org/project/klaro/issues/3487461 ✨ Blocking Cookies and Storage Sets (proof of concept) Active (I add
^deepChatState_.*$
to the list in service-yaml). - 🇩🇪Germany marcus_johansson
Thank you @jan kellerman - the #1 was the piece of information I was missing. Then your MR makes total sense.
Regarding your MR - we moved the project into the core AI module, so I have replicated the issue here, if you want to push the MR again to get proper attribution: https://www.drupal.org/project/ai/issues/3494806 📌 Dont set localStorage by default Active . Sorry about the inconvinience and confusion. I will credit you regardless. Let me know.
I'll set this to fixed, thank you for the thorough answer!
- 🇩🇪Germany jan kellermann
With pleasure! I am always very happy to discuss the topic of data protection.
My statement regarding (1) is not a legally binding statement and data protection authorities or courts may have a different opinion.
In general, it is important that this information is included in the website's privacy policy. To make this transparent, we often include a “Privacy Information” section at the end of our module descriptions and provide information about the processing of personal data, external services and the use of cookies and storage.