Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send Clear-Site-Data header to Chrome-like browsers #41204

Closed
wants to merge 4 commits into from
Closed

Do not send Clear-Site-Data header to Chrome-like browsers #41204

wants to merge 4 commits into from

Conversation

HLFH
Copy link
Contributor

@HLFH HLFH commented Oct 30, 2023

Summary

Cancels #37405 regression.

Checklist

@HLFH
Copy link
Contributor Author

HLFH commented Oct 30, 2023

I confirm this PR is working.

@HLFH HLFH changed the title Do not send Send Clear-Site-Data header to Chrome-like browsers Do not send Clear-Site-Data header to Chrome-like browsers Oct 31, 2023
@szaimen szaimen added this to the Nextcloud 28 milestone Nov 3, 2023
@szaimen
Copy link
Contributor

szaimen commented Nov 3, 2023

Hi @HLFH can you please fix dco? See https://github.com/nextcloud/server/pull/41204/checks?check_run_id=18198838092. otherwise wr cannot merge this. Thanks!

Comment on lines 107 to 108
if ($this->request->getServerProtocol() === 'https') {
// This feature is available only in secure contexts
if (!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep both checks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only reverted to the former code that was working for Chrome-like browsers.
I fixed the regression and did not add any minor feature such as the HTTPS check.
This might be best to add the HTTPS check in an additional PR.

@HLFH
Copy link
Contributor Author

HLFH commented Nov 5, 2023

@szaimen DCO is fixed. Feel free to merge.

@szaimen
Copy link
Contributor

szaimen commented Nov 5, 2023

@szaimen DCO is fixed. Feel free to merge.

Thanks! First some reviews need to be done

@szaimen szaimen requested review from nickvergessen, solracsf, a team and tcitworld November 5, 2023 16:06
@blizzz blizzz mentioned this pull request Nov 6, 2023
This was referenced Nov 10, 2023
@HLFH
Copy link
Contributor Author

HLFH commented Nov 16, 2023

Any other reviews? @szaimen Or it could be merged for the beta 4.

@szaimen
Copy link
Contributor

szaimen commented Nov 16, 2023

php-lint failure seems to be related...

@szaimen
Copy link
Contributor

szaimen commented Nov 16, 2023

nodb failure seems to be related: https://drone.nextcloud.com/nextcloud/server/44081/9/4

@blizzz blizzz mentioned this pull request Nov 20, 2023
5 tasks
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
Clear-Site-Data is broken on Chrome-like browsers.
https://bugs.chromium.org/p/chromium/issues/detail?id=1349087

Signed-off-by: Gaspard d'Hautefeuille <[email protected]>
@HLFH
Copy link
Contributor Author

HLFH commented Dec 15, 2023

@szaimen Still any issues with @solracsf changes?

@HLFH
Copy link
Contributor Author

HLFH commented Dec 25, 2023

@karlitschek

@HLFH
Copy link
Contributor Author

HLFH commented Jan 2, 2024

Closing as no one cares about this 30s logout delay bug on Chrome-like browsers, which makes Nextcloud a broken solution since 9 months.

@HLFH HLFH closed this Jan 2, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 29 milestone Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow logout on Chrome-like browsers
7 participants