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

cookies without a domain cannot be deleted #31

Open
practik opened this issue Jul 3, 2018 · 2 comments
Open

cookies without a domain cannot be deleted #31

practik opened this issue Jul 3, 2018 · 2 comments

Comments

@practik
Copy link

practik commented Jul 3, 2018

Steps to reproduce:

  1. Go to any page of a website that uses cookies and save a copy to your computer.
  2. Open the local copy in the browser.
  3. Check Cookie Quick Manager. The local webpage will be at the top of the Domains list with no domain name, just a number.
  4. Select a cookie from the local webpage and click the right-hand trash can icon to delete it.

Expected results: The cookie should be deleted.

Actual results: The delete icon turns red and the cookie is not deleted.

Cookie Quick Manager 0.3rc2 on Firefox 60.0.1 on macOS
PS: Thanks for all the work you put into the latest update, @ysard!

@ysard
Copy link
Owner

ysard commented Jul 4, 2018

Hi, thank you for the feedback, the issue is from Firefox itself and is now reported on Bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=1473412

wait & see :p

@Lusito
Copy link

Lusito commented Aug 4, 2019

@ysard I just noticed this issue as well. You can clean these cookies by prefixing file://

Here is a simplified version of the code I use in my extension:

function getCookieRemoveURL(cookie: Cookies.Cookie) {
    if (cookie.domain.length === 0)
        return `file://${cookie.path}`;
    const rawDomain = cookie.domain.startsWith(".") ? cookie.domain.substr(1) : cookie.domain;
    return (cookie.secure ? "https://" : "http://") + rawDomain + cookie.path;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants