Page 1 of 1

Issues with latest update and socket.io

Posted: Sun Aug 31, 2014 7:23 pm
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

Re: Issues with latest update and socket.io

Posted: Sun Aug 31, 2014 7:34 pm
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

Re: Issues with latest update and socket.io

Posted: Sun Aug 31, 2014 7:39 pm
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.

Re: Issues with latest update and socket.io

Posted: Sun Aug 31, 2014 7:40 pm
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.

Re: Issues with latest update and socket.io

Posted: Sun Aug 31, 2014 8:04 pm
by barbaz
OK, reproduced with a local server.
I've filed a more detailed bug report: viewtopic.php?f=10&t=20024

Re: Issues with latest update and socket.io

Posted: Mon Sep 01, 2014 1:48 am
by barbaz
Should be fixed in latest development build 2.6.8.40rc2