- 🇩🇪Germany Anybody Porta Westfalica
We should have a test for logout to see if this issue still exists and safeguard us from regressions.
I think it's fixed!
- Status changed to Postponed: needs info
over 1 year ago 10:48am 8 September 2023
When a user navigate to user/logout the page hangs until i refresh. This only seems to occur on chrome v89 & edge v89.
This issue seems to occur at hook_user_logout when trying to add 'Clear-Site-Data header.
/**
* Implements hook_user_logout().
*
* When users log out, clear all cookies, serviceworker.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
*/
function pwa_user_logout($account) {
drupal_add_http_header('Clear-Site-Data', '"storage", "cookies"');
}
1. Login with a user.
2. Navigate to 'user/logout'
Expected: User is logged out of site
Actual: Page hangs and doesnt time out.
Postponed: needs info
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
We should have a test for logout to see if this issue still exists and safeguard us from regressions.
I think it's fixed!