Issues with latest update and socket.io

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

Issues with latest update and socket.io

Post by calzoneman »

Hello,

A number of users of my website have reported connection issues since the most recent NoScript update for Firefox. The website has a <script> tag for loading the socket.io client. It appears that this file is neither loaded, nor reported as blocked by NoScript. Once users manually navigate to that URL in another tab, the connection will work fine (assuming they have allowed scripts on my domain).

Steps to reproduce:

1. Install NoScript
2. Navigate to http://cytu.be/r/test
3. Allow scripts from http://cytu.be
4. Observe that an error notice is added to the page stating that the connection failed (this is because the socket.io client didn't load). You can verify that the script didn't load by opening the console and observing that "io" is undefined.
5. Navigate to https://ssl.cytu.be:8443/socket.io/socket.io.js in another tab
6. Reload http://cytu.be/r/test
7. Observe that the page loads as expected, with no connection failures

Any ideas why this is happening or how to fix it?

calzoneman
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Issues with latest update and socket.io

Post by barbaz »

Does it work correctly if you Allow Scripts Globally?
Does NoScript 2.6.8.37rc2 work correctly but 2.6.8.37rc3 fail? (old versions available @ http://noscript.net/feed?c=100&t=a)
If the answer to both questions is "yes", this might be related to viewtopic.php?f=7&t=20017
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
Guest

Re: Issues with latest update and socket.io

Post by Guest »

barbaz wrote:Does it work correctly if you Allow Scripts Globally?
Does NoScript 2.6.8.37rc2 work correctly but 2.6.8.37rc3 fail? (old versions available @ http://noscript.net/feed?c=100&t=a)
If the answer to both questions is "yes", this might be related to viewtopic.php?f=7&t=20017
Yes and yes.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Guest

Re: Issues with latest update and socket.io

Post by Guest »

Looking at the other thread, it could be related. I do see a "Scripts partially allowed, 5/6" at the bottom of the page, yet there is no option to unblock this 6th script.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Issues with latest update and socket.io

Post by barbaz »

OK, reproduced with a local server.
I've filed a more detailed bug report: viewtopic.php?f=10&t=20024
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Issues with latest update and socket.io

Post by barbaz »

Should be fixed in latest development build 2.6.8.40rc2
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
Post Reply