搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

It's no longer possible to delete unnamed cookies. Why? It always was in the past.

  • 2 回覆
  • 1 有這個問題
  • 4 次檢視
  • 最近回覆由 cor-el

more options

I have no other problems deleting individual cookies. Some sites drop unnamed cookies on a computer. I was always able to delete them in the past. With the newer versions of Foxfire it doesn't matter how many times you delete unnamed cookies. They go away when you delete them but they are always back the next time you look.

I have no other problems deleting individual cookies. Some sites drop unnamed cookies on a computer. I was always able to delete them in the past. With the newer versions of Foxfire it doesn't matter how many times you delete unnamed cookies. They go away when you delete them but they are always back the next time you look.
附加的畫面擷圖

所有回覆 (2)

more options

Hi riplongley, I don't know how to explain 5 cookies for one or more sites that do not have a displayable host name (e.g., example.com). Perhaps there is a bug in the Manage Site Data dialog that can't handle certain host names.

I wonder whether any of the cookie management extensions could provide more information about the site(s), or whether we might need to suggest how to query the cookies.sqlite database directly.

Did you want to look at extensions? https://addons.mozilla.org/firefox/search/?q=cookies&type=extension

more options

Note that the data manager is this window:

  • chrome://browser/content/preferences/siteDataSettings.xul

Involved JavaScript:

  • chrome://browser/content/preferences/siteDataSettings.js

I can access this window and each of the lines in the Browser Toolbox, but that probably isn't of much help.


SiteDataManager.getSites().then(sites => {this._sites = sites; ....}
_removeCookies(site) {
 for (let cookie of site.cookies) {
  Services.cookies.remove(
   cookie.host, cookie.name, cookie.path, false, cookie.originAttributes);
  }
  site.cookies = [];
},