I can add or change bookmarks but they are lost when I restart Firefox

If you are able to add, delete, rearrange, and make other changes to your bookmarks but your changes are lost whenever you restart Firefox, try these solutions.

Note: It is recommended that you disable any extensions related to bookmarks, as explained here, before proceeding with the solutions suggested below.

Fix the Bookmarks file

If your changes to your bookmarks do not appear when you restart Firefox, the issue may be that your bookmarks file is write-protected. A write-protected file can't be changed, which prevents Firefox from saving any changes you have made.

Click the Firefox menu
, then click Exit.Click the Firefox menu at the top of the screen, then click Quit Firefox.Click the Firefox menu
, then click Quit.

Select the file places.sqlite.

From the menu bar select the File menu and select Get Info. The places.sqlite info window will open.

In the places.sqlite info window, remove the check mark from the Locked check box.

Create a new Bookmarks file

Bookmarks and browsing history are stored in the Firefox profile folder in the file places.sqlite. If there is a problem with this file, your bookmark changes may be lost whenever you restart Firefox. You can force Firefox to create another places.sqlite file by deleting (or renaming) the existing one.

You might want to print these directions out, or copy them down to reference because you will have to close Firefox to delete or rename the files.

Warning: Once you delete the places.sqlite file, you will lose all of your browsing history. Firefox only keeps one copy of this file and there are no automatic backups for browsing history as there are for bookmarks.

When you next start Firefox, it will create a new places.sqlite file and automatically import the most recent bookmark backup file. Your bookmarks will be restored from backup but you will lose your browsing history. Note that browsing history is used for the address bar autocomplete feature.