Page 1 of 1

storage-sync.sqlite vs. prefs.js

Posted: Wed Nov 29, 2017 10:27 pm
by Hansl
Just asking:
NoScript is saving settings in file "storage-sync.sqlite"
Is this file "storage-sync.sqlite" for NoScript only?
What about the fat old entry user_pref("capability.policy.maonoscript.sites") in prefs.js / about:config? Is it obsolete and may be deleted? If yes, what else is obsolete?

Re: storage-sync.sqlite vs. prefs.js

Posted: Wed Nov 29, 2017 11:41 pm
by Pansa
Hansl wrote:Just asking:
NoScript is saving settings in file "storage-sync.sqlite"
Is this file "storage-sync.sqlite" for NoScript only?
What about the fat old entry user_pref("capability.policy.maonoscript.sites") in prefs.js / about:config? Is it obsolete and may be deleted? If yes, what else is obsolete?
As far as I understand it other addons may save data there too.

As far as I see it, basically what is in your debug log is saved in storage-sync.
I don't know if and which settings in about:config or elsewhere are obsolete. (but if you search for noscript in about:config, some entries seem to specifically point towards 5.x)

If you really care to clean it up, I would advice making a secondary profile in FF (run firefox -p for the profile manager) and compare.

Re: storage-sync.sqlite vs. prefs.js

Posted: Thu Nov 30, 2017 12:14 am
by therube
I wondered about that the other day.
Said to myself, just where is NoScript storing its Prefs?

From what I can tell, NoScript stores nothing in prefs.js.
At least a new Profile puts nothing in prefs.js.

Prefs in prefs.js, I would assume go through a 1 time import into storage-sync.sqlite, & then aren't used after that.


No clue whether NoScript is the sole user of storage-sync.sqlite, but based on the name, I would say, not.

storage-sync.sqlite, wonderful!
Yet another (essentially) black-box.

Re: storage-sync.sqlite vs. prefs.js

Posted: Thu Nov 30, 2017 3:52 am
by bo elam
I did some testing to find out if other extensions are saving data in storage-sync.sqlite, and there are. Probably not many but a few. I went down the list of he most popular extensions and it took number 11th to install, to find another extension that uses that file for saving data. When Firefox is installed, the file is not created. If you go down the list of the most popular extensions, when I installed Google translate, storage-sync.sqlite was created.

So, if we are not using many extensions its very likely only NoScript saves data there. I know in my case that's so. I use NoScript and a couple more extensions. So, I am saving a copy of that file to save my settings. I also found, if we delete the file, when we restart Firefox, the file gets created again, and NoScript ends up with fresh settings. Also, if we uninstall NoScript, and dont delete storage-sync.sqlite, settings will be restored when reinstalling NoScript.

Bo