Page 1 of 1

[Resolved] Cannot Allow Scripts Served On Non-Standard Ports

Posted: Sun Aug 31, 2014 8:03 pm
by barbaz
Adapted from:
viewtopic.php?f=7&t=20017
viewtopic.php?f=7&t=20023
viewtopic.php?f=7&t=20014

NoScript >= 2.6.8.37rc3 doesn't properly handle allowing scripts served over non-standard ports.
STR:
1) set up a server to listen on port 80 and 8926 (8926 chosen randomly as something completely weird)
2) connect normally to the server via its hostname (on port 80)
3) navigate to this testpage:

Code: Select all

<!DOCTYPE html>
<script type="text/javascript;version=1.8" src="http://[SERVER'S_IP_ADDRESS]:8926/ftp/qqqq.js"></script>
<div>Alternate Port Test Page</div>
qqqq.js:

Code: Select all

alert("Cuckoo");
4) allow the server, then allow the IP address.

Expected results: get an alert box
Actual results: nothing happens, scripts shown as partially allowed (but no option to allow the missing script), and you have to load the qqqq.js manually after allowing the IP address (then manually reload the page) in order to get the alert box.

Re: Cannot Allow Scripts Served On Non-Standard Ports

Posted: Sun Aug 31, 2014 10:24 pm
by Giorgio Maone
Please check latest development build 2.6.8.40rc2, thanks.

Re: Cannot Allow Scripts Served On Non-Standard Ports

Posted: Mon Sep 01, 2014 1:49 am
by barbaz
Fixed here, thanks 8-)