-
Notifications
You must be signed in to change notification settings - Fork 81
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
Increase the numerical limit for allowed values in set-cookie #3016
Comments
Looks like bitfield, any time more digits can be added. |
True, one way to handle this could be to allow a limitless sequence of |
I implemented Now I am facing an open ended stream of requests to constantly add to it. I think at this point this should involve AdGuard too, there might be good reasons these limits were put in place. cc @ameshkov |
This comment was marked as abuse.
This comment was marked as abuse.
No reason was stated why values above |
@gorhill |
Since its binary values, maybe just cover 3-4 digit binarys? Not ideal but an option |
Another option to improve set-local/session/cookie, is for these values to be shared. Since we have a few set-cookie options, why not just cover them all. |
we have decided to increase the limit up to 32767 for AdGuard's cookie setting scriptlets |
Related issue: uBlockOrigin/uBlock-issues#3016
So simple set-constant sill will support small range 0-15? |
@krystian3w what are you talking about? |
This was fixed months ago: gorhill/uBlock@9146134 |
Prerequisites
I tried to reproduce the issue when...
Description
I propose increasing the numerical limit of
set-cookie
scriptlet.I suggest the new limit to be
111
.Reasoning:
This page:
https://launer.com/
uses values from100
-111
to define what cookie settings are accepted.(It also uses value
000
to say that no cookies are accepted but that value is not reasonable for us anyway...)A specific URL where the issue occurs.
https://launer.com/
Steps to Reproduce
launer.com##+js(set-cookie, cookie_consent, 100)
orlauner.com##+js(trusted-set-cookie, cookie_consent, 111)
Expected behavior
Those values would be accepted by the scriptlet.
Actual behavior
They are not accepted.
uBO version
1.54.1b8
Browser name and version
FF 120.0.1
Operating System and version
Win 10
The text was updated successfully, but these errors were encountered: