-
Notifications
You must be signed in to change notification settings - Fork 82
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-cookie' scriptlet sometimes does not work #3293
Comments
Despite the name, cookies are expired, not removed. |
If you type |
I tried to remove AWSALBTG cookie using rule |
It depends on whether the site sets the cookie again after uBO removing it or not. |
When the modification of request headers is implemented, we should be able to remove For |
There is no guarantee the cookie is still removed after the scriptlet execute when the site keeps setting it -- there is no cookie-blocking API in the DOM. There is an experimental CookieChangeEvent but currently not available in Firefox -- so this may be used in the future when support is present for all browsers. |
Prerequisites
I tried to reproduce the issue when...
Description
remove-cookie
scriptlet does not sometimes remove a cookie. At discovermagazine.com rulediscovermagazine.com##+js(remove-cookie,kserv-session)
does not work. Logger shows the scriptlet but it does not have any effect on the cookie kserv-session.But on nautil.us this scriptlet works as expected. Rule
nautil.us##+js(remove-cookie,arc)
succesfully removes cookie called arc.I checked on Brave, Edge and Firefox Nightly. Can reproduce this issue on all three browsers.
A specific URL where the issue occurs.
https://www.discovermagazine.com/mind/what-does-it-mean-to-be-an-ambivert
Steps to Reproduce
discovermagazine.com##+js(remove-cookie,kserv-session)
rule to custom filter and add that filter to filter list or to user filters.kserv-session
was not removed. You can see in devtools that this cookie is still there.Expected behavior
Cookie is removed.
Actual behavior
Cookie didn't get removed.
uBO version
1.58.0
Browser name and version
Brave Version 1.67.123 Chromium: 126.0.6478.126
Operating System and version
Windows 11 10.0.22631
The text was updated successfully, but these errors were encountered: