NoScript and Firefox Sync

Ask for help about NoScript, no registration needed to post
hirvinen

Re: NoScript and Firefox Sync

Post by hirvinen »

Hi!

I keep getting "sync failed" popup notifications in Firefox. I've noticed that at least my open tabs, bookmarks etc. were getting synced so I assumed it might have been temporary glitches.

However, when I finally got around to taking a look at it. I think the thing that fails constantly now might be the syncing of my NoScript whitelist:

A log excerpt:

Code: Select all

1511372003661	Sync.Engine.Extension-Storage	ERROR	Syncing {73a6fe31-595d-460b-a920-fcc0f8843232}: request failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (46267 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
1511372003662	Sync.Engine.Extension-Storage	WARN	Syncing failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (46267 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
1511372003663	Sync.Status	DEBUG	Status for engine extension-storage: error.engine.reason.unknown_fail
1511372003663	Sync.Status	DEBUG	Status.service: success.status_ok => error.sync.failed_partial
1511372003663	Sync.ErrorHandler	DEBUG	extension-storage failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (46267 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
1511372003663	Sync.Telemetry	TRACE	observed weave:engine:sync:error extension-storage
So,
  • Is there a way to increase sync per-file quota,
  • or should NoScript split the whitelist into pieces smaller than 16 kB
  • or is this something else?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Guest

Re: NoScript and Firefox Sync

Post by Guest »

I just recently noticed that my sync wouldn't back anything up anymore. Regardless of if I'm on Nightly or stable. When I disable NoScript it's able to back everything up. Does anybody know why this might be?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Guest

Re: NoScript and Firefox Sync

Post by Guest »

Hi,

I also noticed that NoScript whitelist is not getting synced anymore. Via about:sync-log I also found those failures:

Code: Select all

Sync.Engine.Extension-Storage	ERROR	Syncing {73a6fe31-595d-460b-a920-fcc0f8843232}: request failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (131963 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
Sync.Engine.Extension-Storage	WARN	Syncing failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (131963 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
Sync.Status	DEBUG	Status for engine extension-storage: error.engine.reason.unknown_fail
Sync.Status	DEBUG	Status.service: success.status_ok => error.sync.failed_partial
Sync.ErrorHandler	DEBUG	extension-storage failed: Error: HTTP 507; Error: HTTP 507 Insufficient Storage: Resource access is forbidden for this user (Maximum bytes per object exceeded (131963 > 16384 Bytes.) (resource://services-common/kinto-http-client.js:2354:21) JS Stack trace: formatResponse@kinto-http-client.js:2377:21 < processResponse@kinto-http-client.js:2352:14
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Hadakajime
Posts: 1
Joined: Thu Jan 19, 2017 11:46 pm

Re: NoScript and Firefox Sync

Post by Hadakajime »

Anyone else notice that previously whitelisted sites are now lost from your whitelist?
Today and yesterday I had to explicitly re-whitelist some domains that I use at work.
Could this be related to syncing between my private and work computers?

For example, I have just tested gotomeeting and I need to re-add it. I have previously used gotomeeting for a long long time.
Or what else could be affecting it?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
simpson
Posts: 7
Joined: Sun Aug 28, 2016 10:13 am

Re: NoScript and Firefox Sync

Post by simpson »

Does the new version of noscript support firefox sync? And if so, how do I enable it? There's nothing regarding sync in the settings (!!) and in about:config there's nothing with starting with "noscript".
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Guest

Re: NoScript and Firefox Sync

Post by Guest »

I will just suppose it does not and carry on with my life. Thank you.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.109 Safari/537.36
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript and Firefox Sync

Post by Giorgio Maone »

It does support it, but unfortunately Firefox's sync implementation for WebExtensions allows for a very limited set of data to be synchronized.
You need to enable it from the Sync options, by checking "Add-ons", however it will fail
for medium-large NoScript permission configurations :(
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
simpson
Posts: 7
Joined: Sun Aug 28, 2016 10:13 am

Re: NoScript and Firefox Sync

Post by simpson »

Giorgio Maone wrote:It does support it, but unfortunately Firefox's sync implementation for WebExtensions allows for a very limited set of data to be synchronized.
You need to enable it from the Sync options, by checking "Add-ons", however it will fail
for medium-large NoScript permission configurations :(
Thanks for the reply! Do you know if the 100kb is per addon or per account, that is, do the bookmarks and settings and all that count towards the 100kb?

Also, may I suggest two things, regarding NoScript sync:

- Notifications;
- A more agressive sync by default;

ScriptSafe does this wonderfully, it has sync notifications (whenever it gets synced or whenever it syncs) and it syncs much more frequently than noscript. I wonder, how often does NoScript sync? It would be nice if there was an option, in the settings, to change that value-
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
boistordu
Posts: 2
Joined: Sat Mar 03, 2018 9:02 am

Re: NoScript and Firefox Sync

Post by boistordu »

Where are we on this front?
still no sync for our preferred webext in 58.0.2?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
boistordu
Posts: 2
Joined: Sat Mar 03, 2018 9:02 am

Re: NoScript and Firefox Sync

Post by boistordu »

So nothing?
Please I ould really like to know if it's a bug on my end or if it is implemented like that in the webextension....
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript and Firefox Sync

Post by Giorgio Maone »

boistordu wrote:So nothing?
Please I ould really like to know if it's a bug on my end or if it is implemented like that in the webextension....
It's not a bug on your end, but not a NoScript bug either.

NoScript's permissions list uses the browser.storage.sync API, which is the only way to synchronize settings for WebExtensions without using external web services with all the obvious consequences for transparency of use (you should provide credentials) and privacy of the service itself.

WebExtensions have no control at all on the frequency or the granularity the synchronization happens. Worse, if the data to be synchronized exceed 100KB in total (or, the even worse part, 16KB per object) the API fails. NoScript falls back to local storage in that case, but no synchronization can happen anymore.
Mozilla Developer Network wrote: The main use case of this API is to store preferences about your extension and allow the user to sync them to different profiles. You can store up to 100KB of data using this API. If you try to store more than this, the call will fail with an error message. The API is provided without any guarantees about uptime or performance.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
thunderblast

Re: NoScript and Firefox Sync

Post by thunderblast »

Hi Folks!

Noscript 10.1.7.3 is not working properly on firefox. For instance I'm not able to list blocked scripts and whitelist them, unless I go to preferences and insert the url manually. This only happened with this version other versions are still working fine.
Any idea what might have been wrong?
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
thunderblast

Re: NoScript and Firefox Sync

Post by thunderblast »

thunderblast wrote:Hi Folks!

Noscript 10.1.7.3 is not working properly on firefox. For instance I'm not able to list blocked scripts and whitelist them, unless I go to preferences and insert the url manually. This only happened with this version other versions are still working fine.
Any idea what might have been wrong?
If required I can provide a screenshot showing the behavior.
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
hirvinen

Re: NoScript and Firefox Sync

Post by hirvinen »

Hi,

any progress on this?

Workaround idea:
1. serialize data-to-be-synced to json
2. compress it ( see e.g. http://forums.mozillazine.org/viewtopic ... #p14111285 )
3. base64 encode it
4. split into 16384 B chunks (minus a few bytes for a sync timestamp + part number headers)
5. when reading, combine chunks based on headers
6. decompress
7. deserialize.

That should get at least a few hundreds of kilobytes of worth of uncompressed config synced.

If there is interest in something like this, but no time to implement, I would be interested in contributing.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Guest

Re: NoScript and Firefox Sync

Post by Guest »

Hi,

my noscript_data.txt is 152 kB in size. Hence, my script settings are also not synced anymore. It might be an idea to add a "Check for domain existence" button to the site whitelist in order to manually purge sites that no longer exist. This will reduce the size of the whitelist. NoScript may also work faster if fewer sites exist in the list.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Post Reply