storage-sync.sqlite vs. prefs.js

Ask for help about NoScript, no registration needed to post
Hansl
Junior Member
Posts: 28
Joined: Wed Apr 02, 2014 6:58 am

storage-sync.sqlite vs. prefs.js

Post by Hansl » Wed Nov 29, 2017 10:27 pm

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?
Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

Pansa
Senior Member
Posts: 318
Joined: Fri Nov 24, 2017 10:30 pm

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

Post by Pansa » Wed Nov 29, 2017 11:41 pm

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.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

User avatar
therube
Ambassador
Posts: 7384
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

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

Post by therube » Thu Nov 30, 2017 12:14 am

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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.2

bo elam
Senior Member
Posts: 188
Joined: Sat Oct 14, 2017 2:25 am

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

Post by bo elam » Thu Nov 30, 2017 3:52 am

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
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0

Post Reply