Log in / log out problems in Chrome

Created on 6 May 2022, about 2 years ago
Updated 16 May 2023, about 1 year ago

Problem/Motivation

In Chrome, I'm seeing an issue where Drupal's "log in" submit button and "log out" link sometimes do not do anything when the PWA module is enabled. Submitting the login form results in a page submission that acts like it is loading, but never completes. Clicking the log out links is similar, the browser tab shows activity but nothing happens. Clicking the log out link a second time works.

Steps to reproduce

Submit the Drupal log in form or click the log out link when logged in.
Was able to reproduce in Chrome 97 and 101 on Linux. I do not see this issue in Chrome 83 on Linux. Firefox does not seem to be affected.

Proposed resolution

Chrome seems to be doing something funny when it receives the "Clear-Site-Data" header in a response. Commenting out the $response->headers->add() lines in \Drupal\pwa\EventSubscriber\ResponseSubscriber reliably fixes the issue for me. Unfortunately I don't have an alternate solution.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Regression

    It restores functionality that was present in earlier versions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024