-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove extra quotes around values passed for clear-site-data header #13267
Conversation
Signed-off-by: Kurt Smolderen <kurt.smolderen@empuly.net>
This is not according to spec: https://www.w3.org/TR/clear-site-data/ |
It seems, as far as i read the specs, this IS according to the specs. Besides that the specs are still a draft and thus work in progress, the examples are misleading (at least to me). As stated in the w3c draft in 3.1 https://www.w3.org/TR/clear-site-data/#header
So according to this rule, a valid quoted string is "value1, value2, value3" and not "value1", "value2", "value3" Maybe that's where the draft's examples are a bit misleading, because every value is quoted on its own and i think Example4, the killswitch is wrong. The only thing to mention is that double-quotes have to be used and not as i did single-quotes. I can not verify it in other browsers, so someone else has to check that it works with double-quotes as it has to be conform the RFC. Hope this helps. |
Here is the code Dont know This code is used by Not sure but from the parse method i would expected that firefox requires |
It seems you are right. The way the header value is currently populated in Nextcloud, seems to follow the standard. The Chromium and Firefox code confirm the correctness of the current implementation as well. So at this point I'm pretty convinced that this PR is bogus and should be refused/ closed. Agree? |
I read the way Chromium and Firefox parse the values. Indeed, it is with double-quotes. Rests the question, why it behaves like it does in Chrome/Chromium and Firefox. So problem is in the browsercode as i think and not in Nextcloud. Let keep it on the "work in progress" on that header. Maybe it will get changed a few times more. I agree that this can be closed. |
With respect to Nextcloud, what does the |
|
So yes since we seem to follow the specs. Lets close this. |
Implementation of the patch as suggested by @tfd0207 for issue #12568.
Removing the double quotes from each value set for
Clear-Site-Data
makes Firefox bahave as expected. Also validated in Chrome and Edge. Currently no access to Safari.