Non-registrations and losses of service workers

Bug reports and enhancement requests
Post Reply
grahamperrin
Posts: 11
Joined: Sun Jan 27, 2019 5:39 pm

Non-registrations and losses of service workers

Post by grahamperrin » Sun Jan 05, 2020 9:32 am

NoScript 11.0.11 with Firefox 72.0: service workers are lost, I see no way to prevent the loss.

Please, is this a known issue?

Background (before I identified NoScript as a cause): Absence of service workers in Firefox 72 : firefox
Last edited by grahamperrin on Sun Jan 05, 2020 1:53 pm, edited 1 time in total.
Mozilla/5.0 (X11; FreeBSD amd64; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.3

grahamperrin
Posts: 11
Joined: Sun Jan 27, 2019 5:39 pm

Clarification

Post by grahamperrin » Sun Jan 05, 2020 12:44 pm

With a different profile, testing NoScript alone, I find prevention of registration but not loss of registered service workers.

Screen recording:

https://s.put.re/Nyu3Ek5J.mp4

If there's a way for NoScript to allow registration, this will be a step towards helping me to identify what may be partly an extensions conflict.

Thanks
Mozilla/5.0 (X11; FreeBSD amd64; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.3

User avatar
Giorgio Maone
Site Admin
Posts: 8834
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Non-registrations and losses of service workers

Post by Giorgio Maone » Sun Jan 05, 2020 3:02 pm

As far as I can see, this is not a general problem but specific to some service workers (like the example you linked).
For instance I've got no troubles with those at youtube, gmail and other popular services.
In this case there's actually a pretty hairy user interface bug, due to the fact that scripts imported by service workers with importScripts() are intercepted by webRequest with no specific tab associated, and therefore they are cannot reported in the UI.
The one which is blocked and prevents the routes.glitch.me/sw.js service from being registered is at storage.googleapis.com.
Just add it set to TRUSTED in the NoScript Options tab, and registration should succeed.
I'm looking for ways to work-around the "no tab id" issue in next NoScript release, so that scripts imported by service workers can be reported as well.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

grahamperrin
Posts: 11
Joined: Sun Jan 27, 2019 5:39 pm

Losses of service workers

Post by grahamperrin » Sun Jan 05, 2020 3:47 pm

storage.googleapis.com
Excellent. Thanks for the explanation!

Now I need to discover what causes losses – https://discourse.mozilla.org/t/-/51431 ... ahamperrin
Mozilla/5.0 (X11; FreeBSD amd64; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.3

Post Reply