搜尋 Mozilla 技術支援網站

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

Learn More

Firefox deletes saved passwords when forgetting a website

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

more options

Previously I used to use "Forget This Website" from the History panel to quickly clear the history of a specific website. But it was not deleting it's saved passwords. Now I realize, that when I Forget a Website, it actually does delete the saved passwords too. I am confused now. Was this behavior always like this? can it be that because I have Sync on several devices, the deleted password gets restored somehow? I would like to be able to forget a website without loosing it's login details...

Previously I used to use "Forget This Website" from the History panel to quickly clear the history of a specific website. But it was not deleting it's saved passwords. Now I realize, that when I Forget a Website, it actually does delete the saved passwords too. I am confused now. Was this behavior always like this? can it be that because I have Sync on several devices, the deleted password gets restored somehow? I would like to be able to forget a website without loosing it's login details...

被選擇的解決方法

Using "Forget About This Site" includes removing passwords stored for this origin.

If you did this recently then the passwords may still be in logins-backup.json.

Firefox 80+ has a logins-backup.json file in the profile folder that can be used in case of issues with logins.json or to undo an accidental delete of a login, so you can check if you can find this file in the profile folder or in a backup and replace the current logins.json. Make sure to keep a backup copy of all involved files (logins.json and key4.db and logins-backup.json)

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

If you use a Primary Password then you can prevent losing passwords by canceling the PP prompt. You need to logout beforehand by canceling a PP prompt, e.g. by clicking the eye icon in Lockwise (about:logins).


Using "Forget About This Site" will remove all data stored in Firefox for this domain like history and cookies and passwords and exceptions and cache, so be cautious. If you have a password or other data for that domain that you do not want to lose then make sure to backup this data or make a note. You can't recover from this 'forget' unless you have a backup of involved files.

從原來的回覆中察看解決方案 👍 1

所有回覆 (1)

more options

選擇的解決方法

Using "Forget About This Site" includes removing passwords stored for this origin.

If you did this recently then the passwords may still be in logins-backup.json.

Firefox 80+ has a logins-backup.json file in the profile folder that can be used in case of issues with logins.json or to undo an accidental delete of a login, so you can check if you can find this file in the profile folder or in a backup and replace the current logins.json. Make sure to keep a backup copy of all involved files (logins.json and key4.db and logins-backup.json)

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

If you use a Primary Password then you can prevent losing passwords by canceling the PP prompt. You need to logout beforehand by canceling a PP prompt, e.g. by clicking the eye icon in Lockwise (about:logins).


Using "Forget About This Site" will remove all data stored in Firefox for this domain like history and cookies and passwords and exceptions and cache, so be cautious. If you have a password or other data for that domain that you do not want to lose then make sure to backup this data or make a note. You can't recover from this 'forget' unless you have a backup of involved files.