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

Cookie-remover.js does not remove a cookie #1126

Closed
5 of 8 tasks
peace2000 opened this issue Jun 23, 2020 · 5 comments
Closed
5 of 8 tasks

Cookie-remover.js does not remove a cookie #1126

peace2000 opened this issue Jun 23, 2020 · 5 comments
Labels
enhancement New feature or request fixed issue has been addressed

Comments

@peace2000
Copy link
Member

peace2000 commented Jun 23, 2020

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

Cookie-remover.js does not remove a specific cookie on www.mikrobitti.fi. The cookie is set for mikrobitti.fi, which probably is the reason behind this (I did read the documentation: https://github.com/gorhill/uBlock/wiki/Resources-Library#cookie-removerjs-) The problem is that I cannot make a rule to remove it even if I have a filter for both domains.

The name of the cookie is Bhb2CdOB3V.

Related conversation: https://www.reddit.com/r/uBlockOrigin/comments/hem8c5/cookieremoverjs_does_not_work/

A specific URL where the issue occurs

https://www.mikrobitti.fi/

Steps to Reproduce

  1. Set filters to remove a cookie called Bhb2CdOB3V
    mikrobitti.fi##+js(cookie-remover, Bhb2CdOB3V)
    www.mikrobitti.fi##+js(cookie-remover, Bhb2CdOB3V)

  2. Go to https://www.mikrobitti.fi/

  3. Check if that cookie is being removed or not.

Expected behavior:

Tha cookie would be removed.

Actual behavior:

The cookie wasn't removed.

Your environment

  • uBlock Origin version: v1.27.10
  • Browser Name and version: Firefox 77.0.1
  • Operating System and version: Windows 10
@gwarser gwarser added the enhancement New feature or request label Jun 23, 2020
@gwarser
Copy link

gwarser commented Jun 23, 2020

Does this count as declined? #352

Also uBlockOrigin/uAssets#5529 ? Should not this work already?

@peace2000
Copy link
Member Author

peace2000 commented Jun 24, 2020

After I opened this issue, I was told that this scriptlet expires cookies, doesn't remove them. That's probably ok as well. However the name is really misleading, could it be changed?

But anyway, just hoping that this scriptlet could be fixed so that it expires or removes that specific cookie. :)

@gorhill
Copy link
Member

gorhill commented Jun 24, 2020

So it appears the domain www.mikrobitti.fi is allowed to set cookies for .mikrobitti.fi? I did not expect this. Is this because www is a special treated as a special subdomain?

@peace2000
Copy link
Member Author

peace2000 commented Jun 24, 2020

So it appears the domain www.mikrobitti.fi is allowed to set cookies for .mikrobitti.fi?

kuva

It seems so.

gorhill added a commit to gorhill/uBlock that referenced this issue Jun 24, 2020
@uBlock-user uBlock-user added the fixed issue has been addressed label Jun 26, 2020
@peace2000
Copy link
Member Author

Tested in RC7. Works as intended. Thanks!

JustOff pushed a commit to gorhill/uBlock-for-firefox-legacy that referenced this issue Dec 21, 2020
@ghost ghost mentioned this issue Apr 28, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed issue has been addressed
Projects
None yet
Development

No branches or pull requests

4 participants