Dont use core's prepopulate function for core forms (Privacy)

Created on 10 January 2025, 10 days ago

Problem/Motivation

Drupal Core has a function to store user input in browser's local storage. This violates data protection rules. Since some modules are using function (see #2409107), this issue is intended to provide a quick solution to make Drupal CMS GDPR compliant on the day of release.

Steps to reproduce

  • Enable "Who can register accounts?" > "Visitors" or "Visitors, but administrator approval is required"
  • Log out
  • Go to /user/register
  • Register new user
  • Go again go to /user/register
  • The form is prefilled.
  • In Local Storage the user name and mail address are stored without consent (Drupal.visitor.name and Drupal.visitor.mail)

Proposed resolution

  • Short term: No longer used in core forms
  • Long-term: Deprecation notice and remove the entire non-privacy-compliant function.

Remaining tasks

  • Write Patch
  • Write Change Record

User interface changes

Do not prefill form for anonymous user at user register and comment.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

User registration and comment form do not store any personal data in the browser in accordance with data protection guidelines rules. The form attribute data-user-info-from-browser will be deprecated in a later step.

πŸ› Bug report
Status

Active

Version

11.1 πŸ”₯

Component

user system

Created by

πŸ‡©πŸ‡ͺGermany jan kellermann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024